robotpy_toolkit_7407.sensors.gyro package
Submodules
robotpy_toolkit_7407.sensors.gyro.ADIS16448 module
robotpy_toolkit_7407.sensors.gyro.PigeonIMU module
- class robotpy_toolkit_7407.sensors.gyro.PigeonIMU.PigeonIMUGyro_Wrapper(port)
Bases:
Gyro
Wrapper class for the Pigeon2 IMU gyro.
- get_robot_heading() float
Returns the angle of the robot’s heading in radians (yaw) :return: Robot heading (radians)
- init()
Initialize gyro
- reset_angle()
Resets the gyro’s yaw.
robotpy_toolkit_7407.sensors.gyro.base_gyro module
- class robotpy_toolkit_7407.sensors.gyro.base_gyro.Gyro
Bases:
object
Extendable class for swerve gyro.
- get_robot_heading() float
Get the robot heading in radians. Overridden class. Must return radians.
- init()
Initialize the swerve gyro. Overridden class.
- reset_angle()
Reset the robot heading. Overridden class.