summaryrefslogtreecommitdiffhomepage
path: root/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2014-01-14 07:24:30 +0100
committerStanislaw Halik <sthalik@misaki.pl>2014-01-14 07:24:30 +0100
commit7890c4e4f5b8aeefc919fd4dcb8aa8ac35313374 (patch)
tree09bd67f53e302ea91d6ef2bc2ae6d96d2b64ba50 /ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp
parent2a494c722c978b79c2c3e7b423dffee53e4cc3f1 (diff)
remove broken half of pitch breakage detection
Diffstat (limited to 'ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp')
-rw-r--r--ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp b/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp
index d4489638..99ef3271 100644
--- a/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp
+++ b/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp
@@ -196,8 +196,6 @@ void Tracker::run()
int cur_fps = 0;
int last_fps = 0;
cv::Point2f last_centroid;
- const double pitch_eps = 45;
- double last_pitch = 0;
bool first = true;
while (!stop)
@@ -338,10 +336,9 @@ void Tracker::run()
{
cv::Vec3d euler = cv::RQDecomp3x3(rotation_matrix, junk1, junk2);
- if (fabs(euler[0] - last_pitch) > pitch_eps || euler[0] - s.marker_pitch < 0)
+ if (euler[0] - s.marker_pitch < 0)
{
first = true;
- last_pitch = euler[0];
qDebug() << "reset levmarq due to pitch breakage";
}