31 #error "PRIMARY_AHRS not set!"
37 PRINT_CONFIG_VAR(SECONDARY_AHRS)
40 #define __RegisterAhrs(_x) _x ## _register()
41 #define _RegisterAhrs(_x) __RegisterAhrs(_x)
42 #define RegisterAhrs(_x) _RegisterAhrs(_x)
46 #define AHRS_NB_IMPL 2
97 ahrs_output_idx = idx;
Dispatcher to register actual AHRS implementations.
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
bool_t(* AhrsEnableOutput)(bool_t)