Checking in target_sender.cc. Renaming vision_data to avoid naming collision.
Change-Id: I4802bdc361f3eaf42845cb4a3e8e27f8450735ac
diff --git a/y2017/vision/vision_config.proto b/y2017/vision/vision_config.proto
new file mode 100644
index 0000000..0bb7279
--- /dev/null
+++ b/y2017/vision/vision_config.proto
@@ -0,0 +1,59 @@
+syntax = "proto2";
+
+package y2017.vision;
+
+// Stores configuration for camera related settings and specs.
+message CameraSettings {
+ // The focal length of the camera in pixels.
+ optional double focal_length = 1 [default = 1418.6];
+
+ // Width of the image.
+ optional int32 width = 2 [default = 1280];
+
+ // Height of the image.
+ optional int32 height = 3 [default = 960];
+
+ // Exposure setting.
+ optional int32 exposure = 4 [default = 10];
+
+ // Brightness setting.
+ optional int32 brightness = 5 [default = 128];
+
+ // Hardware gain multiplier on pixel values.
+ optional double gain = 6 [default = 1.0];
+
+ // Frames per second to run camera.
+ optional double fps = 7 [default = 30.0];
+}
+
+message GameSpecific {
+ // Needs more woojy.
+ optional int32 woojy = 1;
+}
+
+// Configurations that may be robot dependent.
+message RobotConfig {
+ // Device name of the camera (ie /dev/video1).
+ optional string camera_device_path = 1;
+
+ // RoboRIO IP address.
+ optional string roborio_ipaddr = 2;
+
+ // Jetson board IP address.
+ optional string jetson_ipaddr = 3;
+
+ // Port to use (both sides).
+ optional int32 port = 4;
+}
+
+// Stores configuration information for a given set of hardware.
+message VisionConfig {
+ // Map robot name to the robot dependent configuration.
+ map<string, RobotConfig> robot_configs = 1;
+
+ // Parameters for camera bringup.
+ optional CameraSettings camera_params = 2;
+
+ // Parameters for this specific game
+ optional GameSpecific game_params = 3;
+}