File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
source/docs/software/hardware-apis/motors Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -288,15 +288,15 @@ The MecanumDrive class contains two different default modes of driving your robo
288
288
.. code-tab:: java
289
289
290
290
public void teleopPeriodic() {
291
- m_robotDrive.driveCartesian (m_stick .getX (), - m_stick.getY (), m_stick.getZ ());
292
- m_robotDrive.drivePolar (m_stick .getX (), - m_stick.getY (), m_stick.getZ ());
291
+ m_robotDrive.driveCartesian (- m_stick .getY (), m_stick.getX (), m_stick.getZ ());
292
+ m_robotDrive.drivePolar (- m_stick .getY (), m_stick.getX (), m_stick.getZ ());
293
293
}
294
294
295
295
.. code- tab:: c++
296
296
297
297
void TeleopPeriodic() override {
298
- m_robotDrive. driveCartesian(m_stick. GetX (), - m_stick. GetY (), m_stick. GetZ ());
299
- m_robotDrive. drivePolar(m_stick. GetX (), - m_stick. GetY (), m_stick. GetZ ());
298
+ m_robotDrive. driveCartesian(- m_stick. GetY (), m_stick. GetX (), m_stick. GetZ ());
299
+ m_robotDrive. drivePolar(- m_stick. GetY (), m_stick. GetX (), m_stick. GetZ ());
300
300
}
301
301
302
302
Field - Oriented Driving
You can’t perform that action at this time.
0 commit comments