mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-22 22:06:37 +08:00
cmake standalone build
This commit is contained in:
@@ -38,7 +38,6 @@
|
||||
|
||||
#include "WindEstimator.hpp"
|
||||
|
||||
|
||||
bool
|
||||
WindEstimator::initialise(const matrix::Vector3f &velI, const matrix::Vector2f &velIvar, const float tas_meas)
|
||||
{
|
||||
@@ -321,7 +320,7 @@ WindEstimator::run_sanity_checks()
|
||||
}
|
||||
}
|
||||
|
||||
if (!PX4_ISFINITE(_state(w_n)) || !PX4_ISFINITE(_state(w_e)) || !PX4_ISFINITE(_state(tas))) {
|
||||
if (!ISFINITE(_state(w_n)) || !ISFINITE(_state(w_e)) || !ISFINITE(_state(tas))) {
|
||||
_initialised = false;
|
||||
return;
|
||||
}
|
||||
@@ -353,4 +352,4 @@ WindEstimator::check_if_meas_is_rejected(uint64_t time_now, float innov, float i
|
||||
reinit_filter = time_now - time_meas_rejected > 5 * 1000 * 1000 && time_meas_rejected != 0;
|
||||
|
||||
return time_meas_rejected != 0;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user