31#include "generated/airframe.h"
41#define AGL_DIST_ID ABI_BROADCAST
43#ifndef AGL_DIST_MAX_RANGE
44#define AGL_DIST_MAX_RANGE 5.0f
46#ifndef AGL_DIST_MIN_RANGE
47#define AGL_DIST_MIN_RANGE 0.001f
49#ifndef AGL_DIST_FILTER
50#define AGL_DIST_FILTER 0.1f
53#ifndef AGL_DIST_TIMEOUT
54#define AGL_DIST_TIMEOUT 1.f
61#if PREFLIGHT_CHECKS && defined(AGL_DIST_MIN_DISTANCE_CHECK) && defined(AGL_DIST_MAX_DISTANCE_CHECK)
86#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
void agl_dist_timeout(void)
#define AGL_DIST_MIN_RANGE
void agl_dist_report(void)
Bind to agl ABI message and provide a filtered value to be used in flight plans.
Common code for AP and FBW telemetry.
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.
uint16_t f
Camera baseline, in meters (i.e. horizontal distance between the two cameras of the stereo setup)