mirror of
https://github.com/MoreTore/openpilot.git
synced 2026-08-05 16:26:14 +08:00
body: log charging status (#24409)
* body: log charging status
* update refs
old-commit-hash: 986a991a09
This commit is contained in:
+1
-1
Submodule cereal updated: 39cbdbfecf...3f8210d1fd
@@ -20,6 +20,7 @@ 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.charging = cp.vl["BODY_DATA"]["CHARGER_CONNECTED"] == 1
|
||||
ret.fuelGauge = cp.vl["BODY_DATA"]["BATT_PERCENTAGE"] / 100
|
||||
|
||||
# irrelevant for non-car
|
||||
|
||||
@@ -1 +1 @@
|
||||
7057499e945105b919d7706b25ded4fe38b9884d
|
||||
7f1f4bd17965cc703b824ffb1870313bee93e2ec
|
||||
Reference in New Issue
Block a user