Class LegacySwerveDrivetrain.LegacySwerveDriveState
java.lang.Object
com.ctre.phoenix6.mechanisms.swerve.LegacySwerveDrivetrain.LegacySwerveDriveState
- Enclosing class:
- LegacySwerveDrivetrain
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
Modifier and TypeFieldDescriptionint
Number of failed data acquisitionsThe current module statesThe target module statesdouble
The measured odometry update period, in secondsThe current pose of the robotThe current velocity of the robotint
Number of successful data acquisitions -
Constructor Summary
-
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
-
LegacySwerveDriveState
public LegacySwerveDriveState()
-