mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 22:33:34 +08:00
vtol: implement throttle blending out and into transition
- blend into TECS throttle after front transition - blend out of TECS throttle during backtransition Signed-off-by: RomanBapst <bapstroman@gmail.com>
This commit is contained in:
committed by
Silvan Fuhrer
parent
8dd76050e0
commit
f61853d428
@@ -420,3 +420,9 @@ Standard::waiting_on_tecs()
|
||||
// keep thrust from transition
|
||||
_v_att_sp->thrust_body[0] = _pusher_throttle;
|
||||
};
|
||||
|
||||
void Standard::blendThrottleAfterFrontTransition(float scale)
|
||||
{
|
||||
const float tecs_throttle = _v_att_sp->thrust_body[0];
|
||||
_v_att_sp->thrust_body[0] = scale * tecs_throttle + (1.0f - scale) * _pusher_throttle;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user