Skip to content

Commit

Permalink
Update carstate.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Casey Francis committed Jul 3, 2022
1 parent 395670d commit 3e9380d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion selfdrive/car/honda/carstate.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ def get_can_signals(CP, gearbox_msg, main_on_sig_msg):
signals += [
("EPB_STATE", "EPB_STATUS"),
("IMPERIAL_UNIT", "CAR_SPEED"),
("BRAKE_PRESSED", "BRAKE_MODULE"),
]
checks += [
("EPB_STATUS", 50),
Expand Down Expand Up @@ -208,6 +207,7 @@ def update(self, cp, cp_cam, cp_body):

if self.CP.openpilotLongitudinalControl:
self.brake_error = cp.vl["STANDSTILL"]["BRAKE_ERROR_1"] or cp.vl["STANDSTILL"]["BRAKE_ERROR_2"]
ret.brakeLightsDEPRECATED = bool(cp.vl["BRAKE_MODULE"]["BRAKE_PRESSED"] or ret.brakePressed
ret.espDisabled = cp.vl["VSA_STATUS"]["ESP_DISABLED"] != 0

ret.wheelSpeeds = self.get_wheel_speeds(
Expand Down

0 comments on commit 3e9380d

Please sign in to comment.