From ed4e090433b0f6f21059e876a0ebb72c7757e3d8 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 27 Aug 2018 17:01:14 +0200 Subject: proto/ft: fix hack for falcon bms --- proto-ft/ftnoir_protocol_ft.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'proto-ft/ftnoir_protocol_ft.cpp') 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; -- cgit v1.2.3