mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-02-25 05:23:54 +08:00
rawgpsd: add flag for cold start (#30224)
* rawgpsd: add flag for cold start * other datasheet is wrong * keep things in a good state
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user