## inav/Navigation.md at master · iNavFlight/inav (github.com)

Home for RTH is the position where vehicle was first armed. This position may be offset by the CLI settings nav_rth_home_offset_distance and nav_rth_home_offset_direction. This position may also be overridden with Safehomes. RTH requires accelerometer, compass and GPS sensors.

If barometer is NOT present, RTH will fly directly to home, altitude control here is up to pilot.

If barometer is present, RTH will maintain altitude during the return. When home is reached, a copter will attempt automated landing. An airplane will either loiter around the home position, or attempt an automated landing, depending on your settings. When deciding what altitude to maintain, RTH has 6 different modes of operation (controlled by nav_rth_alt_mode and nav_rth_altitude cli variables):

• 0 (NAV_RTH_NO_ALT) – keep current altitude during whole RTH sequence (nav_rth_altitude is ignored)
• 1 (NAV_RTH_EXTRA_ALT) – climb to current altitude plus extra margin prior to heading home (nav_rth_altitude defines the extra altitude (cm))
• 2 (NAV_RTH_CONST_ALT) – climb/descend to predefined altitude before heading home (nav_rth_altitude defined altitude above launch point (cm))
• 3 (NAV_RTH_MAX_ALT) – track maximum altitude of the whole flight, climb to that altitude prior to the return (nav_rth_altitude is ignored)
• 4 (NAV_RTH_AT_LEAST_ALT) – same as 2 (NAV_RTH_CONST_ALT), but only climb, do not descend
• 5 (NAV_RTH_AT_LEAST_ALT_LINEAR_DESCENT) – Same as 4 (NAV_RTH_AT_LEAST_ALT). But, if above the RTH Altitude, the aircraft will gradually descend to the RTH Altitude. The target is to reach the RTH Altitude as it arrives at the home point. This is to save energy during the RTH.

2022.07.15 外出测试，结果发现，没有气压计的话，RTH等模式是无法启用的，即遥控器拨杆切换到RTH模式或者定点模式的话，飞机是没有任何反应的，类似于这个功能不存在一样。飞机还会照样接受控制，但这两个模式完全无效。

2022.07.20 准备换飞控测试时，想到可否外置气压计呢？于是找到了这个模块，才一块多，觉得可以买回来安装上测试一下。又看到有一个教程，说到没有气压计时，需要使用以下命令之后才能实现无气压计返航，视频地址：INAV4.1调参教程（三）：定高定点和自动返航_哔哩哔哩_bilibili