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)
74 agl_measurement_time = now;
Event structure to store callbacks in a linked list.
#define AGL_DIST_ID
default sonar
Main include for ABI (AirBorneInterface).
static float get_sys_time_float(void)
Get the time in seconds since startup.
Bind to agl ABI message and provide a filtered value to be used in flight plans.
static void agl_cb(uint8_t sender_id, uint32_t stamp, float distance)
float agl_measurement_time
float agl_dist_value_filtered
#define AGL_DIST_MIN_RANGE