Remove pivot, end_effector, and rollers from bot3
This is done because the 3rd robot no longer has them on it,
it won't run without removing them in the code.
Signed-off-by: Maxwell Henderson <maxwell.henderson@mailbox.org>
Change-Id: I3154382fd17e1de5167e4bd242c13318dc227179
diff --git a/y2023_bot3/joystick_reader.cc b/y2023_bot3/joystick_reader.cc
index fd32652..4c42bdc 100644
--- a/y2023_bot3/joystick_reader.cc
+++ b/y2023_bot3/joystick_reader.cc
@@ -31,8 +31,6 @@
using frc971::input::driver_station::JoystickAxis;
using frc971::input::driver_station::POVLocation;
using Side = frc971::control_loops::drivetrain::RobotSide;
-using y2023_bot3::control_loops::superstructure::PivotGoal;
-using y2023_bot3::control_loops::superstructure::RollerGoal;
namespace y2023_bot3 {
namespace input {
@@ -90,33 +88,6 @@
superstructure::Goal::Builder superstructure_goal_builder =
builder.MakeBuilder<superstructure::Goal>();
- RollerGoal roller_goal = RollerGoal::IDLE;
- PivotGoal pivot_goal = PivotGoal::NEUTRAL;
-
- if (data.IsPressed(kSpit)) {
- roller_goal = RollerGoal::SPIT;
- } else if (data.IsPressed(kSpitHigh)) {
- roller_goal = RollerGoal::SPIT_HIGH;
- }
-
- if (data.IsPressed(kScore)) {
- pivot_goal = PivotGoal::SCORE_LOW_FRONT;
- } else if (data.IsPressed(kScoreBack)) {
- pivot_goal = PivotGoal::SCORE_LOW_BACK;
- } else if (data.IsPressed(kScoreMid)) {
- pivot_goal = PivotGoal::SCORE_MID_FRONT;
- } else if (data.IsPressed(kScoreMidBack)) {
- pivot_goal = PivotGoal::SCORE_MID_BACK;
- } else if (data.IsPressed(kPickup)) {
- pivot_goal = PivotGoal::PICKUP_FRONT;
- roller_goal = RollerGoal::INTAKE_CUBE;
- } else if (data.IsPressed(kPickupBack)) {
- pivot_goal = PivotGoal::PICKUP_BACK;
- roller_goal = RollerGoal::INTAKE_CUBE;
- }
-
- superstructure_goal_builder.add_roller_goal(roller_goal);
- superstructure_goal_builder.add_pivot_goal(pivot_goal);
if (builder.Send(superstructure_goal_builder.Finish()) !=
aos::RawSender::Error::kOk) {
AOS_LOG(ERROR, "Sending superstructure goal failed.\n");
@@ -146,4 +117,4 @@
event_loop.Run();
return 0;
-}
\ No newline at end of file
+}