made the vision code not crash (at least as fast)
diff --git a/vision/CameraProcessor.cpp b/vision/CameraProcessor.cpp
index f870385..e186cbf 100644
--- a/vision/CameraProcessor.cpp
+++ b/vision/CameraProcessor.cpp
@@ -287,6 +287,9 @@
}
j++;
}
+
+ src_header_image = cvCreateImage(cvSize(width, height),
+ IPL_DEPTH_8U, 3);
}
// throw stuff away
diff --git a/vision/GoalMaster.cpp b/vision/GoalMaster.cpp
index d5e8822..c1b45b5 100644
--- a/vision/GoalMaster.cpp
+++ b/vision/GoalMaster.cpp
@@ -2,6 +2,7 @@
#include "aos/common/time.h"
#include "aos/atom_code/init.h"
+#include "aos/common/logging/logging.h"
#include "frc971/queues/GyroAngle.q.h"
#include "frc971/queues/CameraTarget.q.h"
@@ -36,9 +37,10 @@
sizeof(kPixelsToMeters) / sizeof(kPixelsToMeters[0]),
kPixelsToMeters,
targets->percent_elevation_off_center);
+ LOG(DEBUG, "think target is %f meters away\n", meters);
target_angle.MakeWithBuilder()
- .target_angle(/*angle_goal*/0)
+ /*.target_angle(angle_goal)*/
.shooter_speed(interpolate(
sizeof(kMetersToShooterSpeeds) / sizeof(kMetersToShooterSpeeds[0]),
kMetersToShooterSpeeds,
diff --git a/vision/vision.gyp b/vision/vision.gyp
index 26ddb23..8fe50a4 100644
--- a/vision/vision.gyp
+++ b/vision/vision.gyp
@@ -31,6 +31,7 @@
'<(AOS)/atom_code/atom_code.gyp:init',
'<(AOS)/common/common.gyp:time',
'<(DEPTH)/frc971/queues/queues.gyp:queues',
+ '<(AOS)/build/aos.gyp:logging',
],
},
],