39 #define POS_SENSORS 0x007
40 #define HORIZ_POS_SENSORS 0x003
41 #define VERT_POS_SENSORS 0x004
42 #define HORIZ_VEL_SENSORS 0x018
43 #define VERT_VEL_SENSORS 0x020
44 #define MAG_SENSORS 0x1C0
45 #define BARO_SENSOR 0x200
47 #define FULL_SENSORS 0x3FF
61 void INSStatePrediction(
const float gyro_data[3],
const float accel_data[3],
float dT);
67 void INSCorrection(
const float mag_data[3],
const float Pos[3],
const float Vel[3],
float BaroAlt, uint16_t SensorsUsed);
void INSGetState(float *pos, float *vel, float *attitude, float *gyro_bias, float *accel_bias)
Get the current state estimate.
void INSSetAccelBias(const float gyro_bias[3])
void INSGetVariance(float *p)
void INSSetMagVar(const float scaled_mag_var[3])
void INSSetPosVelVar(float PosVar, float VelVar, float VertPosVar)
void INSSetGyroBias(const float gyro_bias[3])
static float accel_bias[3]
void INSStatePrediction(const float gyro_data[3], const float accel_data[3], float dT)
Compute an update of the state estimate.
void INSSetMagNorth(const float B[3])
void INSSetBaroVar(float baro_var)
void INSSetState(const float pos[3], const float vel[3], const float q[4], const float gyro_bias[3], const float accel_bias[3])
void INSGPSInit()
Reset the internal state variables and variances.
void INSCorrection(const float mag_data[3], const float Pos[3], const float Vel[3], float BaroAlt, uint16_t SensorsUsed)
Correct the state and covariance estimate based on the sensors that were updated. ...
void INSSetArmed(bool armed)
Set the current flight state.
void INSResetP(const float *PDiag)
void INSCovariancePrediction(float dT)
Compute an update of the state covariance.
uint16_t ins_get_num_states()
void INSSetGyroVar(const float gyro_var[3])
void INSSetAccelVar(const float accel_var[3])
void INSPosVelReset(const float pos[3], const float vel[3])