This commit is contained in:
commit
568474d52f
1591 files changed
+528213
No files matched your search
Generated
+15
@@ -0,0 +1,15 @@
|
||||
def mode_name(code: Int) -> String:
|
||||
match code:
|
||||
case _:
|
||||
return "unknown"
|
||||
case 0:
|
||||
return "idle"
|
||||
case 1 | 2:
|
||||
return "driving"
|
||||
case 3:
|
||||
return "docking"
|
||||
|
||||
|
||||
def main():
|
||||
for code in [0, 2, 3, 7]:
|
||||
print(code, "->", mode_name(code))
|
||||
Reference in new issue
Block a user