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
56#if PREFLIGHT_CHECKS && defined(AGL_DIST_MIN_DISTANCE_CHECK) && defined(AGL_DIST_MAX_DISTANCE_CHECK)
81#if PREFLIGHT_CHECKS && defined(AGL_DIST_MIN_DISTANCE_CHECK) && defined(AGL_DIST_MAX_DISTANCE_CHECK)
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.
void preflight_error(struct preflight_result_t *result, const char *fmt,...)
Register a preflight error used inside the preflight checking functions.
void preflight_success(struct preflight_result_t *result, const char *fmt,...)
Register a preflight success used inside the preflight checking functions.
void preflight_check_register(struct preflight_check_t *check, preflight_check_f func)
Register a preflight check and add it to the linked list.
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.