Skip to content

Commit f0adc15

Browse files
switch to ESP_Vehicle_Speed
1 parent 4678bec commit f0adc15

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

opendbc/car/rivian/carstate.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def update(self, can_parsers) -> structs.CarState:
2020
ret = structs.CarState()
2121

2222
# Vehicle speed
23-
ret.vEgoRaw = cp.vl["ESPiB1"]["ESPiB1_VehicleSpeed"]
23+
ret.vEgoRaw = cp.vl["ESP_Status"]["ESP_Vehicle_Speed"] * CV.KPH_TO_MS
2424
ret.vEgo, ret.aEgo = self.update_speed_kf(ret.vEgoRaw)
2525
ret.standstill = (ret.vEgo < 0.1)
2626

@@ -78,7 +78,7 @@ def update(self, can_parsers) -> structs.CarState:
7878
def get_can_parsers(CP):
7979
pt_messages = [
8080
# sig_address, frequency
81-
("ESPiB1", 50),
81+
("ESP_Status", 50),
8282
("VDM_PropStatus", 50),
8383
("iBESP2", 50),
8484
("EPAS_AdasStatus", 100),

0 commit comments

Comments
 (0)