Skip to content

Commit

Permalink
Tesla: better standstill message (commaai#1370)
Browse files Browse the repository at this point in the history
better standstill message
  • Loading branch information
lukasloetkolben authored and cydia2020 committed Oct 14, 2024
1 parent d8008d6 commit 7aefdec
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions opendbc/car/tesla/carstate.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def update(self, cp, cp_cam, *_) -> structs.CarState:
# Vehicle speed
ret.vEgoRaw = cp.vl["DI_speed"]["DI_vehicleSpeed"] * CV.KPH_TO_MS
ret.vEgo, ret.aEgo = self.update_speed_kf(ret.vEgoRaw)
ret.standstill = cp.vl["ESP_B"]["ESP_vehicleStandstillSts"] == 1
ret.standstill = cp.vl["DI_state"]["DI_vehicleHoldState"] == 3

# Gas pedal
pedal_status = cp.vl["DI_systemStatus"]["DI_accelPedalPos"]
Expand Down Expand Up @@ -92,7 +92,6 @@ def get_can_parser(CP):
messages = [
# sig_address, frequency
("DI_speed", 50),
("ESP_B", 50),
("DI_systemStatus", 100),
("IBST_status", 25),
("DI_state", 10),
Expand Down

0 comments on commit 7aefdec

Please sign in to comment.