mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-06 10:20:35 +08:00
Merge pull request #112 from PX4/fix_ubuntu1604_2
ekf: compile fix for Ubuntu 16.04
This commit is contained in:
+2
-2
@@ -342,8 +342,8 @@ bool Ekf::update()
|
||||
// the output observer always runs
|
||||
calculateOutputStates();
|
||||
|
||||
// check for NaN on attitude states
|
||||
if (isnan(_state.quat_nominal(0)) || isnan(_output_new.quat_nominal(0))) {
|
||||
// check for NaN or inf on attitude states
|
||||
if (!std::isfinite(_state.quat_nominal(0)) || !std::isfinite(_output_new.quat_nominal(0))) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user