From 4deb6552e8cd88adf07ef090a4220a8a1d4a7111 Mon Sep 17 00:00:00 2001 From: Caedmon Craig <121980050+AblertARock@users.noreply.github.com> Date: Tue, 27 Aug 2024 17:00:29 -0500 Subject: [PATCH] Update clawbot.rst Fixed reversing the motor. --- v5/tutorials/walkthrough/clawbot.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v5/tutorials/walkthrough/clawbot.rst b/v5/tutorials/walkthrough/clawbot.rst index 26a98794..184e16a5 100644 --- a/v5/tutorials/walkthrough/clawbot.rst +++ b/v5/tutorials/walkthrough/clawbot.rst @@ -223,7 +223,7 @@ and then we'll run the tank drive code. void opcontrol() { pros::Motor left_wheels (LEFT_WHEELS_PORT); - pros::Motor right_wheels (RIGHT_WHEELS_PORT, true); // This reverses the motor + pros::Motor right_wheels (-RIGHT_WHEELS_PORT); // Setting the port value to negative reverses the motor. pros::Controller master (CONTROLLER_MASTER); while (true) {