From 8231ea22ed6bdaa59fa22199b4615d101778e7cf Mon Sep 17 00:00:00 2001 From: Jess Zarchi Date: Wed, 11 Sep 2024 13:57:29 -0700 Subject: [PATCH 1/3] Replaced `voss::Point` with `voss::Pose` in readme --- README.md | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index c364be3..2aed7d3 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(voss::Pose{1.0, 1.0}, 70); + chassis.move(voss::Pose{1.0, 1.0, 30}, 100, voss::Flags::RELATIVE); + chassis.move(voss::Pose{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(voss::Pose{1.0, 1.0, 90}, boomerang); + chassis.move(voss::Pose{1.0, 1.0, 20}, boomerang, 70); + chassis.move(voss::Pose{1.0, 1.0, 30}, boomerang, 100, voss::Flags::RELATIVE); + chassis.move(voss::Pose{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(voss::Pose{1.0, 1.0}, arc); + chassis.move(voss::Pose{1.0, 1.0}, arc, 70); + chassis.move(voss::Pose{1.0, 1.0}, arc, 100, voss::Flags::RELATIVE); + chassis.move(voss::Pose{1.0, 1.0}, arc, 100, voss::Flags::REVERSE | voss ::Flags::ASYNC | voss::Flags::THRU); } ``` From 04bc2312d3fff759ea57a6f05d9dcbbb6210b7e7 Mon Sep 17 00:00:00 2001 From: Jess Zarchi Date: Thu, 19 Sep 2024 09:09:14 -0700 Subject: [PATCH 2/3] Removed all `voss::Pose` --- README.md | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 2aed7d3..b86eb89 100644 --- a/README.md +++ b/README.md @@ -266,19 +266,19 @@ void autonomous(){ chassis.move(10); // move forward 10 chassis.move(-10, 100, voss::Flags::REVERSE); // move backward 10 chassis.move(10, 70); - chassis.move(voss::Pose{1.0, 1.0}, 70); - chassis.move(voss::Pose{1.0, 1.0, 30}, 100, voss::Flags::RELATIVE); - chassis.move(voss::Pose{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::Pose{1.0, 1.0, 90}, boomerang); - chassis.move(voss::Pose{1.0, 1.0, 20}, boomerang, 70); - chassis.move(voss::Pose{1.0, 1.0, 30}, boomerang, 100, voss::Flags::RELATIVE); - chassis.move(voss::Pose{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::Pose{1.0, 1.0}, arc); - chassis.move(voss::Pose{1.0, 1.0}, arc, 70); - chassis.move(voss::Pose{1.0, 1.0}, arc, 100, voss::Flags::RELATIVE); - chassis.move(voss::Pose{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); } ``` From 68895c8ba554bf5703a0bbe2a04ec6b8ec2b8b70 Mon Sep 17 00:00:00 2001 From: Jess Zarchi Date: Tue, 24 Sep 2024 15:18:29 -0700 Subject: [PATCH 3/3] Fixed incorrect indentation --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b86eb89..8dc9f2c 100644 --- a/README.md +++ b/README.md @@ -268,17 +268,17 @@ void autonomous(){ chassis.move(10, 70); 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); + chassis.move({1.0, 1.0}, 100, voss::Flags::REVERSE | voss::Flags::ASYNC | voss::Flags::THRU); // using boomerang controller: 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); + chassis.move({1.0, 1.0, 10}, boomerang, 100, voss::Flags::REVERSE | voss::Flags::ASYNC | voss::Flags::THRU); // using arc controller: 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); + chassis.move({1.0, 1.0}, arc, 100, voss::Flags::REVERSE | voss::Flags::ASYNC | voss::Flags::THRU); } ```