mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-06 05:31:35 +08:00
VTOL: Added position feedback to backward transition braking controller(#23731)
Instead of tracking a fixed deceleration setpoint during the backtransition we added here position feedback, such that the vehicle comes to a stop latest at the current position setpoint. This reduces the risk of overshooting the landing point. If no position feedback/position setpoint is present the old logic still applies. It further moves the braking controller to the FlightTaskTransition instad of doing it in the VTOL attitude mode. * vtol_type: added position feedback to backward transition * FlgithTaskTransition: refactored backtransition deceleration/pitch setpoint computation * FlightTaskTransition: minor improvements * FlightTaskTransition: use .dot() consistently and remove unnecessary comments Signed-off-by: Silvan Fuhrer <silvan@auterion.com> --------- Signed-off-by: Silvan Fuhrer <silvan@auterion.com> Co-authored-by: Silvan Fuhrer <silvan@auterion.com>
This commit is contained in:
co-authored by
Silvan Fuhrer
parent
f47719d397
commit
079b756f1b
@@ -295,7 +295,7 @@ void Tiltrotor::update_transition_state()
|
||||
|
||||
// control backtransition deceleration using pitch.
|
||||
if (_v_control_mode->flag_control_climb_rate_enabled) {
|
||||
pitch_body = update_and_get_backtransition_pitch_sp();
|
||||
pitch_body = Eulerf(Quatf(_mc_virtual_att_sp->q_d)).theta();
|
||||
}
|
||||
|
||||
if (_time_since_trans_start < BACKTRANS_THROTTLE_DOWNRAMP_DUR_S) {
|
||||
|
||||
Reference in New Issue
Block a user