VTOL Standard: fix transition pusher motor slew rate

Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
This commit is contained in:
Silvan Fuhrer
2024-05-22 16:48:28 +02:00
committed by Daniel Agar
parent 71bf06af56
commit 4fe51d4911
2 changed files with 5 additions and 1 deletions
+4 -1
View File
@@ -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();
+1
View File
@@ -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;