Skip to content

Commit c903a9b

Browse files
authored
bus0 new try
1 parent e7f91b1 commit c903a9b

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

opendbc/car/honda/carstate.py

+9-7
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def get_can_messages(CP, gearbox_msg):
3030
("CAR_SPEED", 10),
3131
("VSA_STATUS", 50),
3232
#("STEER_STATUS", 100), - moved below for serial steering
33-
("STEER_MOTOR_TORQUE", 0), # TODO: not on every car
33+
("STEER_MOTOR_TORQUE", 100), # TODO: not on every car
3434
]
3535

3636
if (CP.carFingerprint == CAR.HONDA_ODYSSEY_CHN) or (CP.carFingerprint in SERIAL_STEERING):
@@ -44,7 +44,7 @@ def get_can_messages(CP, gearbox_msg):
4444
("SCM_BUTTONS", 25),
4545
]
4646

47-
if CP.carFingerprint in SERIAL_STEERING:
47+
if CP.carFingerprint in SERIAL_STEERING and False:
4848
messages.append(("STEER_STATUS", 0))
4949
else:
5050
messages.append(("STEER_STATUS", 100))
@@ -81,7 +81,8 @@ def get_can_messages(CP, gearbox_msg):
8181
elif CP.carFingerprint in (CAR.HONDA_ODYSSEY_CHN, CAR.HONDA_FREED, CAR.HONDA_HRV):
8282
pass
8383
else:
84-
messages.append(("DOORS_STATUS", 3))
84+
pass
85+
# messages.append(("DOORS_STATUS", 3))
8586

8687
if CP.carFingerprint in HONDA_BOSCH_RADARLESS:
8788
messages.append(("CRUISE_FAULT_STATUS", 50))
@@ -152,8 +153,9 @@ def update(self, can_parsers) -> structs.CarState:
152153
elif self.CP.carFingerprint in (CAR.HONDA_ODYSSEY_CHN, CAR.HONDA_FREED, CAR.HONDA_HRV):
153154
ret.doorOpen = bool(cp.vl["SCM_BUTTONS"]["DRIVERS_DOOR_OPEN"])
154155
else:
155-
ret.doorOpen = any([cp.vl["DOORS_STATUS"]["DOOR_OPEN_FL"], cp.vl["DOORS_STATUS"]["DOOR_OPEN_FR"],
156-
cp.vl["DOORS_STATUS"]["DOOR_OPEN_RL"], cp.vl["DOORS_STATUS"]["DOOR_OPEN_RR"]])
156+
ret.doorOpen = False
157+
# ret.doorOpen = any([cp.vl["DOORS_STATUS"]["DOOR_OPEN_FL"], cp.vl["DOORS_STATUS"]["DOOR_OPEN_FR"],
158+
# cp.vl["DOORS_STATUS"]["DOOR_OPEN_RL"], cp.vl["DOORS_STATUS"]["DOOR_OPEN_RR"]])
157159
ret.seatbeltUnlatched = bool(cp.vl["SEATBELT_STATUS"]["SEATBELT_DRIVER_LAMP"] or not cp.vl["SEATBELT_STATUS"]["SEATBELT_DRIVER_LATCHED"])
158160

159161
if self.CP.carFingerprint in SERIAL_STEERING:
@@ -317,14 +319,14 @@ def update(self, can_parsers) -> structs.CarState:
317319
def get_can_parsers(self, CP):
318320
pt_messages = get_can_messages(CP, self.gearbox_msg)
319321

320-
if CP.carFingerprint in SERIAL_STEERING:
322+
if CP.carFingerprint in SERIAL_STEERING and False:
321323
cam_messages = [
322324
("STEER_MOTOR_TORQUE", 100),
323325
("STEER_STATUS", 100)
324326
]
325327
else:
326328
cam_messages = [
327-
("STEERING_CONTROL", 100),
329+
# ("STEERING_CONTROL", 100),
328330
]
329331

330332
if CP.carFingerprint in HONDA_BOSCH_RADARLESS:

0 commit comments

Comments
 (0)