11 accel->
min = NPS_ACCEL_MIN;
12 accel->
max = NPS_ACCEL_MAX;
14 NPS_ACCEL_SIGN_X * NPS_ACCEL_SENSITIVITY_XX,
15 NPS_ACCEL_SIGN_Y * NPS_ACCEL_SENSITIVITY_YY,
16 NPS_ACCEL_SIGN_Z * NPS_ACCEL_SENSITIVITY_ZZ);
18 NPS_ACCEL_NEUTRAL_X, NPS_ACCEL_NEUTRAL_Y, NPS_ACCEL_NEUTRAL_Z);
20 NPS_ACCEL_NOISE_STD_DEV_X, NPS_ACCEL_NOISE_STD_DEV_Y, NPS_ACCEL_NOISE_STD_DEV_Z);
22 NPS_ACCEL_BIAS_X, NPS_ACCEL_BIAS_Y, NPS_ACCEL_BIAS_Z);
29 if (time < accel->next_update) {
#define DOUBLE_VECT3_ROUND(_v)
#define FLOAT_VECT3_ZERO(_v)
#define FLOAT_MAT33_DIAG(_m, _d00, _d11, _d22)
#define VECT3_BOUND_CUBE(_v, _min, _max)
#define VECT3_EW_MUL(_vo, _va, _vb)
#define MAT33_VECT3_MUL(_vout, _mat, _vin)
#define VECT3_ASSIGN(_a, _x, _y, _z)
#define VECT3_COPY(_a, _b)
#define VECT3_ADD(_a, _b)
struct DoubleVect3 body_accel
acceleration in body frame as measured by an accelerometer (incl.
struct NpsFdm fdm
Holds all necessary NPS FDM state information.
void double_vect3_add_gaussian_noise(struct DoubleVect3 *vect, struct DoubleVect3 *std_dev)
void nps_sensor_accel_init(struct NpsSensorAccel *accel, double time)
void nps_sensor_accel_run_step(struct NpsSensorAccel *accel, double time, struct DoubleRMat *body_to_imu)
struct DoubleVect3 noise_std_dev
struct DoubleVect3 neutral
struct DoubleMat33 sensitivity
Paparazzi fixed point algebra.