From 5aaabb134803e55f2e296102549d5076ff29318c Mon Sep 17 00:00:00 2001 From: Rocky14683 Date: Tue, 13 Feb 2024 21:58:04 -0500 Subject: [PATCH] Add example of swing turning different direction --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 7c90c44..f0a4105 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -107,7 +107,7 @@ void opcontrol() { if (master.get_digital_new_press(DIGITAL_Y)) { odom->set_pose(voss::Pose{0.0, 0.0, 0}); - chassis.turn(270, 100, voss::Flags::NONE, + chassis.turn(270, swing, 100, voss::Flags::NONE, voss::AngularDirection::COUNTERCLOCKWISE); chassis.turn(0); chassis.turn(-270, swing, 100, voss::Flags::NONE,