wip
This commit is contained in:
@@ -123,7 +123,9 @@ class CarController(CarControllerBase):
|
||||
if self.frame % 5 == 0 and (not hda2 or hda2_long):
|
||||
# CLEARPILOT TEST self.CS.lkas_enabled
|
||||
# can_sends.append(hyundaicanfd.create_lfahda_cluster(self.packer, self.CAN, CC.enabled, CC.latActive))
|
||||
can_sends.append(hyundaicanfd.create_lfahda_cluster(self.packer, self.CAN, CS.lkas_enabled, CS.lkas_enabled))
|
||||
params_memory = Params("/dev/shm/params")
|
||||
lkas_icon = params_memory.get_bool("CPTLkasButtonAction") or CS.lkas_enabled
|
||||
can_sends.append(hyundaicanfd.create_lfahda_cluster(self.packer, self.CAN, lkas_icon, lkas_icon))
|
||||
|
||||
# blinkers
|
||||
if hda2 and self.CP.flags & HyundaiFlags.ENABLE_BLINKERS:
|
||||
|
||||
@@ -1242,7 +1242,7 @@ class Controls:
|
||||
self.params_memory.put_bool("CPTLkasButtonAction", False)
|
||||
else:
|
||||
self.params_memory.put_bool("CPTLkasButtonAction", True)
|
||||
CS.lkas_enabled = self.params_memory.get_bool("CPTLkasButtonAction")
|
||||
# CS.lkas_enabled = self.params_memory.get_bool("CPTLkasButtonAction")
|
||||
|
||||
self.params_memory.put_int("SpeedLimitLatDesired", CC.actuators.speed * CV.MS_TO_MPH )
|
||||
# CC.actuators.speed
|
||||
|
||||
Reference in New Issue
Block a user