mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-07-11 00:52:12 +08:00
3f8e95952a
version: sunnypilot v2026.002.000 (dev)
date: 2026-06-29T03:29:47
master commit: 31dc4d8e52
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)
|
|
|
|
|