diff --git a/doc/changes/drivers/mr.288.md b/doc/changes/drivers/mr.288.md new file mode 100644 index 000000000..9e486adfd --- /dev/null +++ b/doc/changes/drivers/mr.288.md @@ -0,0 +1,4 @@ +--- +- issue.69 +--- +psmv: Fix failure to build from source on PPC. diff --git a/src/xrt/auxiliary/tracking/t_tracker_psmv_fusion.cpp b/src/xrt/auxiliary/tracking/t_tracker_psmv_fusion.cpp index 191d6ea03..0ec3ad407 100644 --- a/src/xrt/auxiliary/tracking/t_tracker_psmv_fusion.cpp +++ b/src/xrt/auxiliary/tracking/t_tracker_psmv_fusion.cpp @@ -148,7 +148,7 @@ namespace { reset_filter_and_imu(); } // 7200 deg/sec - constexpr double max_rad_per_sec = 20 * EIGEN_PI * 2; + constexpr double max_rad_per_sec = 20 * double(EIGEN_PI) * 2; if (filter_state.angularVelocity().squaredNorm() > max_rad_per_sec * max_rad_per_sec) { fprintf(stderr,