Skip to content

Navigation Mode: Return to Home

Darren Lines edited this page Aug 1, 2021 · 18 revisions

Return to Home (RTH) has quite a few settings, so would benefit from a page of it's own. RTH will attempt to bring copter/plane to the home position, or safehome if used. The home position is defined as a point where aircraft was first armed, by default. RTH will control both position and altitude. You will have to manually control altitude if your aircraft does not have an altitude sensor (barometer).

With default settings RTH will land immediately if you are closer than 5 meters from launch position. If further away it will make sure to have at least 10 meters of altitude. A plane will fly home at cruise throttle, then loiter or land, depending on settings. A copter will start going home at 3m/s, and land. It will disarm itself if so configured, otherwise you will have to manually disarm once on the ground.

Return to Home is activated by the NAV RTH flight mode.

RTH Altitudes

There are two altitudes that can be used with RTH: nav_rth_altitude and nav_rth_home_altitude.

nav_rth_altitude is used in conjunction with the RTH Altitude control modes to decide the altitude that the model returns home at. See below to see how the two are combined.

nav_rth_home_altitude sets the altitude that a plane will loiter at when it arrives at home. If above the nav_rth_altitude, the plane will start loitering, then loiter down to the home altitude. The default, 0, means that the feature is disabled. In which case the plane will loiter at the RTH altitude.

RTH Altitude control modes

RTH sequence can control altitude in several different ways, controlled by nav_rth_alt_mode and nav_rth_altitud (the altitude in centimetres) parameters.

Default setting is NAV_RTH_AT_LEAST_ALT - climb to preconfigured altitude if below, stay at current altitude if above.

Maintain current altitude (NAV_RTH_NO_ALT)

  • nav_rth_alt_mode = CURRENT
  • nav_rth_altitude is ignored

The Actual RTH Altitude is the altitude that the model is currently flying at.

Maintain current altitude + predefined safety margin (NAV_RTH_EXTRA_ALT)

  • nav_rth_alt_mode = EXTRA
  • nav_rth_altitude defines extra altitude margin

The Actual RTH Altitude is the altitude that the model is currently flying at, plus the nav_rth_altitude.

Predefined altitude (NAV_RTH_CONST_ALT)

  • nav_rth_alt_mode = FIXED
  • nav_rth_altitude defines exact RTH altitude above launch point.

If the model is below nav_rth_altitude it will climb to desired altitude prior to flying back home. If the model is above the desired altitude, it will turn and fly home and descend on the way. That defines the Actual RTH Altitude.

Maximum altitude since launch (NAV_RTH_MAX_ALT)

  • nav_rth_alt_mode = MAX
  • nav_rth_altitude is ignored

The Actual RTH Altitude is the highest altitude during the flight.

At least predefined altitude above launch point (NAV_RTH_AT_LEAST_ALT)

  • nav_rth_alt_mode = AT_LEAST
  • nav_rth_altitude defines the minimum RTH altitude above launch point.

If the aircraft is below nav_rth_altitude it will climb to desired altitude prior to flying back home. If the model is above the desired altitude, it will turn and fly home at the current altitude. This defines the Actual RTH Altitude.

Predefined altitude linear descent (NAV_RTH_AT_LEAST_ALT_LINEAR_DESCENT)

  • nav_rth_alt_mode = AT_LEAST_LINEAR_DESCENT
  • nav_rth_altitude defines minimum RTH altitude above launch point.

If the aircraft is below nav_rth_altitude it will climb to desired altitude prior to flying back home. If the model is above the desired altitude, it will turn and fly home, and descend on the way (on a linear straight line). This defines the Actual RTH Altitude. Aircraft will descend in a way that it'll reach the nav_rth_altitude altitude only when it reaches the home point. So aircraft can save energy by doing an easy descend on it's way back home.

Climb first

The nav_rth_climb_first option sets how the model will initiate the RTH.

Climb first with Multirotors

  • If nav_rth_climb_first = OFF, the multirotor will turn to home, and immediately fly towards it, climbing on the way to the Actual RTH Altitude.
  • If nav_rth_climb_first = ON, the multirotor hover and increase altitude. When it reaches the Actual RTH altitude, it will fly towards home.

Climb first with Fixed Wing

If nav_rth_climb_first = OFF, the plane will turn towards home, and climb to the Actual RTH altitude on the homeward journey.

https://imgur.com/qXkxPxh

If nav_rth_climb_first = ON, the plane climb to the Actual RTH altitude in the direction it is currently flying. Once the Actual RTH Altitude is reached, it will turn and fly towards home.

https://imgur.com/MYWCu2X

If nav_rth_climb_first = ON_FW_SPIRAL, the plane climb in a loiter to the Actual RTH altitude. Once the Actual RTH Altitude is reached, it will turn and fly towards home.

https://imgur.com/iviZOZ4

WIKI TOPICS

Wiki Home Page

INAV Version Release Notes

8.0.0 Release Notes
7.1.0 Release Notes
7.0.0 Release Notes
6.0.0 Release Notes
5.1 Release notes
5.0.0 Release Notes
4.1.0 Release Notes
4.0.0 Release Notes
3.0.0 Release Notes
2.6.0 Release Notes
2.5.1 Release notes
2.5.0 Release Notes
2.4.0 Release Notes
2.3.0 Release Notes
2.2.1 Release Notes
2.2.0 Release Notes
2.1.0 Release Notes
2.0.0 Release Notes
1.9.1 Release notes
1.9.0 Release notes
1.8.0 Release notes
1.7.3 Release notes
Older Release Notes

QUICK START GUIDES

Getting started with iNav
Fixed Wing Guide
Howto: CC3D flight controller, minimOSD , telemetry and GPS for fixed wing
Howto: CC3D flight controller, minimOSD, GPS and LTM telemetry for fixed wing
INAV for BetaFlight users
launch mode
Multirotor guide
YouTube video guides
DevDocs Getting Started.md
DevDocs INAV_Fixed_Wing_Setup_Guide.pdf
DevDocs Safety.md

Connecting to INAV

Bluetooth setup to configure your flight controller
DevDocs Wireless Connections (BLE, TCP and UDP).md\

Flashing and Upgrading

Boards, Targets and PWM allocations
Upgrading from an older version of INAV to the current version
DevDocs Installation.md
DevDocs USB Flashing.md

Setup Tab
Live 3D Graphic & Pre-Arming Checks

Calibration Tab
Accelerometer, Compass, & Optic Flow Calibration

Alignment Tool Tab
Adjust mount angle of FC & Compass

Ports Tab
Map Devices to UART Serial Ports

Receiver Tab
Set protocol and channel mapping

Mixer

Mixer Tab
Custom mixes for exotic setups
DevDocs Mixer.md

Outputs

DevDocs ESC and servo outputs.md
DevDocs Servo.md

Modes

Modes
Navigation modes
Navigation Mode: Return to Home
FW Launch Mode
DevDocs Controls.md
DevDocs INAV_Modes.pdf
DevDocs Navigation.md

Configuration

Sensor auto detect and hardware failure detection

Failsafe

Failsafe
DevDocs Failsafe.md

PID Tuning

EZ-Tune
PID Attenuation and scaling
Fixed Wing Tuning for INAV 3.0
Tune INAV PIFF controller for fixedwing
DevDocs Autotune - fixedwing.md
DevDocs INAV PID Controller.md
DevDocs INAV_Wing_Tuning_Masterclass.pdf
DevDocs PID tuning.md
DevDocs Profiles.md

GPS

GPS and Compass setup
GPS Failsafe and Glitch Protection

OSD and VTx

DevDocs Betaflight 4.3 compatible OSD.md
OSD custom messages
OSD Hud and ESP32 radars
DevDocs OSD.md
DevDocs VTx.md

LED Strip

DevDocs LedStrip.md

ADVANCED

Advanced Tuning

Fixed Wing Autolaunch
DevDocs INAV_Autolaunch.pdf

Programming

DevDocs Programming Framework.md

Adjustments

DevDocs Inflight Adjustments.md

Mission Control

iNavFlight Missions
DevDocs Safehomes.md

Tethered Logging

Log when FC is connected via USB

Blackbox

DevDocs Blackbox.md
INAV blackbox variables
DevDocs USB_Mass_Storage_(MSC)_mode.md

CLI

iNav CLI variables
DevDocs Cli.md
DevDocs Settings.md

VTOL

DevDocs MixerProfile.md
DevDocs VTOL.md

TROUBLESHOOTING

"Something" is disabled Reasons
Blinkenlights
Pixel OSD FAQs
TROUBLESHOOTING
Why do I have limited servo throw in my airplane

ADTL TOPICS, FEATURES, DEV INFO

AAT Automatic Antenna Tracker
Building custom firmware
Default values for different type of aircrafts
Features safe to add and remove to fit your needs.
Developer info
INAV MSP frames changelog
INAV Remote Management, Control and Telemetry
Lightweight Telemetry (LTM)
Making a new Virtualbox to make your own INAV
MSP Navigation Messages
MSP V2
OrangeRX LRS RX and OMNIBUS F4
Rate Dynamics
Target and Sensor support
UAV Interconnect Bus
Ublox 3.01 firmware and Galileo
DevDocs 1wire.md
DevDocs ADSB.md
DevDocs Battery.md
DevDocs Buzzer.md
DevDocs Channel forwarding.md
DevDocs Display.md
DevDocs Fixed Wing Landing.md
DevDocs GPS_fix_estimation.md
DevDocs LED pin PWM.md
DevDocs Lights.md
DevDocs OSD Joystick.md
DevDocs Servo Gimbal.md
DevDocs Temperature sensors.md

OLD LEGACY INFO

Supported boards
DevDocs Boards.md
Legacy Mixers
Legacy target ChebuzzF3
Legacy target Colibri RACE
Legacy target Motolab
Legacy target Omnibus F3
Legacy target Paris Air Hero 32
Legacy target Paris Air Hero 32 F3
Legacy target Sparky
Legacy target SPRacingF3
Legacy target SPRacingF3EVO
Legacy target SPRacingF3EVO_1SS
DevDocs Configuration.md
Request form new PRESET
DevDocs Introduction.md
Welcome to INAV, useful links and products
iNav Telemetry
DevDocs Rangefinder.md
DevDocs Rssi.md
DevDocs Runcam device.md
DevDocs Serial.md
DevDocs Telemetry.md
DevDocs Rx.md
DevDocs Spektrum bind.md

Clone this wiki locally