20 #include <QTextStream> 111 void openLogFile(QFile &fd,
bool &flag, QString type, QString timestamp);
129 QTimer *writeTimer{
nullptr};
132 QTimer *flushTimer{
nullptr};
135 QString timestamp{
""};
138 const QString delim{
","};
147 bool haveUADC{
false};
150 bool haveVN200{
false};
153 bool apLogFileOpen{
false};
156 bool rioLogFileOpen{
false};
159 bool uADCLogFileOpen{
false};
162 bool vn200LogFileOpen{
false};
165 bool firstWrite{
true};
168 bool newAPData{
false};
171 bool newRIOData{
false};
174 bool newUADCData{
false};
177 bool newVN200Data{
false};
183 bool setSystemTime{
false};
225 quint32 rcOutTime{0};
252 std::vector<float> rioData;
294 quint64 gpsTimeNs{0};
301 float eulerDeg[3] = {0};
311 float quaternion[4]{0};
318 float angularRatesRPS[3]{0};
328 float posDegDegM[3]{0};
335 float velNedMps[3]{0};
342 float accelMps2[3]{0};
Logger(Settings *_settings, QObject *_parent=nullptr)
Constructor.
Definition: logger.cc:18
void flush(void)
Slot to flush the data buffer.
Definition: logger.cc:98
~Logger()
Dtor.
Definition: logger.cc:31
void getAPData(APData data)
Slot to receive data from the autopilot.
Definition: logger.cc:116
Structure to hold uADC data.
Definition: uadc.hh:69
MAVLink-supporting autopilot interface.
void start(void)
Start logging.
Definition: logger.cc:84
Aeroprobe Micro Air Data Computer interface.
void gpsAvailable(bool flag)
Slot to see if GPS is available.
Definition: logger.cc:192
Definition: autopilot.cc:12
void getRIOData(RIOData data)
Slot to receive data from the RIO.
Definition: logger.cc:144
Receives data and logs to file.
Definition: logger.hh:36
void enableVN200(VN200 *ins)
Enable VN-200 INS Sensor.
Definition: logger.cc:74
void writeData(void)
Slot to write data.
Definition: logger.cc:229
Settings manager.
Definition: settings.hh:30
Serial driver to acquire data from a generic Remote I/O device.
Definition: rio.hh:68
Serial driver to acquire data from a VN-200 Inertial Navigation System.
Definition: vn200.hh:116
Structure to hold control effector data.
Definition: rio.hh:53
void enableRIO(RIO *rio)
Enable Remote I/O unit.
Definition: logger.cc:56
Structure to hold autopilot data.
Definition: autopilot.hh:33
VectorNav VN-200 Inertial Navigation System interface.
void getUADCData(uADCData data)
Slot to receive data from the Micro Air Data Computer.
Definition: logger.cc:155
Structure to hold VN-200 data.
Definition: vn200.hh:39
DFTI settings manager interface.
Serial driver to acquire data from a MAVLink-based autopilot.
Definition: autopilot.hh:75
void enableAutopilot(Autopilot *ap)
Enable Autopilot Sensor.
Definition: logger.cc:47
void enableUADC(uADC *adc)
Enable Micro Air Data Computer Sensor.
Definition: logger.cc:65
void getVN200Data(VN200Data data)
Slot to receive data from the VN-200 INS.
Definition: logger.cc:172
Remote I/O logging interface.
Serial driver to acquire data from a Micro Air Data Computer.
Definition: uadc.hh:116