mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-07-15 17:32:06 +08:00
default to true for HKG main cruise toggle
This commit is contained in:
@@ -203,7 +203,6 @@ std::unordered_map<std::string, uint32_t> keys = {
|
||||
|
||||
// sunnypilot params
|
||||
{"EnableGithubRunner", PERSISTENT},
|
||||
{"HyundaiLongitudinalMainCruiseToggleable", PERSISTENT},
|
||||
{"MadsMainCruiseAllowed", PERSISTENT},
|
||||
{"MadsPauseLateralOnBrake", PERSISTENT},
|
||||
{"MadsUnifiedEngagementMode", PERSISTENT},
|
||||
|
||||
@@ -51,12 +51,13 @@ class MadsParams:
|
||||
def set_car_specific_params(self, CP):
|
||||
if CP.carName == "hyundai":
|
||||
# TODO-SP: This should be separated from MADS module for future implementations
|
||||
hyundai_cruise_main_toggleable = self.read_param("HyundaiLongitudinalMainCruiseToggleable")
|
||||
# Use "HyundaiLongitudinalMainCruiseToggleable" param
|
||||
hyundai_cruise_main_toggleable = True
|
||||
if hyundai_cruise_main_toggleable:
|
||||
CP.sunnypilotFlags |= HyundaiFlagsSP.LONGITUDINAL_MAIN_CRUISE_TOGGLEABLE.value
|
||||
CP.safetyConfigs[-1].safetyParam |= Panda.FLAG_HYUNDAI_LONG_MAIN_CRUISE_TOGGLEABLE
|
||||
|
||||
# MADS is currently not supported in Tesla due to lack of consistent states to engage controls
|
||||
# TODO-SP: To enable MADS for Tesla, dentify consistent signals for MADS toggling
|
||||
# TODO-SP: To enable MADS for Tesla, identify consistent signals for MADS toggling
|
||||
if CP.carName == "tesla":
|
||||
self.params.remove("Mads")
|
||||
|
||||
@@ -49,7 +49,6 @@ def manager_init() -> None:
|
||||
("MadsMainCruiseAllowed", "1"),
|
||||
("MadsPauseLateralOnBrake", "0"),
|
||||
("MadsUnifiedEngagementMode", "1"),
|
||||
("HyundaiLongitudinalMainCruiseToggleable", "1"),
|
||||
]
|
||||
|
||||
if params.get_bool("RecordFrontLock"):
|
||||
|
||||
Reference in New Issue
Block a user