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