IQ.Pilot Release Commit @ d23cc80
This commit is contained in:
@@ -10,7 +10,7 @@ from openpilot.selfdrive.ui.widgets.offroad_alerts import UpdateAlert, OffroadAl
|
||||
from openpilot.selfdrive.ui.widgets.setup import SetupWidget
|
||||
from openpilot.selfdrive.ui.widgets.inspire_widget import InspireWidget
|
||||
from openpilot.selfdrive.ui.widgets.map_panel_widget import MapPanelWidget
|
||||
from openpilot.iqpilot.ui.layouts.settings.trips import TripsLayout
|
||||
from openpilot.iqpilot.ui.layouts.settings.drive_history import TripsLayout
|
||||
from openpilot.selfdrive.ui.layouts.sidebar import NETWORK_TYPES
|
||||
from openpilot.selfdrive.ui.lib.wifi_ssid import current_ssid
|
||||
from openpilot.selfdrive.ui.ui_state import ui_state
|
||||
|
||||
@@ -214,7 +214,7 @@ class TogglesLayout(Widget):
|
||||
toyota_stock_long_forced = bool(
|
||||
ui_state.CP is not None and
|
||||
ui_state.CP.brand == "toyota" and
|
||||
self._params.get_bool("ToyotaEnforceStockLongitudinal")
|
||||
self._params.get_bool("IQToyotaFactoryLong")
|
||||
)
|
||||
iq_modes_selectable = alpha_available or alpha_requested or toyota_stock_long_forced
|
||||
availability_note = ""
|
||||
@@ -268,7 +268,7 @@ class TogglesLayout(Widget):
|
||||
def _apply_longitudinal_control_mode(self, button_index: int):
|
||||
# 0 = Stock ACC, 1 = IQ.Standard, 2 = IQ.Dynamic, 3 = IQ.Pilot
|
||||
previous_alpha = self._params.get_bool("AlphaLongitudinalEnabled")
|
||||
previous_toyota_stock_long = self._params.get_bool("ToyotaEnforceStockLongitudinal")
|
||||
previous_toyota_stock_long = self._params.get_bool("IQToyotaFactoryLong")
|
||||
|
||||
if button_index == 0:
|
||||
self._params.put_bool("AlphaLongitudinalEnabled", False)
|
||||
@@ -289,9 +289,9 @@ class TogglesLayout(Widget):
|
||||
self._params.put_bool("IQDynamicMode", False)
|
||||
|
||||
if button_index != 0 and previous_toyota_stock_long:
|
||||
self._params.put_bool("ToyotaEnforceStockLongitudinal", False)
|
||||
self._params.put_bool("IQToyotaFactoryLong", False)
|
||||
|
||||
if previous_alpha != self._params.get_bool("AlphaLongitudinalEnabled") or previous_toyota_stock_long != self._params.get_bool("ToyotaEnforceStockLongitudinal"):
|
||||
if previous_alpha != self._params.get_bool("AlphaLongitudinalEnabled") or previous_toyota_stock_long != self._params.get_bool("IQToyotaFactoryLong"):
|
||||
self._params.put_bool("OnroadCycleRequested", True)
|
||||
|
||||
def _toggle_callback(self, state: bool, param: str):
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import pyray as rl
|
||||
from collections.abc import Callable
|
||||
|
||||
from openpilot.iqpilot.ui.layouts.settings.trips import TripsLayout
|
||||
from openpilot.iqpilot.ui.layouts.settings.drive_history import TripsLayout
|
||||
from openpilot.selfdrive.ui.widgets.screen_header import ScreenHeader, HEADER_HEIGHT
|
||||
from openpilot.system.ui.lib.multilang import tr
|
||||
from openpilot.system.ui.widgets import Widget
|
||||
|
||||
Reference in New Issue
Block a user