Skip to content

Commit 63dba84

Browse files
committed
Reset imu registers in resetbot.py
1 parent e75e05f commit 63dba84

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

XRPLib/resetbot.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from XRPLib.encoded_motor import EncodedMotor
2-
2+
from XRPLib.imu import IMU
33
"""
44
A simple file for shutting off all of the motors after a program gets interrupted from the REPL.
55
Run this file after interrupting a program to stop the robot by running "import XRPLib.resetbot" in the REPL.
@@ -10,3 +10,5 @@
1010
motor = EncodedMotor.get_default_encoded_motor(i+1)
1111
motor.set_effort(0)
1212
motor.reset_encoder_position()
13+
14+
IMU.get_default_imu().reset()

0 commit comments

Comments
 (0)