Skip to content

Commit

Permalink
Add example of swing turning different direction
Browse files Browse the repository at this point in the history
  • Loading branch information
Rocky14683 committed Feb 14, 2024
1 parent f77b2e7 commit 5aaabb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 5aaabb1

Please sign in to comment.