t/psmv: Fix FTBFS on PPC.

Apparently EIGEN_PI isn't a double by default.
This commit is contained in:
Ryan Pavlik 2020-04-27 20:18:31 +00:00
parent a10e7fe968
commit 75d5e5b9f2
2 changed files with 5 additions and 1 deletions

View file

@ -0,0 +1,4 @@
---
- issue.69
---
psmv: Fix failure to build from source on PPC.

View file

@ -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,