wip
This commit is contained in:
@@ -97,7 +97,6 @@ def gps_enabled() -> bool:
|
|||||||
return "QGPS: 1" in at_cmd("AT+QGPS?")
|
return "QGPS: 1" in at_cmd("AT+QGPS?")
|
||||||
|
|
||||||
def download_assistance():
|
def download_assistance():
|
||||||
return #Clearpilot
|
|
||||||
try:
|
try:
|
||||||
response = requests.get(ASSISTANCE_URL, timeout=5, stream=True)
|
response = requests.get(ASSISTANCE_URL, timeout=5, stream=True)
|
||||||
|
|
||||||
@@ -115,7 +114,6 @@ def download_assistance():
|
|||||||
return
|
return
|
||||||
|
|
||||||
def downloader_loop(event):
|
def downloader_loop(event):
|
||||||
return #Clearpilot
|
|
||||||
if os.path.exists(ASSIST_DATA_FILE):
|
if os.path.exists(ASSIST_DATA_FILE):
|
||||||
os.remove(ASSIST_DATA_FILE)
|
os.remove(ASSIST_DATA_FILE)
|
||||||
|
|
||||||
@@ -132,7 +130,6 @@ def downloader_loop(event):
|
|||||||
|
|
||||||
@retry(attempts=5, delay=0.2, ignore_failure=True)
|
@retry(attempts=5, delay=0.2, ignore_failure=True)
|
||||||
def inject_assistance():
|
def inject_assistance():
|
||||||
return #Clearpilot
|
|
||||||
cmd = f"mmcli -m any --timeout 30 --location-inject-assistance-data={ASSIST_DATA_FILE}"
|
cmd = f"mmcli -m any --timeout 30 --location-inject-assistance-data={ASSIST_DATA_FILE}"
|
||||||
subprocess.check_output(cmd, stderr=subprocess.PIPE, shell=True)
|
subprocess.check_output(cmd, stderr=subprocess.PIPE, shell=True)
|
||||||
cloudlog.info("successfully loaded assistance data")
|
cloudlog.info("successfully loaded assistance data")
|
||||||
|
|||||||
Reference in New Issue
Block a user