Skip to content

Commit 080d3af

Browse files
authored
fix: correct field centric code
Changed `new HolonomicMode.FieldCentric(imu)` to `new FieldCentric(imu)`, along with the Kotlin equivalent.
1 parent 7f45670 commit 080d3af

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/nextftc/hardware/drivetrain-commands/holonomic.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ driverControlled = MecanumDriverControlled(
117117
-Gamepads.gamepad1.leftStickY,
118118
Gamepads.gamepad1.leftStickX,
119119
Gamepads.gamepad1.rightStickX,
120-
HolonomicMode.FieldCentric(imu)
120+
FieldCentric(imu)
121121
)
122122
driverControlled()
123123
```
@@ -133,7 +133,7 @@ driverControlled = new MecanumDriverControlled(
133133
Gamepads.gamepad1().leftStickY().negate(),
134134
Gamepads.gamepad1().leftStickX(),
135135
Gamepads.gamepad1().rightStickX(),
136-
new HolonomicMode.FieldCentric(imu)
136+
new FieldCentric(imu)
137137
);
138138
driverControlled.schedule();
139139
```

0 commit comments

Comments
 (0)