Skip to content

Commit

Permalink
Replaced voss::Point with voss::Pose in readme (#108)
Browse files Browse the repository at this point in the history
* Replaced `voss::Point` with `voss::Pose` in readme

* Removed all `voss::Pose`

* Fixed incorrect indentation
  • Loading branch information
ssejrog authored Nov 23, 2024
1 parent cfdf475 commit 66e1e2b
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -263,22 +263,22 @@ void opcontrol() {
```cpp
void autonomous(){
// using default controller:
chassis.move(10); //move forward 10
chassis.move(-10, 100, voss::Flags::REVERSE) //move backward 10
chassis.move(10); // move forward 10
chassis.move(-10, 100, voss::Flags::REVERSE); // move backward 10
chassis.move(10, 70);
chassis.move(voss::Point{1.0, 1.0}, 70);
chassis.move(voss::Point{1.0, 1.0, 30}, 100, voss::Flags::RELATIVE);
chassis.move(voss::Point{1.0, 1.0}, 100, voss::Flags::REVERSE | voss:Flags::ASYNC | voss::Flags::THRU);
chassis.move({1.0, 1.0}, 70);
chassis.move({1.0, 1.0, 30}, 100, voss::Flags::RELATIVE);
chassis.move({1.0, 1.0}, 100, voss::Flags::REVERSE | voss::Flags::ASYNC | voss::Flags::THRU);
// using boomerang controller:
chassis.move(voss::Point{1.0, 1.0, 90}, boomerang);
chassis.move(voss::Point{1.0, 1.0, 20}, boomerang, 70);
chassis.move(voss::Point{1.0, 1.0, 30}, boomerang, 100, voss::Flags::RELATIVE);
chassis.move(voss::Point{1.0, 1.0, 10}, boomerang, 100, voss::Flags::REVERSE | voss:Flags::ASYNC | voss::Flags::THRU);
chassis.move({1.0, 1.0, 90}, boomerang);
chassis.move({1.0, 1.0, 20}, boomerang, 70);
chassis.move({1.0, 1.0, 30}, boomerang, 100, voss::Flags::RELATIVE);
chassis.move({1.0, 1.0, 10}, boomerang, 100, voss::Flags::REVERSE | voss::Flags::ASYNC | voss::Flags::THRU);
// using arc controller:
chassis.move(voss::Point{1.0, 1.0}, arc);
chassis.move(voss::Point{1.0, 1.0}, arc, 70);
chassis.move(voss::Point{1.0, 1.0}, arc, 100, voss::Flags::RELATIVE);
chassis.move(voss::Point{1.0, 1.0}, arc, 100, voss::Flags::REVERSE | voss:Flags::ASYNC | voss::Flags::THRU);
chassis.move({1.0, 1.0}, arc);
chassis.move({1.0, 1.0}, arc, 70);
chassis.move({1.0, 1.0}, arc, 100, voss::Flags::RELATIVE);
chassis.move({1.0, 1.0}, arc, 100, voss::Flags::REVERSE | voss::Flags::ASYNC | voss::Flags::THRU);
}
```

Expand Down

0 comments on commit 66e1e2b

Please sign in to comment.