mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-16 14:52:15 +08:00
4012d181e1
date: 2024-03-17T10:14:38 master commit: 7e9a909e0e57ecb31df4c87c5b9a06b1204fd034
19 lines
376 B
Python
Executable File
19 lines
376 B
Python
Executable File
#!/usr/bin/env python
|
|
import sys
|
|
|
|
from panda import PandaJungle
|
|
|
|
if __name__ == "__main__":
|
|
jungle = PandaJungle()
|
|
|
|
# If first argument specified, it sets the ignition (0 or 1)
|
|
if len(sys.argv) > 1:
|
|
if sys.argv[1] == '1':
|
|
jungle.set_ignition(True)
|
|
else:
|
|
jungle.set_ignition(False)
|
|
jungle.set_harness_orientation(1)
|
|
jungle.set_panda_power(True)
|
|
|
|
|