Skip to content

Commit

Permalink
Add the rest oops
Browse files Browse the repository at this point in the history
  • Loading branch information
cfranyota committed Jun 24, 2022
1 parent dd34a8b commit b3e4094
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions selfdrive/car/honda/carstate.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ def update(self, cp, cp_cam, cp_body):
ret.doorOpen = any([cp.vl["DOORS_STATUS"]["DOOR_OPEN_FL"], cp.vl["DOORS_STATUS"]["DOOR_OPEN_FR"],
cp.vl["DOORS_STATUS"]["DOOR_OPEN_RL"], cp.vl["DOORS_STATUS"]["DOOR_OPEN_RR"]])
ret.seatbeltUnlatched = bool(cp.vl["SEATBELT_STATUS"]["SEATBELT_DRIVER_LAMP"] or not cp.vl["SEATBELT_STATUS"]["SEATBELT_DRIVER_LATCHED"])
ret.brakeLightsDEPRECATED = bool(cp.vl["ACC_CONTROL"]["BRAKE_LIGHTS"] or ret.brakePressed or ret.brakeHoldActive)

steer_status = self.steer_status_values[cp.vl["STEER_STATUS"]["STEER_STATUS"]]
ret.steerFaultPermanent = steer_status not in ("NORMAL", "NO_TORQUE_ALERT_1", "NO_TORQUE_ALERT_2", "LOW_SPEED_LOCKOUT", "TMP_FAULT")
Expand Down

0 comments on commit b3e4094

Please sign in to comment.