14 printf(
"setup_start called\n");
19 printf(
"setup_complete called\n");
23 #define degrees(x) (x * 180.0 / M_PI) 27 static uint64_t last_print_us;
28 if (state->
time_us - last_print_us < 1000000UL) {
33 printf(
"AHRS_update (%.1f,%.1f,%.1f)\n",
41 static uint64_t last_print_us;
42 if (state->
time_us - last_print_us < 1000000UL) {
47 printf(
"gyro (%.1f,%.1f,%.1f)\n",
55 static uint64_t last_print_us;
57 static uint32_t fsync_count;
62 if (state->
time_us - last_print_us < 1000000UL) {
67 printf(
"accel (%.1f,%.1f,%.1f) %lu %lu\n",
71 (
unsigned long)counter,
72 (
unsigned long)fsync_count);
int printf(const char *fmt,...)
void ap_hook_AHRS_update(const struct AHRS_state *state)
void ap_hook_setup_complete(uint64_t time_us)
void ap_hook_accel_sample(const struct accel_sample *state)
void ap_hook_gyro_sample(const struct gyro_sample *state)
void ap_hook_setup_start(uint64_t time_us)