phase sync

This commit is contained in:
firestar5683
2026-01-27 22:26:51 -06:00
parent f3306bec23
commit 66fbf8b21f
2 changed files with 5 additions and 6 deletions
+1 -2
View File
@@ -102,8 +102,7 @@ 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:
# Malibu appears to need a larger lead to stay in phase with the camera.
phase = (phase_map[CS.steering_button_checksum] + 2) % 4
phase = (phase_map[CS.steering_button_checksum] + 1) % 4
self.malibu_cancel_phase = phase
self.malibu_button_phase = phase
+4 -4
View File
@@ -8,10 +8,10 @@ from openpilot.selfdrive.car.gm.values import CAR, CruiseButtons, CanBus
MALIBU_BUTTON_TABLE = {
0: [0x15EE, 0x1FCC, 0x2FBC, 0x25DE],
1: [0x6F7C, 0x659E, 0x55AE, 0x5F8C],
4: [0x1ADD, 0x10FF, 0x2ACD, 0x20EF],
5: [0x60AF, 0x6A8D, 0x50BF, 0x5A9D],
0: [0x1FCC, 0x2FBC, 0x25DE, 0x15EE],
1: [0x659E, 0x55AE, 0x5F8C, 0x6F7C],
4: [0x10FF, 0x2ACD, 0x20EF, 0x1ADD],
5: [0x6A8D, 0x50BF, 0x5A9D, 0x60AF],
}
MALIBU_BUTTON_MAP = {