Package frc.robot.subsystems.swerve
package frc.robot.subsystems.swerve
-
ClassDescriptionThe heading-rate feedforward
Swervehands its aim request (FieldCentricFacingAngle.withTargetRateFeedforward) while aiming at the hub.FM's swerve drivetrain: Phoenix 6'sSwerveDrivetrainfor control and 250 Hz odometry, with the robot pose owned byPoseFusionon the main loop so it can be replayed.Deliberate odometry error in simulation, so the comparison between vision sources has something to correct.Publishes the raw per-module CANcoder data that swerve alignment needs.Everything the drivetrain reads from CTRE in one loop, as an AdvantageKit input.The swerve CANcoder magnet offsets as params, groupswerve, so a module re-zeroed in the pit (SwerveAlignment) can be saved without a code change.What the Pigeon says about the robot's attitude and knocks, derived from logged inputs so it replays.