updated most things to work on Wheezy
I haven't done the new opencv packages yet, so I just didn't test
compiling that stuff.
Almost all of the changes were related to user-defined string literals
breaking things like "%"PRIu32" (in our code and other people's).
diff --git a/vision/CameraProcessor.h b/vision/CameraProcessor.h
index 8d51cd8..096defb 100644
--- a/vision/CameraProcessor.h
+++ b/vision/CameraProcessor.h
@@ -63,12 +63,12 @@
cv::MemStorage g_storage; // opencv storage
static const int HIST_SIZE = 20; // dimension of histogram
// ie number of scan lines
- static const double HIST_SIZE_F = 1.0/20.0; // step size
+ static constexpr double HIST_SIZE_F = 1.0/20.0; // step size
// should be 1/HIST_SIZE
double vert_hist[HIST_SIZE]; // desired vertical histogram
double horz_hist[HIST_SIZE]; // desired horizontal histogram
// defines the minimum dist for a match
- static const double HIST_MATCH = 1.9;
+ static constexpr double HIST_MATCH = 1.9;
double calcHistComponent(
cv::Point2i start,
cv::Point2i end,