IQ.Pilot Release Commit @ aedea0e
This commit is contained in:
@@ -462,7 +462,7 @@ def hardware_thread(end_event, hw_queue) -> None:
|
||||
startup_conditions["device_booted"] = startup_conditions.get("device_booted", False) or HARDWARE.booted()
|
||||
|
||||
# user-forced status (Always Offroad can be temporarily overridden)
|
||||
offroad_mode = params.get_bool("OffroadMode")
|
||||
offroad_mode = params.get_bool("IQAlwaysOffroad")
|
||||
force_onroad_until = params.get("ForceOnroadUntil", return_default=True)
|
||||
now = int(time.time())
|
||||
force_onroad_active = offroad_mode and force_onroad_until > now
|
||||
|
||||
@@ -122,6 +122,9 @@ _RENAMED_PARAMS = {
|
||||
"BlinkerPauseLateralControl": "IQBlinkerPauseLateral",
|
||||
"BlinkerMinLateralControlSpeed": "IQBlinkerMinLateralSpeed",
|
||||
"DevUIInfo": "IQDevUIInfo",
|
||||
"OffroadMode": "IQAlwaysOffroad",
|
||||
"AutoLaneChangeTimer": "IQLaneChangeTimer",
|
||||
"AutoLaneChangeBsmDelay": "IQLaneChangeBsmDelay",
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@ def manager_init() -> None:
|
||||
|
||||
# device boot mode
|
||||
if params.get("DeviceBootMode") == 1: # start in Always Offroad mode
|
||||
params.put_bool("OffroadMode", True)
|
||||
params.put_bool("IQAlwaysOffroad", True)
|
||||
|
||||
if params.get_bool("RecordFrontLock"):
|
||||
params.put_bool("RecordFront", True)
|
||||
|
||||
Reference in New Issue
Block a user