36 #ifdef GEOFENCE_DATALINK_LOST_TIME
45 #else // dont trigger this exception
53 #if defined GEOFENCE_MAX_ALTITUDE || defined GEOFENCE_MAX_HEIGHT// user defined geofence_max_altitude (or AGL) in the flight plan
56 bool above_max_alt =
false;
57 #ifdef GEOFENCE_MAX_ALTITUDE
58 above_max_alt = above_max_alt || (
GetPosAlt() > GEOFENCE_MAX_ALTITUDE);
61 #ifdef GEOFENCE_MAX_HEIGHT
66 #else // we dont have max altitude specified, so the condition is never true
#define GetAltRef()
Get current altitude reference for local coordinates.
static bool higher_than_max_altitude(void)
static bool datalink_lost(void)
#define GetPosAlt()
Get current altitude above MSL.