summaryrefslogtreecommitdiffhomepage
path: root/tracker-test/test.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-06-15 17:52:59 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-06-15 17:52:59 +0200
commitb3072ff9363bcdc3b17d01043714726e82b8b4c3 (patch)
tree2c0dceca29736151422e48c3eb611f20ff983051 /tracker-test/test.cpp
parent460a7a1ff6f86a372862f6293e0b915f1c5507ad (diff)
tracker/test: disable discontinuity on +-180
Diffstat (limited to 'tracker-test/test.cpp')
-rw-r--r--tracker-test/test.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tracker-test/test.cpp b/tracker-test/test.cpp
index 842b24b0..32ff5336 100644
--- a/tracker-test/test.cpp
+++ b/tracker-test/test.cpp
@@ -50,10 +50,12 @@ void FTNoIR_Tracker::data(double *data)
if (i >= 3)
{
+#if 0
if (x > pi + pi/2)
x -= pi;
else if (x > pi/2 && x < pi)
x += pi;
+#endif
data[i] = sin(x) * 180;
}