mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-01 12:46:12 +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();
|
reset_filter_and_imu();
|
||||||
}
|
}
|
||||||
// 7200 deg/sec
|
// 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() >
|
if (filter_state.angularVelocity().squaredNorm() >
|
||||||
max_rad_per_sec * max_rad_per_sec) {
|
max_rad_per_sec * max_rad_per_sec) {
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
|
|
Loading…
Reference in a new issue