robotpy_toolkit_7407.sensors.gyro package

Submodules

robotpy_toolkit_7407.sensors.gyro.ADIS16448 module

class robotpy_toolkit_7407.sensors.gyro.ADIS16448.GyroADIS16448

Bases: Gyro

Wrapper class for the ADIS16448 Gyro

get_robot_heading() float

Returns the angle of the robot’s heading in radians (yaw) :return: Robot heading (radians)

init()

Initialize the gyro

reset_angle()

Resets the gyro’s yaw.

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.

Module contents