locationd: log time to first fix (#27990)

* locationd ttff

* log time to first fix

* rename

* max it like laikad

* Update selfdrive/locationd/locationd.cc

* Update ref_commit

* Log when gpsOK first becomes true

* don't forget to update current time!

* stash

* make it deterministic (no proc replay cur time)

* Update ref_commit

* rename to make this clear
old-commit-hash: 03eb02906d9f43799fc93f71ef32331bcf090157
This commit is contained in:
Shane Smiskol
2023-04-21 16:15:13 -07:00
committed by GitHub
parent 19ff13a32a
commit c8cf77b7a7
4 changed files with 13 additions and 2 deletions
+2
View File
@@ -78,6 +78,8 @@ private:
double reset_tracker = 0.0;
bool device_fell = false;
bool gps_mode = false;
double first_valid_log_time = NAN;
double ttff = NAN;
double last_gps_msg = 0;
bool ublox_available = true;
bool observation_timings_invalid = false;