Return Mode (Multicopter)
The Return flight mode is used to fly a vehicle to safety on an unobstructed path to a safe destination, where it can land.
Multicopters use a home/rally point return type by default. In this return type vehicles ascend to a safe altitude above obstructions if needed, fly directly to the closest safe landing point (a rally point or the home position), descend to the "descent altitude", wait briefly, and then land. The return altitude, descent altitude, and landing delay are normally set to conservative "safe" values, but can be changed if needed.
Multicopter supports the other PX4 return types, including mission landing, mission path and closest safe destination. The default type is recommended.
INFO
- Mode is automatic - no user intervention is required to control the vehicle.
- Mode requires a global 3d position estimate (from GPS or inferred from a local position).
- Flying vehicles can't switch to this mode without global position.
- Flying vehicles will failsafe if they lose the position estimate.
- Mode requires home position is set.
- Mode prevents arming (vehicle must be armed when switching to this mode).
- 遥控开关可以在任何无人机上更改飞行模式。
- RC stick movement will by default change the vehicle to Position mode unless handling a critical battery failsafe.
技术总结
Multicopters use the home/rally point return type by default. For this return type the copter:
- Ascends to the minimum return altitude (safely above any expected obstacles). The vehicle maintains its initial altitude if that is higher than the minimum return altitude.
- Flies via a direct constant-altitude path to the safe landing point, which will be the nearest of any rally points and the home position.
- On arrival at its destination, it rapidly descends to the "descent altitude" (RTL_DESCEND_ALT).
- It waits for a configurable time (RTL_LAND_DELAY), which may be used for deploying landing gear.
- Then lands.
悬停/降落在目的地
By default the minimum return altitude is set using RTL_RETURN_ALT, and the vehicle will just return at the higher of RTL_RETURN_ALT
or the initial vehicle altitude.
The minimum return altitude can be further configured using RTL_CONE_ANG, which together with RTL_RETURN_ALT defines a half cone centered around the destination landing point. The cone angle allows a lower minimum return altitude when the return mode is executed close to the destination. This is useful when there are few obstacles near the destination, because it may reduce the minimum height that the vehicle needs to ascend before landing, and hence power consumption and time to land.
The cone affects the minimum return altitude if return mode is triggered within the cylinder defined by the maximum cone radius and RTL_RETURN_ALT
: outside this cyclinder RTL_RETURN_ALT
is used. Inside the code the minimum return altitude is the intersection of the vehicle position with the cone, or RTL_DESCEND_ALT
(whichever is higher). In other words, the vehicle must always ascend to at least RTL_DESCEND_ALT
if below that value.
For more information on this return type see Home/Rally Point Return Type (RTL_TYPE=0)
参数
The RTL parameters are listed in Parameter Reference > Return Mode.
The parameters that are relevant to multicopter (assuming the RTL_TYPE is set to 0) are listed below.
参数 | 描述 |
---|---|
RTL_RETURN_ALT | Return altitude in meters (default: 60m) when RTL_CONE_ANG is 0. 如果已经超过这个值, 飞机将返回当前的高度。 |
RTL_DESCEND_ALT | 最小返航高度和无人机从较高的返航高度到减速或者停止的初始下降高度(默认: 30米)。 |
RTL_LAND_DELAY | Time to hover at RTL_DESCEND_ALT before landing (default: 0.5s) -by default this period is short so that the vehicle will simply slow and then land immediately. If set to -1 the system will loiter at RTL_DESCEND_ALT rather than landing. 延迟能够使你为起落架的展开部署配置时间(自动触发)。 |
RTL_MIN_DIST | 能够触发无人机上升到返航高度,距离起始位置的最小水平距离由那个"锥形"指定。 If the vehicle is horizontally closer than this distance to home, it will return at its current altitude or RTL_DESCEND_ALT (whichever is higher) instead of first ascending to RTL_RETURN_ALT). |
RTL_CONE_ANG | 圆锥半角决定无人机的 RTL 返航高度。 数值(度数):0、25、45、65、80、90。 Note that 0 is "no cone" (always return at RTL_RETURN_ALT or higher), while 90 indicates that the vehicle must return at the current altitude or RTL_DESCEND_ALT (whichever is higher). |
COM_RC_OVERRIDE | Controls whether stick movement on a multicopter (or VTOL in MC mode) causes a mode change to Position mode (except when vehicle is handling a critical battery failsafe). 可以分别为自动模式和 offboard 模式启用此功能,默认情况下在自动模式下启用此功能。 |
COM_RC_STICK_OV | The amount of stick movement that causes a transition to Position mode (if COM_RC_OVERRIDE is enabled). |