Class DriveBaseIO.DriveBaseIOInputs
java.lang.Object
frc.robot.subsystems.drivebase.io.DriveBaseIO.DriveBaseIOInputs
- Enclosing interface:
- DriveBaseIO
Container of all drive base telemetry fields that AdvantageKit will persist automatically.
-
Field Summary
FieldsModifier and TypeFieldDescriptionedu.wpi.first.math.kinematics.ChassisSpeedsMeasured chassis speeds in meters per second and radians per second.edu.wpi.first.math.geometry.Rotation2dCurrent gyro yaw reading.edu.wpi.first.math.kinematics.SwerveModuleState[]Measured swerve module states.edu.wpi.first.math.kinematics.SwerveModuleState[]Target swerve module states requested by the controller.edu.wpi.first.math.geometry.Pose2dRaw odometry-only pose derived from wheel encoders and gyro, without any vision fusion.doubleTimestamp for the latest odometry update in seconds.edu.wpi.first.math.geometry.Pose2dCurrent robot pose estimate in meters and radians. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
pose
public edu.wpi.first.math.geometry.Pose2d poseCurrent robot pose estimate in meters and radians. -
odometryOnlyPose
public edu.wpi.first.math.geometry.Pose2d odometryOnlyPoseRaw odometry-only pose derived from wheel encoders and gyro, without any vision fusion.Use this to visualize how far odometry drifts from the vision-corrected estimate.
-
chassisSpeeds
public edu.wpi.first.math.kinematics.ChassisSpeeds chassisSpeedsMeasured chassis speeds in meters per second and radians per second. -
moduleStates
public edu.wpi.first.math.kinematics.SwerveModuleState[] moduleStatesMeasured swerve module states. -
moduleTargets
public edu.wpi.first.math.kinematics.SwerveModuleState[] moduleTargetsTarget swerve module states requested by the controller. -
gyroYaw
public edu.wpi.first.math.geometry.Rotation2d gyroYawCurrent gyro yaw reading. -
odometryTimestampSeconds
public double odometryTimestampSecondsTimestamp for the latest odometry update in seconds.
-
-
Constructor Details
-
DriveBaseIOInputs
public DriveBaseIOInputs()
-