20 #include <QTextStream> 112 void openLogFile(QFile &fd,
bool &flag, QString type, QString timestamp);
127 QPointer<Settings> settings{
nullptr};
130 QPointer<QTimer> writeTimer{
nullptr};
133 QPointer<QTimer> flushTimer{
nullptr};
136 QString timestamp{
""};
139 const QString delim{
","};
148 bool haveUADC{
false};
151 bool haveVN200{
false};
154 bool apLogFileOpen{
false};
157 bool rioLogFileOpen{
false};
160 bool uADCLogFileOpen{
false};
163 bool vn200LogFileOpen{
false};
166 bool firstWrite{
true};
169 bool newAPData{
false};
172 bool newRIOData{
false};
175 bool newUADCData{
false};
178 bool newVN200Data{
false};
184 bool setSystemTime{
false};
226 quint32 rcOutTime{0};
253 std::vector<float> rioData;
295 quint64 gpsTimeNs{0};
302 float eulerDeg[3] = {0};
312 float quaternion[4]{0};
319 float angularRatesRPS[3]{0};
329 float posDegDegM[3]{0};
336 float velNedMps[3]{0};
343 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:90
~Logger()
Dtor.
Definition: logger.cc:31
void getAPData(APData data)
Slot to receive data from the autopilot.
Definition: logger.cc:108
Structure to hold uADC data.
Definition: uadc.hh:68
MAVLink-supporting autopilot interface.
void start(void)
Start logging.
Definition: logger.cc:76
Aeroprobe Micro Air Data Computer interface.
void gpsAvailable(bool flag)
Slot to see if GPS is available.
Definition: logger.cc:184
QPointer Utility functions.
Definition: autopilot.cc:12
void getRIOData(RIOData data)
Slot to receive data from the RIO.
Definition: logger.cc:136
Receives data and logs to file.
Definition: logger.hh:37
void enableVN200(VN200 *ins)
Enable VN-200 INS Sensor.
Definition: logger.cc:66
void writeData(void)
Slot to write data.
Definition: logger.cc:221
Settings manager.
Definition: settings.hh:30
Serial driver to acquire data from a generic Remote I/O device.
Definition: rio.hh:67
Serial driver to acquire data from a VN-200 Inertial Navigation System.
Definition: vn200.hh:115
Structure to hold control effector data.
Definition: rio.hh:52
void enableRIO(RIO *rio)
Enable Remote I/O unit.
Definition: logger.cc:48
Structure to hold autopilot data.
Definition: autopilot.hh:32
VectorNav VN-200 Inertial Navigation System interface.
void getUADCData(uADCData data)
Slot to receive data from the Micro Air Data Computer.
Definition: logger.cc:147
Structure to hold VN-200 data.
Definition: vn200.hh:38
DFTI settings manager interface.
Serial driver to acquire data from a MAVLink-based autopilot.
Definition: autopilot.hh:74
void enableAutopilot(Autopilot *ap)
Enable Autopilot Sensor.
Definition: logger.cc:39
void enableUADC(uADC *adc)
Enable Micro Air Data Computer Sensor.
Definition: logger.cc:57
void getVN200Data(VN200Data data)
Slot to receive data from the VN-200 INS.
Definition: logger.cc:164
Remote I/O logging interface.
Serial driver to acquire data from a Micro Air Data Computer.
Definition: uadc.hh:115