mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-23 14:06:36 +08:00
added option to fix airspeed scaling to 1
This commit is contained in:
@@ -326,7 +326,13 @@ WindEstimator::run_sanity_checks()
|
||||
}
|
||||
|
||||
// constrain airspeed scale factor, negative values physically do not make sense
|
||||
_state(tas) = math::max(0.0f, _state(tas));
|
||||
if (_scale_estimation_on) {
|
||||
_state(tas) = math::max(0.0f, _state(tas));
|
||||
} else {
|
||||
_state(tas) = 1.0f;
|
||||
}
|
||||
|
||||
|
||||
|
||||
// attain symmetry
|
||||
for (unsigned row = 0; row < 3; row++) {
|
||||
|
||||
Reference in New Issue
Block a user