31 #include "generated/airframe.h"
38 #ifndef AGL_DIST_SONAR_ID
39 #define AGL_DIST_SONAR_ID ABI_BROADCAST
41 #ifndef AGL_DIST_SONAR_MAX_RANGE
42 #define AGL_DIST_SONAR_MAX_RANGE 5.0
44 #ifndef AGL_DIST_SONAR_MIN_RANGE
45 #define AGL_DIST_SONAR_MIN_RANGE 0.001
47 #ifndef AGL_DIST_SONAR_FILTER
48 #define AGL_DIST_SONAR_FILTER 5
Event structure to store callbacks in a linked list.
Main include for ABI (AirBorneInterface).
#define AGL_DIST_SONAR_MIN_RANGE
static void sonar_cb(uint8_t sender_id, float distance)
#define AGL_DIST_SONAR_FILTER
#define AGL_DIST_SONAR_ID
default sonar
Bind to sonar ABI message and provide a filtered value to be used in flight plans.
float agl_dist_value_filtered