mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 19:33:34 +08:00
navigator remove FW and MC cruise parameters
This commit is contained in:
committed by
Lorenz Meier
parent
0106840b87
commit
1fd343b5cc
@@ -99,10 +99,7 @@ Navigator::Navigator() :
|
||||
_param_loiter_radius(this, "LOITER_RAD"),
|
||||
_param_acceptance_radius(this, "ACC_RAD"),
|
||||
_param_fw_alt_acceptance_radius(this, "FW_ALT_RAD"),
|
||||
_param_mc_alt_acceptance_radius(this, "MC_ALT_RAD"),
|
||||
_param_cruising_speed_hover(this, "MPC_XY_CRUISE", false),
|
||||
_param_cruising_speed_plane(this, "FW_AIRSPD_TRIM", false),
|
||||
_param_cruising_throttle_plane(this, "FW_THR_CRUISE", false)
|
||||
_param_mc_alt_acceptance_radius(this, "MC_ALT_RAD")
|
||||
{
|
||||
/* Create a list of our possible navigation types */
|
||||
_navigation_mode_array[0] = &_mission;
|
||||
@@ -745,7 +742,7 @@ Navigator::get_cruising_speed()
|
||||
return _mission_cruising_speed_mc;
|
||||
|
||||
} else {
|
||||
return _param_cruising_speed_hover.get();
|
||||
return -1.0f;
|
||||
}
|
||||
|
||||
} else {
|
||||
@@ -753,7 +750,7 @@ Navigator::get_cruising_speed()
|
||||
return _mission_cruising_speed_fw;
|
||||
|
||||
} else {
|
||||
return _param_cruising_speed_plane.get();
|
||||
return -1.0f;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user