summaryrefslogtreecommitdiff
path: root/lib/motors/motors.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/motors/motors.cpp')
-rw-r--r--lib/motors/motors.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/motors/motors.cpp b/lib/motors/motors.cpp
index d0e71b4..68c633d 100644
--- a/lib/motors/motors.cpp
+++ b/lib/motors/motors.cpp
@@ -123,7 +123,7 @@ void MOTORS::backward(int speed, int duration)
}
}
-void MOTORS::leftTurn(int speed, int duration)
+void MOTORS::rightTurn(int speed, int duration)
{
rightForward(speed);
leftBackward(speed);
@@ -134,7 +134,7 @@ void MOTORS::leftTurn(int speed, int duration)
}
}
-void MOTORS::rightTurn(int speed, int duration)
+void MOTORS::leftTurn(int speed, int duration)
{
rightBackward(speed);
leftForward(speed);