According to this video comparing litchi and autopilot, if you go to about 3 minute mark the author describes how when using autopilot, the barometer in the tracked device, at least iOS devices, is used to automatically have the Mavic go up and down in altitude as the device being tracked moves...