Paparazzi UAS  v5.15_devel-88-gb3ad7fe
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
agl_dist.c File Reference
#include "modules/sonar/agl_dist.h"
#include "subsystems/abi.h"
#include "generated/airframe.h"
+ Include dependency graph for agl_dist.c:

Go to the source code of this file.

Macros

#define AGL_DIST_ID   ABI_BROADCAST
 default sonar More...
 
#define AGL_DIST_MAX_RANGE   5.0f
 
#define AGL_DIST_MIN_RANGE   0.001f
 
#define AGL_DIST_FILTER   0.1f
 

Functions

static void agl_cb (uint8_t sender_id, uint32_t stamp, float distance)
 
void agl_dist_init (void)
 

Variables

float agl_dist_valid
 
float agl_dist_value
 
float agl_dist_value_filtered
 
float agl_measurement_time
 
abi_event agl_ev
 

Macro Definition Documentation

#define AGL_DIST_FILTER   0.1f

Definition at line 49 of file agl_dist.c.

Referenced by agl_cb().

#define AGL_DIST_ID   ABI_BROADCAST

default sonar

Definition at line 40 of file agl_dist.c.

Referenced by agl_dist_init().

#define AGL_DIST_MAX_RANGE   5.0f

Definition at line 43 of file agl_dist.c.

#define AGL_DIST_MIN_RANGE   0.001f

Definition at line 46 of file agl_dist.c.

Referenced by agl_cb().

Function Documentation

static void agl_cb ( uint8_t  sender_id,
uint32_t  stamp,
float  distance 
)
static

Definition at line 67 of file agl_dist.c.

References AGL_DIST_FILTER, AGL_DIST_MIN_RANGE, agl_dist_valid, agl_dist_value, agl_dist_value_filtered, agl_measurement_time, and get_sys_time_float().

Referenced by agl_dist_init().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void agl_dist_init ( void  )

Definition at line 56 of file agl_dist.c.

References agl_cb(), AGL_DIST_ID, agl_dist_valid, agl_dist_value, agl_dist_value_filtered, agl_measurement_time, and get_sys_time_float().

+ Here is the call graph for this function:

Variable Documentation

float agl_dist_valid

Definition at line 33 of file agl_dist.c.

Referenced by agl_cb(), and agl_dist_init().

float agl_dist_value

Definition at line 34 of file agl_dist.c.

Referenced by agl_cb(), and agl_dist_init().

float agl_dist_value_filtered

Definition at line 35 of file agl_dist.c.

Referenced by agl_cb(), agl_dist_init(), calc_edgeflow_tot(), and calc_fast9_lukas_kanade().

abi_event agl_ev

Definition at line 52 of file agl_dist.c.

float agl_measurement_time

Definition at line 36 of file agl_dist.c.

Referenced by agl_cb(), and agl_dist_init().