Class TorqueNavXGyro
java.lang.Object
com.kauailabs.navx.frc.AHRS
org.texastorque.torquelib.sensors.TorqueNavXGyro
- All Implemented Interfaces:
edu.wpi.first.util.sendable.Sendable
,edu.wpi.first.wpilibj.interfaces.Gyro
,AutoCloseable
public final class TorqueNavXGyro
extends com.kauailabs.navx.frc.AHRS
An extended class for the NavX gyro that adds better
support for fused headings, a more accurate heading
reading.
Why is it in degrees... I dont know... I guess because
fused heading does... sorry?
Also represents the NavX as a singleton object.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.kauailabs.navx.frc.AHRS
com.kauailabs.navx.frc.AHRS.BoardAxis, com.kauailabs.navx.frc.AHRS.BoardYawAxis, com.kauailabs.navx.frc.AHRS.SerialDataType
-
Method Summary
Modifier and TypeMethodDescriptionfinal edu.wpi.first.math.geometry.Rotation2d
final edu.wpi.first.math.geometry.Rotation2d
final edu.wpi.first.math.geometry.Rotation2d
final edu.wpi.first.math.geometry.Rotation2d
static final TorqueNavXGyro
final void
setOffsetCCW
(edu.wpi.first.math.geometry.Rotation2d offset) final void
setOffsetCW
(edu.wpi.first.math.geometry.Rotation2d offset) Methods inherited from class com.kauailabs.navx.frc.AHRS
calibrate, close, deregisterCallback, enableBoardlevelYawReset, enableLogging, getAccelFullScaleRangeG, getActualUpdateRate, getAltitude, getAngle, getAngleAdjustment, getBarometricPressure, getBoardYawAxis, getByteCount, getCompassHeading, getDisplacementX, getDisplacementY, getDisplacementZ, getFirmwareVersion, getFusedHeading, getGyroFullScaleRangeDPS, getLastSensorTimestamp, getPitch, getPressure, getQuaternionW, getQuaternionX, getQuaternionY, getQuaternionZ, getRate, getRawAccelX, getRawAccelY, getRawAccelZ, getRawGyroX, getRawGyroY, getRawGyroZ, getRawMagX, getRawMagY, getRawMagZ, getRequestedUpdateRate, getRoll, getTempC, getUpdateCount, getVelocityX, getVelocityY, getVelocityZ, getWorldLinearAccelX, getWorldLinearAccelY, getWorldLinearAccelZ, getYaw, initSendable, isAltitudeValid, isBoardlevelYawResetEnabled, isCalibrating, isConnected, isMagneticDisturbance, isMagnetometerCalibrated, isMoving, isRotating, registerCallback, reset, resetDisplacement, setAngleAdjustment, zeroYaw
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface edu.wpi.first.wpilibj.interfaces.Gyro
getRotation2d
-
Method Details
-
setOffsetCW
public final void setOffsetCW(edu.wpi.first.math.geometry.Rotation2d offset) -
setOffsetCCW
public final void setOffsetCCW(edu.wpi.first.math.geometry.Rotation2d offset) -
getAngleOffsetCW
public final edu.wpi.first.math.geometry.Rotation2d getAngleOffsetCW() -
getAngleOffsetCCW
public final edu.wpi.first.math.geometry.Rotation2d getAngleOffsetCCW() -
getHeadingCW
public final edu.wpi.first.math.geometry.Rotation2d getHeadingCW() -
getHeadingCCW
public final edu.wpi.first.math.geometry.Rotation2d getHeadingCCW() -
getInstance
-