summaryrefslogtreecommitdiffhomepage
path: root/proto-ft
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-08-27 17:01:14 +0200
committerStanislaw Halik <sthalik@misaki.pl>2018-08-27 17:01:14 +0200
commited4e090433b0f6f21059e876a0ebb72c7757e3d8 (patch)
tree7afb9382405b0884ff55807177097b7409769bcc /proto-ft
parentdb858277cf844bd577fe73d43d0c73db7b72950d (diff)
proto/ft: fix hack for falcon bms
Diffstat (limited to 'proto-ft')
-rw-r--r--proto-ft/ftnoir_protocol_ft.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/proto-ft/ftnoir_protocol_ft.cpp b/proto-ft/ftnoir_protocol_ft.cpp
index 7bc85afa..d1c7bf94 100644
--- a/proto-ft/ftnoir_protocol_ft.cpp
+++ b/proto-ft/ftnoir_protocol_ft.cpp
@@ -62,7 +62,7 @@ void freetrack::pose(const double* headpose)
const float tz = float(headpose[TZ] * 10);
// HACK: Falcon BMS makes a "bump" if pitch is over the value -sh 20170615
- const bool is_crossing_90 = std::fabs(headpose[Pitch] - 90) < 1e-4;
+ const bool is_crossing_90 = std::fabs(headpose[Pitch] - 90) < .15;
const float pitch = -d2r * (is_crossing_90 ? 89.86 : headpose[Pitch]);
FTHeap* const ft = pMemData;