33 #ifndef AHRS_VECTORNAV_OUTPUT_ENABLED
34 #define AHRS_VECTORNAV_OUTPUT_ENABLED TRUE
42 #if PERIODIC_TELEMETRY
45 static void send_euler(
struct transport_tx *trans,
struct link_device *
dev)
47 pprz_msg_send_AHRS_EULER(trans, dev, AC_ID,
58 ahrs_vectornav_output_enabled = enable;
72 #if PERIODIC_TELEMETRY
Dispatcher to register actual AHRS implementations.
void ahrs_vectornav_init(void)
Initialize Vectornav struct.
struct VNData vn_data
Data struct.
static bool ahrs_vectornav_output_enabled
if TRUE with push the estimation results to the state interface
Periodic telemetry system header (includes downlink utility and generated code).
Main include for ABI (AirBorneInterface).
static void send_euler(struct transport_tx *trans, struct link_device *dev)
struct FloatEulers attitude
Attitude, float, [rad], yaw, pitch, roll.
void ahrs_register_impl(AhrsEnableOutput enable)
Register an AHRS implementation.
Vectornav VN-200 as AHRS.
#define DefaultPeriodic
Set default periodic telemetry.
static const struct usb_device_descriptor dev
static bool ahrs_vectornav_enable_output(bool enable)
API to get/set the generic vehicle states.
bool ahrs_vectornav_is_enabled(void)
#define AHRS_COMP_ID_VECTORNAV
#define AHRS_VECTORNAV_OUTPUT_ENABLED
static uint8_t ahrs_vectornav_id
struct AhrsVectornav ahrs_vn
void ahrs_vectornav_register(void)
int8_t register_periodic_telemetry(struct periodic_telemetry *_pt, uint8_t _id, telemetry_cb _cb)
Register a telemetry callback function.