Save and reload telemetry values in companion telemetry simulator (#1954)

* Users will be able to save and reload telemetry values in companion telemetry simulator. Also, default values set for all sensor values.

* Added file.flush()

* Edited file i/o as per elecpower suggestion
Signed-off-by: dale wheeler <dale@wheeler.net>
This commit is contained in:
dwheeld
2022-06-15 06:17:31 +02:00
committed by GitHub
parent f6988c0870
commit 940d69f456
3 changed files with 1106 additions and 764 deletions
+3
View File
@@ -207,6 +207,9 @@ class TelemetrySimulator : public QWidget
uint32_t encodeLatLon(double latLon, bool isLat);
uint32_t encodeDateTime(uint8_t yearOrHour, uint8_t monthOrMinute, uint8_t dayOrSecond, bool isDate);
}; // GPSEmulator
private slots:
void on_saveTelemetryvalues_clicked();
void on_loadTelemetryvalues_clicked();
}; // TelemetrySimulator
#endif // _TELEMETRYSIMU_H_