Plane Navigation and Altitude Control Overview

Altitude Control

Altitude control is managed by TECS (Total Energy Control System) for Speed and Height Tuning Guide using demanded altitude from the mode, in altitude controlled mode. Modes use the update_target_altitude to calculate demanded altitude for TECS which will calculate the altitude profile between waypoints(setup_glide_slope or maintain current altitude. Altitude target can be changed by MAVLink command (DO_CHANGE_ALT) or by stick control using update_fbwb_speed_height method.

Note

if you are actually moving away from the next waypoint, as usually the case if RTL climbing before turning toward home option is set, the prev_WP will have to be continuously reset to present position and the glide slope re-setup in order to continue to climb.