diff options
author | Michael Welter <michael@welter-4d.de> | 2023-04-23 20:48:50 +0200 |
---|---|---|
committer | Michael Welter <michael@welter-4d.de> | 2023-09-30 15:53:52 +0200 |
commit | 5a0e3201b7aef995ae20c1ed35bc383487281679 (patch) | |
tree | a807be27966887231b21db403f09ad9c8c357c02 | |
parent | ff23f84bceb9b286846cb40ac4df6f640e38426b (diff) |
tracker/nn: Fix 180 deg 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 59e17063..4ee8de1e 100644 --- a/tracker-neuralnet/ftnoir_tracker_neuralnet.cpp +++ b/tracker-neuralnet/ftnoir_tracker_neuralnet.cpp @@ -652,7 +652,7 @@ void NeuralNetTracker::data(double *data) const auto& mx = tmp.R.col(0); const auto& my = tmp.R.col(1); - const auto& mz = -tmp.R.col(2); + const auto& mz = tmp.R.col(2); 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))); |