got vision code working again
diff --git a/frc971/atom_code/scripts/start_list.txt b/frc971/atom_code/scripts/start_list.txt
index 0991e96..1c4b259 100644
--- a/frc971/atom_code/scripts/start_list.txt
+++ b/frc971/atom_code/scripts/start_list.txt
@@ -9,3 +9,8 @@
shooter
auto
gyro_sensor_receiver
+CameraReader
+CameraHTTPStreamer
+CameraServer
+OpenCVWorkTask
+GoalMaster
diff --git a/frc971/control_loops/index/index.cc b/frc971/control_loops/index/index.cc
index 6ac91b7..b36d517 100644
--- a/frc971/control_loops/index/index.cc
+++ b/frc971/control_loops/index/index.cc
@@ -108,7 +108,7 @@
const /*static*/ double IndexMotor::kTransferRollerRadius = 1.25 * 0.0254 / 2;
/*static*/ const int IndexMotor::kGrabbingDelay = 5;
-/*static*/ const int IndexMotor::kLiftingDelay = 2;
+/*static*/ const int IndexMotor::kLiftingDelay = 5;
/*static*/ const int IndexMotor::kLiftingTimeout = 100;
/*static*/ const int IndexMotor::kShootingDelay = 10;
/*static*/ const int IndexMotor::kLoweringDelay = 4;
diff --git a/frc971/input/JoystickReader.cc b/frc971/input/JoystickReader.cc
index a2404d0..3cbe3c5 100644
--- a/frc971/input/JoystickReader.cc
+++ b/frc971/input/JoystickReader.cc
@@ -171,28 +171,17 @@
if (hopper_clear) wrist_up_position = kWristCleared;
angle_adjust_goal = 0.70;
} else if (data.IsPressed(kLongShot)) {
-#if 0
target_angle.FetchLatest();
if (target_angle.IsNewerThanMS(500)) {
shooter_goal->velocity = target_angle->shooter_speed;
angle_adjust_goal = target_angle->shooter_angle;
// TODO(brians): do the math right here
- wrist_up_position = 0.70;
+ if (!hopper_clear) wrist_up_position = 0.70;
} else {
LOG(WARNING, "camera frame too old\n");
- // pretend like no button is pressed
+ // Pretend like no button is pressed.
}
-#endif
- // This shot is from 30'.
- shooter_goal->velocity = 360;
- if (!hopper_clear) wrist_up_position = 1.23 - 0.4;
- angle_adjust_goal = 0.630;
} else if (data.IsPressed(kMediumShot)) {
-#if 0
- shooter_goal->velocity = 375;
- wrist_up_position = 0.70;
- angle_adjust_goal = 0.564;
-#endif
// middle wheel on the back line (same as auto)
shooter_goal->velocity = 395;
if (!hopper_clear) wrist_up_position = 1.23 - 0.4;