31 #include "generated/airframe.h"
40 #define AGL_DIST_ID ABI_BROADCAST
42 #ifndef AGL_DIST_MAX_RANGE
43 #define AGL_DIST_MAX_RANGE 5.0f
45 #ifndef AGL_DIST_MIN_RANGE
46 #define AGL_DIST_MIN_RANGE 0.001f
48 #ifndef AGL_DIST_FILTER
49 #define AGL_DIST_FILTER 0.1f
67 static void agl_cb(
uint8_t __attribute__((unused)) sender_id,
uint32_t __attribute__((unused)) stamp,
float distance)
Main include for ABI (AirBorneInterface).
Event structure to store callbacks in a linked list.
float agl_measurement_time
float agl_dist_value_filtered
static void agl_cb(uint8_t sender_id, uint32_t stamp, float distance)
#define AGL_DIST_ID
default sonar
#define AGL_DIST_MIN_RANGE
Bind to agl ABI message and provide a filtered value to be used in flight plans.
static float get_sys_time_float(void)
Get the time in seconds since startup.
unsigned int uint32_t
Typedef defining 32 bit unsigned int type.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.