36 #error "PRIMARY_AHRS not set!"
42 PRINT_CONFIG_VAR(SECONDARY_AHRS)
45 #define __RegisterAhrs(_x) _x ## _register()
46 #define _RegisterAhrs(_x) __RegisterAhrs(_x)
47 #define RegisterAhrs(_x) _RegisterAhrs(_x)
51 #define AHRS_NB_IMPL 2
106 ahrs_output_idx =
idx;
Interface to align the AHRS via low-passed measurements at startup.
Dispatcher to register actual AHRS implementations.
bool(* AhrsEnableOutput)(bool)
void ahrs_init(void)
AHRS initialization.
struct AhrsImpl ahrs_impls[AHRS_NB_IMPL]
#define AHRS_NB_IMPL
maximum number of AHRS implementations that can register
int ahrs_switch(uint8_t idx)
Switch to the output of another AHRS impl.
void ahrs_register_impl(AhrsEnableOutput enable)
Register an AHRS implementation.
references a registered AHRS implementation
void ahrs_aligner_init(void)