Aircraft offsite landing function
method setBeyondLandParams
void setBeyondLandParams(SitePosition p, CallbackWithNoParam cb);
Description: Sets coordinates for offsite landing.
Input parameter:
- p*: Position for offsite landing
- cb*: Callback of the setting result
Output parameter: None
**Related parameter: p, CallbackWithOneParam
class SitePosition
public class SitePosition {
/**
* 1: Coordinates for the offsite landing point
*
* 2: Coordinates of the alternate landing point
*/
public int position_type = 2;
/**
* Latitude
*/
public float phone_lat;
/**
* Longitude
*/
public float phone_lon;
/**
* Altitude
*/
public float phone_alt;
}
method switchBeyondLand
void switchBeyondLand(boolean open,CallbackWithNoParam cb);
Description: Enables/Disables offsite landing.
Input parameter:
- open*: true: enable; false: disable
- cb*: Callback of the calling result
Output parameter: None
**Related parameter: open, CallbackWithOneParam