wip
This commit is contained in:
@@ -46,7 +46,6 @@ def launcher(proc: str, name: str, log_path: str) -> None:
|
||||
sentry.capture_exception()
|
||||
raise
|
||||
|
||||
|
||||
def join_process(process: Process, timeout: float) -> None:
|
||||
# Process().join(timeout) will hang due to a python 3 bug: https://bugs.python.org/issue28382
|
||||
# We have to poll the exitcode instead
|
||||
|
||||
@@ -29,7 +29,9 @@ from openpilot.system.qcomgpsd.structs import (dict_unpacker, position_report, r
|
||||
LOG_GNSS_POSITION_REPORT, LOG_GNSS_OEMDRE_MEASUREMENT_REPORT,
|
||||
LOG_GNSS_OEMDRE_SVPOLY_REPORT)
|
||||
|
||||
DEBUG = int(os.getenv("DEBUG", "0"))==1
|
||||
# DEBUG = int(os.getenv("DEBUG", "0"))==1
|
||||
DEBUG = True
|
||||
|
||||
ASSIST_DATA_FILE = '/tmp/xtra3grc.bin'
|
||||
ASSIST_DATA_FILE_DOWNLOAD = ASSIST_DATA_FILE + '.download'
|
||||
ASSISTANCE_URL = 'http://xtrapath3.izatcloud.net/xtra3grc.bin'
|
||||
@@ -387,7 +389,7 @@ def main() -> NoReturn:
|
||||
else:
|
||||
if time_since_last_report >= 30 and distance_change >= MIN_DISTANCE_CHANGE:
|
||||
should_report = True
|
||||
|
||||
|
||||
# Execute reporting if conditions are met
|
||||
if should_report:
|
||||
last_reported_time = current_time
|
||||
|
||||
Reference in New Issue
Block a user