2023 Drive base
 
Loading...
Searching...
No Matches
frc.robot.subsystems.IMU Class Reference
Inheritance diagram for frc.robot.subsystems.IMU:

Public Member Functions

 IMU ()
 
double getHeading ()
 

Detailed Description

Definition at line 9 of file IMU.java.

Constructor & Destructor Documentation

◆ IMU()

frc.robot.subsystems.IMU.IMU ( )

Definition at line 14 of file IMU.java.

14 {
15 super(Constants.NAVX_PORT);
16 }

References frc.robot.Constants.NAVX_PORT.

Member Function Documentation

◆ getHeading()

double frc.robot.subsystems.IMU.getHeading ( )

Definition at line 18 of file IMU.java.

18 {
19 double heading = getFusedHeading();
20 if (isMagneticDisturbance() || !isMagnetometerCalibrated()) {
21 heading = getYaw();
22 }
23 return heading;
24 }

Referenced by frc.robot.subsystems.BetterShuffleboard.pushIMU(), and frc.robot.subsystems.MecaDrive.updateOdometry().


The documentation for this class was generated from the following file: