Class LegacySwerveRequest.FieldCentric

java.lang.Object
com.ctre.phoenix6.mechanisms.swerve.LegacySwerveRequest.FieldCentric
All Implemented Interfaces:
LegacySwerveRequest
Enclosing interface:
LegacySwerveRequest

public static class LegacySwerveRequest.FieldCentric extends Object implements LegacySwerveRequest
Drives the swerve drivetrain in a field-centric manner.

When users use this request, they specify the direction the robot should travel oriented against the field, and the rate at which their robot should rotate about the center of the robot.

An example scenario is that the robot is oriented to the east, the VelocityX is +5 m/s, VelocityY is 0 m/s, and RotationRate is 0.5 rad/s. In this scenario, the robot would drive northward at 5 m/s and turn counterclockwise at 0.5 rad/s.