18#ifndef CALIB_MAX_SAMPLES
19#define CALIB_MAX_SAMPLES 256
40int calib_add(
calib_t *c,
const float acc[3],
const float gyro[3],
const float mag[3],
41 float gyro_still_thr);
void calib_reset(calib_t *c)
int calib_finish(const calib_t *c, float sigma_min, calib_result_t *out)
float direction_noise_std(const float(*v)[3], uint32_t n)
int calib_add(calib_t *c, const float acc[3], const float gyro[3], const float mag[3], float gyro_still_thr)
Returns 0 if the sample is compatible with "still", -1 if moving.
#define CALIB_MAX_SAMPLES
uint32_t calib_count(const calib_t *c)
Attitude IEKF on SO(3), C port of iekfAttitude.m.
float sigma_acc_raw
measured values, for diagnostics
float sigma_acc
already lower-bounded by sigma_min
Initial conditions, typically from calib_finish()