body: add fuelGauge to body carState (#24386)

This commit is contained in:
Keyvan Fatehi
2022-05-01 18:41:50 -07:00
committed by GitHub
parent ec7cd74dc3
commit 0bbfc63c9c
3 changed files with 4 additions and 2 deletions
+1 -1
Submodule cereal updated: a1f97eaca2...8e9e9d3cee
+2
View File
@@ -20,6 +20,8 @@ class CarState(CarStateBase):
ret.steerFaultPermanent = any([cp.vl['VAR_VALUES']['MOTOR_ERR_L'], cp.vl['VAR_VALUES']['MOTOR_ERR_R'],
cp.vl['VAR_VALUES']['FAULT']])
ret.fuelGauge = cp.vl["BODY_DATA"]["BATT_PERCENTAGE"] / 100
# irrelevant for non-car
ret.gearShifter = car.CarState.GearShifter.drive
ret.cruiseState.enabled = True
+1 -1
View File
@@ -1 +1 @@
d17ecea1f071007193a8a1e1ececf78c96b9deac
9385014c512d253655f574d77fe1e07558f4157d