Class SwerveDrivetrain.SwerveDriveState
java.lang.Object
com.ctre.phoenix6.mechanisms.swerve.SwerveDrivetrain.SwerveDriveState
- Enclosing class:
- SwerveDrivetrain
public static class SwerveDrivetrain.SwerveDriveState extends Object
Plain-Old-Data class holding the state of the swerve drivetrain.
This encapsulates most data that is relevant for telemetry or
decision-making from the Swerve Drive.
-
Field Summary
Fields Modifier and Type Field Description int
FailedDaqs
Number of failed data acquisitionsSwerveModuleState[]
ModuleStates
The current module statesSwerveModuleState[]
ModuleTargets
The target module statesdouble
OdometryPeriod
The measured odometry update period, in secondsPose2d
Pose
The current pose of the robotChassisSpeeds
speeds
The current velocity of the robotint
SuccessfulDaqs
Number of successful data acquisitions -
Constructor Summary
Constructors Constructor Description SwerveDriveState()
-
Method Summary
-
Field Details
-
SuccessfulDaqs
Number of successful data acquisitions -
FailedDaqs
Number of failed data acquisitions -
Pose
The current pose of the robot -
speeds
The current velocity of the robot -
ModuleStates
The current module states -
ModuleTargets
The target module states -
OdometryPeriod
The measured odometry update period, in seconds
-
-
Constructor Details
-
SwerveDriveState
public SwerveDriveState()
-