[examples] Fix feildRelative -> fieldRelative typo in XControllerCommand examples (#3104)

* MecanumControllerCommand
* SwerveControllerCommand
This commit is contained in:
Modelmat
2021-01-20 06:57:41 +00:00
committed by GitHub
parent 4488e25f16
commit 38c1a1f3e0
3 changed files with 4 additions and 4 deletions

View File

@@ -48,8 +48,8 @@ void DriveSubsystem::Periodic() {
}
void DriveSubsystem::Drive(double xSpeed, double ySpeed, double rot,
bool feildRelative) {
if (feildRelative) {
bool fieldRelative) {
if (fieldRelative) {
m_drive.DriveCartesian(ySpeed, xSpeed, rot, -m_gyro.GetAngle());
} else {
m_drive.DriveCartesian(ySpeed, xSpeed, rot);

View File

@@ -39,7 +39,7 @@ class DriveSubsystem : public frc2::SubsystemBase {
* @param fieldRelative Whether the provided x and y speeds are relative to
* the field.
*/
void Drive(double xSpeed, double ySpeed, double rot, bool feildRelative);
void Drive(double xSpeed, double ySpeed, double rot, bool fieldRelative);
/**
* Resets the drive encoders to currently read a position of 0.