mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-28 18:46:18 +00:00
t/psmv: Fix FTBFS on PPC.
Apparently EIGEN_PI isn't a double by default.
This commit is contained in:
parent
a10e7fe968
commit
75d5e5b9f2
4
doc/changes/drivers/mr.288.md
Normal file
4
doc/changes/drivers/mr.288.md
Normal file
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
- issue.69
|
||||
---
|
||||
psmv: Fix failure to build from source on PPC.
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue