mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-02 05:04:08 +08:00
Fix for isfinite.
This commit is contained in:
parent
7abbdcd88f
commit
a2696fcee4
@ -10,6 +10,8 @@
|
||||
|
||||
#include "matrix.hpp"
|
||||
|
||||
#include <cmath>
|
||||
|
||||
namespace matrix
|
||||
{
|
||||
|
||||
@ -56,13 +58,13 @@ public:
|
||||
psi() = 0;
|
||||
theta() = 0;
|
||||
phi() = 0;
|
||||
if (isfinite(psi_val)) {
|
||||
if (std::isfinite(psi_val)) {
|
||||
psi() = psi_val;
|
||||
}
|
||||
if (isfinite(theta_val)) {
|
||||
if (std::isfinite(theta_val)) {
|
||||
theta() = theta_val;
|
||||
}
|
||||
if (isfinite(phi_val)) {
|
||||
if (std::isfinite(phi_val)) {
|
||||
phi() = phi_val;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user