mirror of
https://github.com/infiniteCable2/openpilot.git
synced 2026-08-06 00:36:29 +08:00
Disable audible Car Steer Alerts toggle
This commit is contained in:
@@ -143,6 +143,7 @@ inline static std::unordered_map<std::string, ParamKeyAttributes> keys = {
|
||||
{"EnableSLPredReactToCurves", {PERSISTENT, BOOL}},
|
||||
{"BatteryDetails", {PERSISTENT, BOOL}},
|
||||
{"ForceRHDForBSM", {PERSISTENT, BOOL}},
|
||||
{"DisableCarSteerAlerts", {PERSISTENT, BOOL}},
|
||||
|
||||
// --- sunnypilot params --- //
|
||||
{"ApiCache_DriveStats", {PERSISTENT, JSON}},
|
||||
|
||||
+1
-1
Submodule opendbc_repo updated: b8c700137a...f2aefa716b
@@ -65,6 +65,7 @@ class Controls(ControlsExt):
|
||||
self.enable_long_comfort_mode = self.params.get_bool("EnableLongComfortMode")
|
||||
self.smooth_steer = PT2Filter(46.0, 1.0, DT_CTRL)
|
||||
self.force_rhd_for_bsm = self.params.get_bool("ForceRHDForBSM")
|
||||
self.disable_car_steer_alerts = self.params.get_bool("DisableCarSteerAlerts")
|
||||
|
||||
self.pose_calibrator = PoseCalibrator()
|
||||
self.calibrated_pose: Pose | None = None
|
||||
@@ -99,6 +100,7 @@ class Controls(ControlsExt):
|
||||
self.enable_pred_react_to_curves = self.params.get_bool("EnableSLPredReactToCurves")
|
||||
self.force_rhd_for_bsm = self.params.get_bool("ForceRHDForBSM")
|
||||
self.enable_long_comfort_mode = self.params.get_bool("EnableLongComfortMode")
|
||||
self.disable_car_steer_alerts = self.params.get_bool("DisableCarSteerAlerts")
|
||||
|
||||
def state_control(self):
|
||||
CS = self.sm['carState']
|
||||
@@ -195,6 +197,7 @@ class Controls(ControlsExt):
|
||||
CC.steerLimited = self.steer_limited_by_safety
|
||||
CC.forceRHDForBSM = self.force_rhd_for_bsm
|
||||
CC.longComfortMode = self.enable_long_comfort_mode
|
||||
CC.disableCarSteerAlerts = self.disable_car_steer_alerts
|
||||
|
||||
# Orientation and angle rates can be useful for carcontroller
|
||||
# Only calibrated (car) frame is relevant for the carcontroller
|
||||
|
||||
@@ -45,6 +45,9 @@ DESCRIPTIONS = {
|
||||
"DisableScreenTimer": tr_noop(
|
||||
"The onroad screen is turned of after 10 seconds. It will be temporarily enabled on alerts"
|
||||
),
|
||||
"DisableCarSteerAlerts": tr_noop(
|
||||
"Disables audible steering alerts from car"
|
||||
),
|
||||
}
|
||||
|
||||
|
||||
@@ -121,6 +124,12 @@ class ICTogglesLayout(Widget):
|
||||
"eye_closed.png",
|
||||
False,
|
||||
),
|
||||
"DisableCarSteerAlerts": (
|
||||
lambda: tr("VW: Disable Car Steer Alert Chime"),
|
||||
DESCRIPTIONS["DisableCarSteerAlerts"],
|
||||
"chffr_wheel.png",
|
||||
False,
|
||||
),
|
||||
}
|
||||
|
||||
self._toggles = {}
|
||||
|
||||
@@ -22,6 +22,7 @@ class ICTogglesLayoutMici(NavWidget):
|
||||
enable_sl_pred_sl = BigParamControl("VW: Predicative - Reaction to Speed Limits", "EnableSLPredReactToSL")
|
||||
enable_sl_pred_curve = BigParamControl("VW: Predicative - Reaction to Curves", "EnableSLPredReactToCurves")
|
||||
force_rhd_bsm = BigParamControl("VW: Force RHD for BSM", "ForceRHDForBSM")
|
||||
disable_car_steer_alerts = BigParamControl("VW: Disable Car Steer Alert Chime", "DisableCarSteerAlerts")
|
||||
enable_smooth_steer = BigParamControl("Steer Smoothing", "EnableSmoothSteer")
|
||||
enable_dark_mode = BigParamControl("Dark Mode", "DarkMode")
|
||||
enable_onroad_screen_timer = BigParamControl("Onroad Screen Timeout", "DisableScreenTimer")
|
||||
@@ -35,6 +36,7 @@ class ICTogglesLayoutMici(NavWidget):
|
||||
enable_sl_pred_sl,
|
||||
enable_sl_pred_curve,
|
||||
force_rhd_bsm,
|
||||
disable_car_steer_alerts,
|
||||
enable_smooth_steer,
|
||||
enable_dark_mode,
|
||||
enable_onroad_screen_timer,
|
||||
@@ -49,6 +51,7 @@ class ICTogglesLayoutMici(NavWidget):
|
||||
("EnableSLPredReactToSL", enable_sl_pred_sl),
|
||||
("EnableSLPredReactToCurves", enable_sl_pred_curve),
|
||||
("ForceRHDForBSM", force_rhd_bsm),
|
||||
("DisableCarSteerAlerts", disable_car_steer_alerts),
|
||||
("EnableSmoothSteer", enable_smooth_steer),
|
||||
("DarkMode", enable_dark_mode),
|
||||
("DisableScreenTimer", enable_onroad_screen_timer),
|
||||
|
||||
Reference in New Issue
Block a user