timed: use gps location packet for time (#33306)
* GPS helpers * Use GPS socket in timed * Use helper in controlsd * Use updated and logMonoTime * Helper type annot * Not updated * Increase time threasholdpull/33360/head
parent
bdf9c90951
commit
cf355ecf20
3 changed files with 19 additions and 8 deletions
@ -0,0 +1,8 @@ |
||||
from openpilot.common.params import Params |
||||
|
||||
|
||||
def get_gps_location_service(params: Params) -> str: |
||||
if params.get_bool("UbloxAvailable"): |
||||
return "gpsLocationExternal" |
||||
else: |
||||
return "gpsLocation" |
Loading…
Reference in new issue