mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-24 17:10:35 +08:00
VTOL Standard: fix transition pusher motor slew rate
Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
This commit is contained in:
committed by
Daniel Agar
parent
71bf06af56
commit
4fe51d4911
@@ -200,8 +200,11 @@ void Standard::update_transition_state()
|
||||
|
||||
} else if (_pusher_throttle <= _param_vt_f_trans_thr.get()) {
|
||||
// ramp up throttle to the target throttle value
|
||||
const float dt = math::min((now - _last_time_pusher_transition_update) / 1e6f, 0.05f);
|
||||
_pusher_throttle = math::min(_pusher_throttle +
|
||||
_param_vt_psher_slew.get() * _dt, _param_vt_f_trans_thr.get());
|
||||
_param_vt_psher_slew.get() * dt, _param_vt_f_trans_thr.get());
|
||||
|
||||
_last_time_pusher_transition_update = now;
|
||||
}
|
||||
|
||||
_airspeed_trans_blend_margin = getTransitionAirspeed() - getBlendAirspeed();
|
||||
|
||||
@@ -76,6 +76,7 @@ private:
|
||||
|
||||
float _pusher_throttle{0.0f};
|
||||
float _airspeed_trans_blend_margin{0.0f};
|
||||
hrt_abstime _last_time_pusher_transition_update{0};
|
||||
|
||||
void parameters_update() override;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user