dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
GeoFence Module

Files

file  geofence.c
 Check the UAV is within the geofence boundaries.
 

Macros

#define SAMPLE_PERIOD_MS   250
 

Functions

static void settingsUpdated (const UAVObjEvent *ev, void *ctx, void *obj, int len)
 
static void checkPosition (const UAVObjEvent *ev, void *ctx, void *obj, int len)
 
int32_t GeofenceInitialize (void)
 
int32_t GeofenceStart (void)
 
 MODULE_INITCALL (GeofenceInitialize, GeofenceStart)
 

Variables

static GeoFenceSettingsData * geofenceSettings
 
volatile bool settingsUpdated = true
 

Detailed Description

Macro Definition Documentation

#define SAMPLE_PERIOD_MS   250

Definition at line 45 of file geofence.c.

Function Documentation

static void checkPosition ( const UAVObjEvent ev,
void *  ctx,
void *  obj,
int  len 
)
static

Periodic callback that processes changes in position and sets the alarm.

Definition at line 126 of file geofence.c.

int32_t GeofenceInitialize ( void  )

Initialise the module, called on startup

Returns
0 on success or -1 if initialisation failed

Definition at line 64 of file geofence.c.

int32_t GeofenceStart ( void  )

Definition at line 103 of file geofence.c.

MODULE_INITCALL ( GeofenceInitialize  ,
GeofenceStart   
)
static void settingsUpdated ( const UAVObjEvent ev,
void *  ctx,
void *  obj,
int  len 
)
static

Update the settings

Definition at line 150 of file geofence.c.

Variable Documentation

GeoFenceSettingsData* geofenceSettings
static

Definition at line 58 of file geofence.c.

static void settingsUpdated = true

Update the settings

Definition at line 94 of file airspeed.c.