mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-17 05:40:35 +08:00
FW mode manager/Commander: hanlde invlaid pos in FW manager
Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
This commit is contained in:
@@ -227,6 +227,7 @@ private:
|
||||
FW_POSCTRL_MODE_AUTO_ALTITUDE,
|
||||
FW_POSCTRL_MODE_AUTO_CLIMBRATE,
|
||||
FW_POSCTRL_MODE_AUTO_TAKEOFF,
|
||||
FW_POSCTRL_MODE_AUTO_TAKEOFF_NO_NAV,
|
||||
FW_POSCTRL_MODE_AUTO_LANDING_STRAIGHT,
|
||||
FW_POSCTRL_MODE_AUTO_LANDING_CIRCULAR,
|
||||
FW_POSCTRL_MODE_AUTO_PATH,
|
||||
@@ -570,6 +571,16 @@ private:
|
||||
void control_auto_takeoff(const hrt_abstime &now, const float control_interval, const Vector2d &global_position,
|
||||
const Vector2f &ground_speed, const position_setpoint_s &pos_sp_curr);
|
||||
|
||||
/**
|
||||
* @brief Controls automatic takeoff without navigation.
|
||||
*
|
||||
* @param now Current system time [us]
|
||||
* @param control_interval Time since last position control call [s]
|
||||
* @param altitude_setpoint_amsl Altitude setpoint, AMSL [m]
|
||||
*/
|
||||
void control_auto_takeoff_no_nav(const hrt_abstime &now, const float control_interval,
|
||||
const float altitude_setpoint_amsl);
|
||||
|
||||
/**
|
||||
* @brief Controls automatic landing with straight approach.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user