Tune cable carrier auto
Tune splines and arm movements.
Change-Id: I4b27ff9e2d4fad278057f0c8bdbf56c6646349d5
Signed-off-by: Austin Schuh <austin.linux@gmail.com>
diff --git a/y2023/autonomous/autonomous_actor.cc b/y2023/autonomous/autonomous_actor.cc
index 58c31d0..cd4d4f1 100644
--- a/y2023/autonomous/autonomous_actor.cc
+++ b/y2023/autonomous/autonomous_actor.cc
@@ -475,7 +475,13 @@
splines[1].Start();
std::this_thread::sleep_for(chrono::milliseconds(300));
+ Neutral();
+
+ if (!splines[1].WaitForSplineDistanceTraveled(3.2)) return;
HighCubeScore();
+ AOS_LOG(
+ INFO, "Extending arm %lf s\n",
+ aos::time::DurationInSeconds(aos::monotonic_clock::now() - start_time));
if (!splines[1].WaitForSplineDistanceRemaining(0.08)) return;
AOS_LOG(
@@ -521,10 +527,17 @@
if (!splines[3].WaitForPlan()) return;
splines[3].Start();
+ std::this_thread::sleep_for(chrono::milliseconds(400));
+ Neutral();
+
AOS_LOG(
INFO, "Driving back %lf s\n",
aos::time::DurationInSeconds(aos::monotonic_clock::now() - start_time));
+ if (!splines[3].WaitForSplineDistanceTraveled(3.5)) return;
+ AOS_LOG(
+ INFO, "Extending arm %lf s\n",
+ aos::time::DurationInSeconds(aos::monotonic_clock::now() - start_time));
MidCubeScore();
if (!splines[3].WaitForSplineDistanceRemaining(0.07)) return;