mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-06 06:43:21 +08:00
Check velocity valid and param description
This commit is contained in:
@@ -214,7 +214,7 @@ void Standard::update_vtol_state()
|
|||||||
|
|
||||||
if (hrt_elapsed_time(&_vtol_schedule.transition_start) >
|
if (hrt_elapsed_time(&_vtol_schedule.transition_start) >
|
||||||
(_params_standard.back_trans_dur * 1000000.0f) ||
|
(_params_standard.back_trans_dur * 1000000.0f) ||
|
||||||
vel <= _params_standard.mpc_xy_cruise) {
|
(_local_pos->v_xy_valid && vel <= _params_standard.mpc_xy_cruise)) {
|
||||||
_vtol_schedule.flight_mode = MC_MODE;
|
_vtol_schedule.flight_mode = MC_MODE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -221,9 +221,10 @@ PARAM_DEFINE_FLOAT(VT_F_TRANS_DUR, 5.0f);
|
|||||||
PARAM_DEFINE_FLOAT(VT_B_TRANS_DUR, 4.0f);
|
PARAM_DEFINE_FLOAT(VT_B_TRANS_DUR, 4.0f);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Deceleration during back transition
|
* Approximate deceleration during back transition
|
||||||
*
|
*
|
||||||
* The deceleration during a back transition in m/s/s
|
* The approximate deceleration during a back transition in m/s/s
|
||||||
|
* Used to calculate back transition distance in mission mode. A lower value will make the VTOL transition further from the destination waypoint.
|
||||||
*
|
*
|
||||||
* @unit m/s/s
|
* @unit m/s/s
|
||||||
* @min 0.00
|
* @min 0.00
|
||||||
|
|||||||
Reference in New Issue
Block a user