![]() |
FRC Paradigm Shift #1259
Documentation for the 2021 Robot
|
Public Member Functions | |
| Gyro () | |
| double | GetHeading () |
| frc::Rotation2d | GetHeadingAsRot2d () |
| void | ZeroHeading () |
| Zeroes the heading of the robot. More... | |
| double | GetTurnRate () |
Public Attributes | |
| PigeonIMU | m_gyro |
| double Gyro::GetHeading | ( | ) |
Returns the heading of the robot.
Definition at line 6 of file Gyro.cpp.
References DriveConstants::kGyroReversed, and m_gyro.
| void Gyro::ZeroHeading | ( | ) |
| double Gyro::GetTurnRate | ( | ) |
Returns the turn rate of the robot.
Definition at line 20 of file Gyro.cpp.
References DriveConstants::kGyroReversed, and m_gyro.