Initial implementation of vehicle statuses
This commit is contained in:
parent
ec97a0072d
commit
61bfb9308d
1 changed files with 29 additions and 0 deletions
29
py/hexagram/status.py
Normal file
29
py/hexagram/status.py
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
import enum
|
||||||
|
|
||||||
|
class VehicleStatus(enum.Enum):
|
||||||
|
OK = 0
|
||||||
|
ABS_FAULT = 1 << 0
|
||||||
|
AIRBAG_FAULT = 1 << 1
|
||||||
|
BATTERY_FAULT = 1 << 2
|
||||||
|
BEAMS_FOG = 1 << 3
|
||||||
|
BEAMS_HIGH = 1 << 4
|
||||||
|
BEAMS_LOW = 1 << 5
|
||||||
|
BEAMS_PARKING = 1 << 6
|
||||||
|
BELT = 1 << 7
|
||||||
|
CAUTION = 1 << 8
|
||||||
|
COLLISION = 1 << 9
|
||||||
|
COOLANT_LOW = 1 << 10
|
||||||
|
COOLANT_OVERHEAT = 1 << 11
|
||||||
|
CRUISE = 1 << 12
|
||||||
|
FUEL_LOW = 1 << 13
|
||||||
|
LANEKEEP_OFF = 1 << 14
|
||||||
|
ENGINE_FAULT = 1 << 15
|
||||||
|
OIL_LOW = 1 << 16
|
||||||
|
OIL_OVERHEAT = 1 << 17
|
||||||
|
STABILITY_OFF = 1 << 18
|
||||||
|
TPMS_WARNING = 1 << 19
|
||||||
|
TPMS_FAULT = 1 << 20
|
||||||
|
TRACTION_OFF = 1 << 21
|
||||||
|
TRACTION_FAULT = 1 << 22
|
||||||
|
WARNING = 1 << 23
|
||||||
|
WIPER_WASHER_LOW = 1 << 24
|
Loading…
Add table
Reference in a new issue