34 #ifdef GEOFENCE_DATALINK_LOST_TIME
52 #if defined GEOFENCE_MAX_ALTITUDE || defined GEOFENCE_MAX_HEIGHT
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
uint16_t datalink_time
time in seconds since last datalink message was received
Handling of messages coming from ground and other A/Cs.
#define GetPosAlt()
Get current altitude above MSL.
#define GetAltRef()
Get current altitude reference for local coordinates.
static bool higher_than_max_altitude(void)
static bool datalink_lost(void)