Send a CameraCommand from the roboRIO too
This will be triggered by buttons soon.
Change-Id: I99d5113e3be4cba57549e33263f958ca4d232705
diff --git a/y2019/jevois/structures.h b/y2019/jevois/structures.h
index 28da405..aa4fc07 100644
--- a/y2019/jevois/structures.h
+++ b/y2019/jevois/structures.h
@@ -106,17 +106,17 @@
camera_duration age;
};
+enum class CameraCommand : char {
+ // Stay in normal mode.
+ kNormal,
+ // Go to camera passthrough mode.
+ kCameraPassthrough,
+ // Go to being a useful USB device.
+ kUsb,
+};
+
// This is all the information sent from the Teensy to each camera.
struct CameraCalibration {
- enum class CameraCommand : char {
- // Stay in normal mode.
- kNormal,
- // Go to camera passthrough mode.
- kCameraPassthrough,
- // Go to being a useful USB device.
- kUsb,
- };
-
bool operator==(const CameraCalibration &other) const {
if (other.calibration != calibration) {
return false;
@@ -194,6 +194,9 @@
// The current time.
aos::realtime_clock::time_point realtime_now;
+
+ // A command to send to all the cameras.
+ CameraCommand camera_command;
};
} // namespace jevois