File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -20,9 +20,9 @@ def update(self, can_parsers) -> structs.CarState:
20
20
ret = structs .CarState ()
21
21
22
22
# Vehicle speed
23
- ret .vEgoRaw = cp .vl ["ESPiB1 " ]["ESPiB1_VehicleSpeed" ]
23
+ ret .vEgoRaw = cp .vl ["ESP_Status " ]["ESP_Vehicle_Speed" ] * CV . KPH_TO_MS
24
24
ret .vEgo , ret .aEgo = self .update_speed_kf (ret .vEgoRaw )
25
- ret .standstill = (ret .vEgo < 0.1 )
25
+ ret .standstill = abs (ret .vEgoRaw ) < 0.01
26
26
27
27
# Gas pedal
28
28
pedal_status = cp .vl ["VDM_PropStatus" ]["VDM_AcceleratorPedalPosition" ]
@@ -78,7 +78,7 @@ def update(self, can_parsers) -> structs.CarState:
78
78
def get_can_parsers (CP ):
79
79
pt_messages = [
80
80
# sig_address, frequency
81
- ("ESPiB1 " , 50 ),
81
+ ("ESP_Status " , 50 ),
82
82
("VDM_PropStatus" , 50 ),
83
83
("iBESP2" , 50 ),
84
84
("EPAS_AdasStatus" , 100 ),
You can’t perform that action at this time.
0 commit comments