Send a CameraCommand from the roboRIO too
This will be triggered by buttons soon.
Change-Id: I99d5113e3be4cba57549e33263f958ca4d232705
diff --git a/y2019/vision/target_sender.cc b/y2019/vision/target_sender.cc
index be56e91..d6c5dc2 100644
--- a/y2019/vision/target_sender.cc
+++ b/y2019/vision/target_sender.cc
@@ -275,7 +275,7 @@
(void)argc;
(void)argv;
using namespace y2019::vision;
- using frc971::jevois::CameraCalibration;
+ using frc971::jevois::CameraCommand;
// gflags::ParseCommandLineFlags(&argc, &argv, false);
::aos::logging::Init();
::aos::logging::AddImplementation(
@@ -382,11 +382,11 @@
if (calibration_question) {
const auto &calibration = *calibration_question;
switch (calibration.camera_command) {
- case CameraCalibration::CameraCommand::kNormal:
+ case CameraCommand::kNormal:
break;
- case CameraCalibration::CameraCommand::kUsb:
+ case CameraCommand::kUsb:
return 0;
- case CameraCalibration::CameraCommand::kCameraPassthrough:
+ case CameraCommand::kCameraPassthrough:
return system("touch /tmp/do_not_export_sd_card");
}
} else {