MCPcopy Create free account
hub / github.com/DexterInd/GoPiGo3 / SafeExit

Function SafeExit

Projects/BalanceBot/BalanceBot.py:76–78  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

74
75# call this function to turn off the motors and exit safely.
76def SafeExit():
77 GPG.reset_all() # Unconfigure the sensors, disable the motors, and restore the LEDs to default.
78 sys.exit() # Exit the python program
79
80def ReadyForBalance():
81 # float the motors

Callers 1

BalanceBot.pyFile · 0.85

Calls 1

reset_allMethod · 0.45

Tested by

no test coverage detected