Moving camera calib files to use camera#
Modifying intrinsics_calibration to handle and use this new format
Changing numbering to match /dev/video#, so that camera on /dev/video0
is publishing on /camera0 for example
Added a utility function to get camera number from channel, and a test to
go with it
Cleaned up some of the logging to use percentages instead of fractions /
decimals
Change-Id: I764d59ca7d9089a37d010272879ce55aae5dbd95
Signed-off-by: Jim Ostrowski <yimmy13@gmail.com>
diff --git a/frc971/vision/calibration.fbs b/frc971/vision/calibration.fbs
index df8b7b0..428fc83 100644
--- a/frc971/vision/calibration.fbs
+++ b/frc971/vision/calibration.fbs
@@ -48,6 +48,9 @@
// ID for the physical camera hardware (typically will be a string of the form
// YY-NN, with a two-digit year and an index).
camera_id:string (id: 7);
+
+ // The camera number. This may be empty, "0", or "1".
+ camera_number:int (id: 8);
}
// Calibration information for all the cameras we know about.