feat(companion): Add GPS simulator, change telemetry data file ext (#2125)

* 1. Add GPS Simulator.
2. Saved telemetry now have .tlm extension
3. Refined telemetry sensor defaults.

* Edited for style.
This commit is contained in:
dwheeld
2022-07-15 19:15:47 +10:00
committed by GitHub
parent 386f8e6342
commit eab35a2499
3 changed files with 875 additions and 782 deletions
+4
View File
@@ -63,6 +63,7 @@ class TelemetrySimulator : public QWidget
void setupDataFields();
void onSimulateToggled(bool isChecked);
void onLogTimerEvent();
void onGpsRunLoop();
void onLoadLogFile();
void onPlay();
void onRewind();
@@ -79,6 +80,7 @@ class TelemetrySimulator : public QWidget
Ui::TelemetrySimulator * ui;
QTimer timer;
QTimer logTimer;
QTimer gpsTimer;
SimulatorInterface *simulator;
bool m_simuStarted;
bool m_logReplayEnable;
@@ -210,6 +212,8 @@ class TelemetrySimulator : public QWidget
private slots:
void on_saveTelemetryvalues_clicked();
void on_loadTelemetryvalues_clicked();
void on_GPSpushButton_clicked();
void on_gps_course_valueChanged(double arg1);
}; // TelemetrySimulator
#endif // _TELEMETRYSIMU_H_