Skip to content

Commit

Permalink
Fix OctocanumDrive mecanum drive
Browse files Browse the repository at this point in the history
  • Loading branch information
C7C8 committed Dec 17, 2015
1 parent 264cc7a commit 97b39ac
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/drivebase/OctocanumDrive.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,13 @@ namespace ADBLib
{
if (mode == mecanum)
{
speeds[frontLeft] = -(x + y + r);
speeds[frontRight] = x + y - r;
speeds[frontLeft] = x + y + r;
speeds[frontRight] = -x + y - r;
speeds[backRight] = x + y - r;
speeds[backLeft] = -(x + y + r);
speeds[backLeft] = -x + y + r;

speeds[frontLeft] = -speeds[frontLeft];
speeds[backLeft] = -speeds[backLeft];

normSpeeds();

Expand Down

0 comments on commit 97b39ac

Please sign in to comment.