()
| 74 | |
| 75 | # call this function to turn off the motors and exit safely. |
| 76 | def 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 | |
| 80 | def ReadyForBalance(): |
| 81 | # float the motors |