mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-24 23:42:05 +08:00
body: add fuelGauge to body carState (#24386)
This commit is contained in:
+1
-1
Submodule cereal updated: a1f97eaca2...8e9e9d3cee
@@ -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 @@
|
||||
d17ecea1f071007193a8a1e1ececf78c96b9deac
|
||||
9385014c512d253655f574d77fe1e07558f4157d
|
||||
Reference in New Issue
Block a user