34 #ifdef GEOFENCE_DATALINK_LOST_TIME
44 #else // dont trigger this exception
52 #if defined GEOFENCE_MAX_ALTITUDE || defined GEOFENCE_MAX_HEIGHT// user defined geofence_max_altitude (or AGL) in the flight plan
55 bool above_max_alt =
false;
56 #ifdef GEOFENCE_MAX_ALTITUDE
57 above_max_alt = above_max_alt || (
GetPosAlt() > GEOFENCE_MAX_ALTITUDE);
60 #ifdef GEOFENCE_MAX_HEIGHT
65 #else // we dont have max altitude specified, so the condition is never true