mirror of
https://github.com/MoreTore/openpilot.git
synced 2026-09-30 19:33:49 +08:00
build
This commit is contained in:
@@ -582,12 +582,6 @@ class StarPilotLongitudinalLayout(_SettingsPage):
|
||||
get_value=lambda: f"{self._params.get_int('ForceStopDistanceOffset'):+d} ft",
|
||||
on_click=lambda: self._show_slider("ForceStopDistanceOffset", -20, 20, unit=" ft"),
|
||||
visible=lambda: self._params.get_bool("QOLLongitudinal") and self._params.get_bool("ForceStops")),
|
||||
SettingRow("RedneckCruise", "toggle", tr_noop("Redneck Cruise"),
|
||||
subtitle=tr_noop("On supported Hyundai stock-long cars, use RES/SET button spam to match the cluster set speed to StarPilot's target."),
|
||||
get_state=lambda: self._params.get_bool("RedneckCruise"),
|
||||
set_state=lambda s: self._params.put_bool("RedneckCruise", s),
|
||||
visible=lambda: starpilot_state.car_state.redneckCruiseAvailable and
|
||||
(not starpilot_state.car_state.hasOpenpilotLongitudinal or self._params.get_bool("DisableOpenpilotLongitudinal"))),
|
||||
], tab_key="daily", column_pair="daily"),
|
||||
SettingSection(tr_noop("Standstill & Gears"), [
|
||||
SettingRow("ForceStandstill", "toggle", tr_noop("Force Standstill"),
|
||||
|
||||
@@ -36,8 +36,7 @@ class StarPilotCarState:
|
||||
hasZSS: bool = False
|
||||
canUsePedal: bool = False
|
||||
canUseSDSU: bool = False
|
||||
redneckCruiseAvailable: bool = False
|
||||
|
||||
|
||||
# ========== Device/Car State ==========
|
||||
isFrogsGoMoo: bool = False
|
||||
hasPCMCruise: bool = False
|
||||
@@ -191,7 +190,6 @@ class StarPilotState:
|
||||
FPCP = messaging.log_from_bytes(fpcp_bytes, custom.StarPilotCarParams)
|
||||
self.car_state.canUsePedal = FPCP.canUsePedal
|
||||
self.car_state.canUseSDSU = FPCP.canUseSDSU
|
||||
self.car_state.redneckCruiseAvailable = FPCP.redneckCruiseAvailable
|
||||
self.car_state.openpilotLongitudinalControlDisabled = FPCP.openpilotLongitudinalControlDisabled
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user