diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-01-28 09:37:39 +0000 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-01-28 09:37:39 +0000 |
commit | 1b240b1a298d4d6daaf3bc867d7e94c2eeb94649 (patch) | |
tree | 7006f4ad6bc8a97576fd29ad191c597afbf1a6df | |
parent | c60248714c9146dd049130a2ae27c98ff03d714a (diff) |
tracker/nn: flip roll
-rw-r--r-- | tracker-neuralnet/ftnoir_tracker_neuralnet.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tracker-neuralnet/ftnoir_tracker_neuralnet.cpp b/tracker-neuralnet/ftnoir_tracker_neuralnet.cpp index 864431b9..f1585954 100644 --- a/tracker-neuralnet/ftnoir_tracker_neuralnet.cpp +++ b/tracker-neuralnet/ftnoir_tracker_neuralnet.cpp @@ -668,7 +668,7 @@ void NeuralNetTracker::data(double *data) const float yaw = std::atan2(mx(2), mx(0)); const float pitch = -std::atan2(-mx(1), std::sqrt(mx(2)*mx(2)+mx(0)*mx(0))); - const float roll = std::atan2(-my(2), mz(2)); + const float roll = -std::atan2(-my(2), mz(2)); { constexpr double rad2deg = 180/M_PI; data[Yaw] = rad2deg * yaw; |