diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2018-08-27 17:01:14 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2018-08-27 17:01:14 +0200 |
commit | ed4e090433b0f6f21059e876a0ebb72c7757e3d8 (patch) | |
tree | 7afb9382405b0884ff55807177097b7409769bcc | |
parent | db858277cf844bd577fe73d43d0c73db7b72950d (diff) |
proto/ft: fix hack for falcon bms
-rw-r--r-- | proto-ft/ftnoir_protocol_ft.cpp | 2 |
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; |