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 4, 2022
1 parent bbdafa7 commit ef62343
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions selfdrive/car/honda/carstate.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,10 +193,6 @@ def update(self, cp, cp_cam, cp_body):
elif self.CP.carFingerprint in (CAR.FREED, CAR.HRV):
ret.standstill = not cp.vl["STANDSTILL"]["WHEELS_MOVING"]
ret.doorOpen = bool(cp.vl["SCM_BUTTONS"]["DRIVERS_DOOR_OPEN"])
elif not self.cp.openpilotLongitudinalControl:
ret.brakeLightsDEPRECATED = bool(cp.vl["ACC_CONTROL"]["BRAKE_LIGHTS"] or ret.brakePressed or ret.brakeHoldActive)
elif self.CP.openpilotLongitudinalControl:
ret.brakeLightsDEPRECATED = bool(cp.vl["BRAKE_MODULE"]["BRAKE_PRESSED"] or ret.brakePressed)
else:
ret.standstill = not cp.vl["STANDSTILL"]["WHEELS_MOVING"]
ret.doorOpen = any([cp.vl["DOORS_STATUS"]["DOOR_OPEN_FL"], cp.vl["DOORS_STATUS"]["DOOR_OPEN_FR"],
Expand Down

0 comments on commit ef62343

Please sign in to comment.