We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e75e05f commit 63dba84Copy full SHA for 63dba84
XRPLib/resetbot.py
@@ -1,5 +1,5 @@
1
from XRPLib.encoded_motor import EncodedMotor
2
-
+from XRPLib.imu import IMU
3
"""
4
A simple file for shutting off all of the motors after a program gets interrupted from the REPL.
5
Run this file after interrupting a program to stop the robot by running "import XRPLib.resetbot" in the REPL.
@@ -10,3 +10,5 @@
10
motor = EncodedMotor.get_default_encoded_motor(i+1)
11
motor.set_effort(0)
12
motor.reset_encoder_position()
13
+
14
+IMU.get_default_imu().reset()
0 commit comments