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
Handling of messages coming from ground and other A/Cs.
#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.