mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
standard vtol: fix mc weight calculation
Signed-off-by: Roman <bapstroman@gmail.com>
This commit is contained in:
parent
23257bf6ee
commit
e0ca38e794
@ -258,7 +258,7 @@ void Standard::update_transition_state()
|
||||
// time based blending when no airspeed sensor is set
|
||||
|
||||
} else if (_params->airspeed_disabled) {
|
||||
mc_weight = 1.0f - (time_since_trans_start - _params->front_trans_time_min) / _params->front_trans_time_min;
|
||||
mc_weight = 1.0f - time_since_trans_start / _params->front_trans_time_min;
|
||||
mc_weight = math::constrain(2.0f * mc_weight, 0.0f, 1.0f);
|
||||
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user