mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-09-01 05:33:49 +08:00
update
This commit is contained in:
@@ -102,7 +102,8 @@ class CarController(CarControllerBase):
|
||||
if self.CP.carFingerprint == CAR.CHEVROLET_MALIBU_HYBRID_CC:
|
||||
phase_map = gmcan.malibu_phase_map_for_acc(CS.cruise_buttons)
|
||||
if phase_map and CS.steering_button_checksum in phase_map:
|
||||
phase = (phase_map[CS.steering_button_checksum] + 1) % 4
|
||||
# Malibu appears to need a larger lead to stay in phase with the camera.
|
||||
phase = (phase_map[CS.steering_button_checksum] + 2) % 4
|
||||
self.malibu_cancel_phase = phase
|
||||
self.malibu_button_phase = phase
|
||||
|
||||
|
||||
Reference in New Issue
Block a user