Swerve
Functions
Link copied to clipboard
Drives the robot using chassis speeds.
Link copied to clipboard
Gets the chassis speeds for autonomous driving.
Link copied to clipboard
Gets the heading of the robot.
Link copied to clipboard
Returns the Singleton instance of this SwerveSubsystem.
Link copied to clipboard
Gets the positions of the swerve modules.
Link copied to clipboard
Gets the states of the swerve modules.
Link copied to clipboard
Gets the rotation of the Pigeon2 IMU.
Link copied to clipboard
Gets the yaw of the Pigeon2 IMU.
Link copied to clipboard
Gets the rotation of the Pigeon2 IMU for PID control.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Resets the drive positions of all swerve modules.
Link copied to clipboard
Resets the Pigeon2 IMU.
Link copied to clipboard
Sets the PID constants for autonomous driving.
Link copied to clipboard
public void setDriveSpeeds(double forwardSpeed, double leftSpeed, double turnSpeed, boolean isFieldOriented)
Sets the drive speeds for the swerve modules.
Link copied to clipboard
Sets the states of the swerve modules.
Link copied to clipboard
Sets the PID constants for teleoperated driving.
Link copied to clipboard