@@ -33,3 +33,35 @@ class States(str, Enum):
3333
3434 def __repr__ (self ) -> str :
3535 return self .value
36+
37+
38+ STATE_TO_CODE : dict ["States" , int ] = {
39+ States .Home : 0 ,
40+ States .AwaitNextMission : 1 ,
41+ States .Monitor : 2 ,
42+ States .ReturningHome : 3 ,
43+ States .Offline : 4 ,
44+ States .InterventionNeeded : 5 ,
45+ States .Maintenance : 6 ,
46+ States .Paused : 7 ,
47+ States .Pausing : 8 ,
48+ States .Resuming : 9 ,
49+ States .PausingReturnHome : 10 ,
50+ States .ResumingReturnHome : 11 ,
51+ States .ReturnHomePaused : 12 ,
52+ States .Stopping : 13 ,
53+ States .StoppingUnknownMission : 14 ,
54+ States .StoppingReturnHome : 15 ,
55+ States .StoppingPausedMission : 16 ,
56+ States .StoppingPausedReturnHome : 17 ,
57+ States .StoppingDueToMaintenance : 18 ,
58+ States .StoppingGoToLockdown : 19 ,
59+ States .StoppingGoToRecharge : 20 ,
60+ States .Recharging : 21 ,
61+ States .RechargingWithMission : 22 ,
62+ States .GoingToRecharging : 23 ,
63+ States .GoingToRechargingWithMission : 24 ,
64+ States .GoingToLockdown : 25 ,
65+ States .Lockdown : 26 ,
66+ States .UnknownStatus : 27 ,
67+ }
0 commit comments