Paparazzi UAS  v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
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

◆ AGL_DIST_FILTER

#define AGL_DIST_FILTER   0.1f

Definition at line 49 of file agl_dist.c.

◆ AGL_DIST_ID

#define AGL_DIST_ID   ABI_BROADCAST

default sonar

Definition at line 40 of file agl_dist.c.

◆ AGL_DIST_MAX_RANGE

#define AGL_DIST_MAX_RANGE   5.0f

Definition at line 43 of file agl_dist.c.

◆ AGL_DIST_MIN_RANGE

#define AGL_DIST_MIN_RANGE   0.001f

Definition at line 46 of file agl_dist.c.

Function Documentation

◆ agl_cb()

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:

◆ agl_dist_init()

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_ev, agl_measurement_time, and get_sys_time_float().

+ Here is the call graph for this function:

Variable Documentation

◆ agl_dist_valid

float agl_dist_valid

Definition at line 33 of file agl_dist.c.

Referenced by agl_cb(), and agl_dist_init().

◆ agl_dist_value

float agl_dist_value

Definition at line 34 of file agl_dist.c.

Referenced by agl_cb(), and agl_dist_init().

◆ agl_dist_value_filtered

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().

◆ agl_ev

abi_event agl_ev

Definition at line 52 of file agl_dist.c.

Referenced by agl_dist_init().

◆ agl_measurement_time

float agl_measurement_time

Definition at line 36 of file agl_dist.c.

Referenced by agl_cb(), and agl_dist_init().