Class GyroIOPigeon2
java.lang.Object
com.stuypulse.robot.subsystems.swerve.GyroIOPigeon2
- All Implemented Interfaces:
GyroIO
IO implementation for Pigeon 2.
-
Nested Class Summary
Nested classes/interfaces inherited from interface GyroIO
GyroIO.GyroIOInputs -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final com.ctre.phoenix6.hardware.Pigeon2private final com.ctre.phoenix6.StatusSignal<org.wpilib.units.measure.Angle> private final com.ctre.phoenix6.StatusSignal<org.wpilib.units.measure.AngularVelocity> -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
pigeon
-
yaw
-
yawPositionQueue
-
yawTimestampQueue
-
yawVelocity
-
-
Constructor Details
-
GyroIOPigeon2
public GyroIOPigeon2()
-
-
Method Details
-
updateInputs
- Specified by:
updateInputsin interfaceGyroIO
-