rawgpsd: add flag for cold start (#30224)

* rawgpsd: add flag for cold start

* other datasheet is wrong

* keep things in a good state
pull/30333/head
Adeeb Shihadeh 2 years ago committed by GitHub
parent f62ee97cb0
commit 9c7e5ca6ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      system/sensord/rawgps/rawgpsd.py

@ -190,7 +190,13 @@ def setup_quectel(diag: ModemDiag) -> bool:
if gps_enabled():
at_cmd("AT+QGPSEND")
#at_cmd("AT+QGPSDEL=0")
if "GPS_COLD_START" in os.environ:
# deletes all assistance
at_cmd("AT+QGPSDEL=0")
else:
# allow module to perform hot start
at_cmd("AT+QGPSDEL=1")
# disable DPO power savings for more accuracy
at_cmd("AT+QGPSCFG=\"dpoenable\",0")

Loading…
Cancel
Save