IQ.Pilot Release Commit @ d47f081
This commit is contained in:
@@ -544,10 +544,10 @@ class SettingsHubLayout(Widget):
|
||||
|
||||
def _toggle_offroad_prompt(self):
|
||||
if ui_state.engaged:
|
||||
gui_app.set_modal_overlay(alert_dialog(tr("Disengage to Enter Always Offroad Mode")))
|
||||
gui_app.set_modal_overlay(alert_dialog(tr("Disengage before forcing offroad")))
|
||||
return
|
||||
active = ui_state.params.get_bool("IQAlwaysOffroad")
|
||||
msg = tr("Are you sure you want to exit Always Offroad mode?") if active else tr("Are you sure you want to enter Always Offroad mode?")
|
||||
msg = tr("Leave forced-offroad mode now?") if active else tr("Switch the device into forced-offroad mode?")
|
||||
|
||||
def _confirm(result: int):
|
||||
if result == DialogResult.CONFIRM and not ui_state.engaged:
|
||||
|
||||
@@ -27,7 +27,7 @@ class DisplayLayoutMici(NavScroller):
|
||||
self._force_mici = BigParamControl("force mici UI", "ForceSmallUI")
|
||||
self._display_bright = MappedParamToggle("display brightness", "Brightness",
|
||||
_DISPLAY_BRIGHT_OPTIONS, _DISPLAY_BRIGHT_VALUES)
|
||||
self._onroad_bright = MappedParamToggle("onroad brightness", "OnroadScreenOffBrightness",
|
||||
self._onroad_bright = MappedParamToggle("driving brightness", "OnroadScreenOffBrightness",
|
||||
_ONROAD_BRIGHT_OPTIONS, _ONROAD_BRIGHT_VALUES)
|
||||
self._delay = MappedParamToggle("brightness delay", "OnroadScreenOffTimer",
|
||||
_DELAY_OPTIONS, _DELAY_VALUES)
|
||||
|
||||
@@ -96,10 +96,10 @@ class ModelsLayoutMici(NavScroller):
|
||||
self._redownload_icon = gui_app.texture("icons_mici/settings/device/update.png", 56, 56, keep_aspect_ratio=True)
|
||||
self._reset_icon = gui_app.texture("icons_mici/wheel.png", 56, 56)
|
||||
|
||||
self._current = BigButton("current model")
|
||||
self._current = BigButton("active model")
|
||||
self._current.set_click_callback(self._show_folders)
|
||||
|
||||
self._cancel = BigButton("cancel download")
|
||||
self._cancel = BigButton("stop download")
|
||||
self._cancel.set_click_callback(self._cancel_model_request)
|
||||
self._cancel.set_visible(self._is_downloading)
|
||||
|
||||
@@ -107,17 +107,17 @@ class ModelsLayoutMici(NavScroller):
|
||||
self._redownload.set_click_callback(self._confirm_redownload_model)
|
||||
self._redownload.set_enabled(self._can_redownload)
|
||||
|
||||
self._refresh = BigButton("refresh model list")
|
||||
self._refresh = BigButton("reload model list")
|
||||
self._refresh.set_click_callback(lambda: ui_state.params.put("ModelManager_LastSyncTime", 0))
|
||||
|
||||
self._supercombo = GreyBigButton("driving model")
|
||||
self._supercombo = GreyBigButton("combined model")
|
||||
self._supercombo.set_visible(False)
|
||||
self._vision = GreyBigButton("vision model")
|
||||
self._vision = GreyBigButton("vision weights")
|
||||
self._vision.set_visible(False)
|
||||
self._policy = GreyBigButton("policy model")
|
||||
self._policy = GreyBigButton("policy weights")
|
||||
self._policy.set_visible(False)
|
||||
|
||||
self._clear = BigButton("clear model cache")
|
||||
self._clear = BigButton("purge model cache")
|
||||
self._clear.set_click_callback(self._confirm_clear_cache)
|
||||
self._clear.set_enabled(lambda: ui_state.is_offroad())
|
||||
|
||||
@@ -125,7 +125,7 @@ class ModelsLayoutMici(NavScroller):
|
||||
self._sw_delay = MappedParamToggle("manual delay offset", "IQSoftwareSteerDelay", _DELAY_OPTIONS, _DELAY_VALUES)
|
||||
self._sw_delay.set_visible(lambda: not self._steer_delay._checked)
|
||||
|
||||
self._lane_turn = BigParamControl("use lane turn desires", "IQLaneTurnDesire")
|
||||
self._lane_turn = BigParamControl("low-speed turn planning", "IQLaneTurnDesire")
|
||||
self._lane_speed = MappedParamToggle("lane turn speed", "IQLaneTurnValue", _LANE_TURN_OPTIONS, _LANE_TURN_VALUES)
|
||||
self._lane_speed.set_visible(lambda: self._lane_turn._checked)
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@ class SabSettingsPanel(NavScroller):
|
||||
self._main_cruise = BigParamControl("Availability While Cruise Changes", "AolMainCruiseAllowed")
|
||||
self._brake = SabBrakeToggle()
|
||||
self._mode = MappedParamToggle("Brake Response Mode", "AolSteeringMode",
|
||||
["remain active", "standby", "disengage"], [0, 1, 2])
|
||||
["stay engaged", "standby", "disengage"], [0, 1, 2])
|
||||
self._scroller.add_widgets([self._main_cruise, self._brake, self._mode])
|
||||
|
||||
def show_event(self):
|
||||
@@ -67,7 +67,7 @@ class LaneChangePanel(NavScroller):
|
||||
def __init__(self):
|
||||
super().__init__()
|
||||
self._timer = MappedParamToggle("Auto Lane Change", "IQLaneChangeTimer",
|
||||
["off", "nudge", "nudgeless", "0.5 s", "1 s", "2 s", "3 s"],
|
||||
["off", "nudge", "no nudge", "0.5 s", "1 s", "2 s", "3 s"],
|
||||
[-1, 0, 1, 2, 3, 4, 5])
|
||||
self._bsm_delay = BigParamControl("Delay with Blind Spot", "IQLaneChangeBsmDelay")
|
||||
self._continuous = BigParamControl("Continuous Changes", "LaneChangeContinuous")
|
||||
@@ -87,7 +87,7 @@ class LaneChangePanel(NavScroller):
|
||||
|
||||
|
||||
class SteeringLayoutMici(NavScroller):
|
||||
_AOL_MODES = ["remain active", "standby", "disengage"]
|
||||
_AOL_MODES = ["stay engaged", "standby", "disengage"]
|
||||
|
||||
def __init__(self):
|
||||
super().__init__()
|
||||
|
||||
@@ -73,7 +73,7 @@ class VehicleLayoutMici(NavScroller):
|
||||
toggle_callback=self._on_toyota_long)
|
||||
self._hyundai_tuning = MappedParamToggle("hyundai long. tuning", "HyundaiLongitudinalTuning",
|
||||
["off", "dynamic", "predictive"], [0, 1, 2])
|
||||
self._subaru_snag = BigParamControl("stop and go (beta)", "SubaruStopAndGo")
|
||||
self._subaru_snag = BigParamControl("creep from standstill (beta)", "SubaruStopAndGo")
|
||||
self._subaru_manual = BigParamControl("stop and go manual brake", "SubaruStopAndGoManualParkingBrake")
|
||||
self._vw_pq_hca = BigParamControl("PQ HCA status 7 mode", "pqhca5or7Toggle")
|
||||
self._vw_lateral = BigParamControl("lateral when cruise faulted", "AllowLateralWhenLongUnavailable")
|
||||
|
||||
@@ -10,7 +10,7 @@ class VisualsLayoutMici(NavScroller):
|
||||
def __init__(self):
|
||||
super().__init__()
|
||||
self._blind_spot = BigParamControl("Blind Spot Warnings", "BlindSpot")
|
||||
self._steering_arc = BigParamControl("Steering Arc", "TorqueBar")
|
||||
self._steering_arc = BigParamControl("Steering Effort Arc", "TorqueBar")
|
||||
self._road_name = BigParamControl("Road Name", "RoadNameToggle")
|
||||
self._turn_signals = BigParamControl("Turn Signals", "ShowTurnSignals")
|
||||
self._accel_bar = BigParamControl("Acceleration Bar", "RocketFuel")
|
||||
|
||||
Reference in New Issue
Block a user