From 66e1e2ba29e3a41861b67ca3e7ee344e66b34f93 Mon Sep 17 00:00:00 2001 From: Jess Zarchi Date: Sat, 23 Nov 2024 03:44:42 +0000 Subject: [PATCH] Replaced `voss::Point` with `voss::Pose` in readme (#108) * Replaced `voss::Point` with `voss::Pose` in readme * Removed all `voss::Pose` * Fixed incorrect indentation --- README.md | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index c364be3..8dc9f2c 100644 --- a/README.md +++ b/README.md @@ -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); } ```