Updated telemetry to use new time_stamp feature

This commit is contained in:
2026-04-06 00:43:11 +02:00
parent 6260bc2352
commit d57baa3aff
3 changed files with 2 additions and 2 deletions

View File

@@ -179,7 +179,6 @@ GpsData Gps::getData() {
output.time_write_time_ = millis() - gps_->time.age(); output.time_write_time_ = millis() - gps_->time.age();
output.num_fix_ = gps_->sentencesWithFix(); output.num_fix_ = gps_->sentencesWithFix();
gps_->time.minute();
return output; return output;
} }

View File

@@ -28,6 +28,7 @@ int Telemetry::loop() {
vbatGlobalRead(packet.vbat); vbatGlobalRead(packet.vbat);
GpsData gps; GpsData gps;
gpsGlobalRead(gps); gpsGlobalRead(gps);
packet.time_stamp = gps.time_;
packet.lat = gps.lat_.value_; packet.lat = gps.lat_.value_;
packet.lng = gps.lng_.value_; packet.lng = gps.lng_.value_;
packet.speed = gps.speed_.value_; packet.speed = gps.speed_.value_;

View File

@@ -1 +1 @@
/home/hector/projects/Exergie/TelemetryCommon/ /home/hector/projects/Exergie/TelemetryCommon/cpp/