Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
BogGyver committed Sep 22, 2022
1 parent cbbb88c commit c204f6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion selfdrive/car/tesla/carstate.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ def update(self, cp, cp_cam):
ret.cruiseState.speed = cp.vl["DI_state"]["DI_cruiseSet"] * CV.MPH_TO_MS
ret.cruiseState.available = ((cruise_state == "STANDBY") or ret.cruiseState.enabled)
if self.CP.openpilotLongitudinalControl:
ret.cruiseState.available = (not ret.doorOpen) and (ret.gearShifter == car.CarState.GearShifter.drive) and (not ret.seatbeltUnlatched)
ret.cruiseState.available = True #(not ret.doorOpen) and (ret.gearShifter == car.CarState.GearShifter.drive) and (not ret.seatbeltUnlatched)
#ret.cruiseState.available = ret.cruiseState.available and (not cruiseEnabled) and (not self.autopilot_enabled)
#ret.cruiseState.standstill = (cruise_state == "STANDSTILL")
ret.cruiseState.standstill = False # This needs to be false, since we can resume from stop without sending anything special
Expand Down

0 comments on commit c204f6e

Please sign in to comment.