paparazzi-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Paparazzi-devel] I donot understand the ahrs_mlkf_update_accel(struct F


From: sulijune
Subject: [Paparazzi-devel] I donot understand the ahrs_mlkf_update_accel(struct FloatVect3 *accel)
Date: Thu, 21 Jan 2016 18:33:42 -0700 (MST)

Hi,
In the 
sw/airborne/subsystems/ahrs/ahrs_float_mlkf.c
file:
128 void ahrs_mlkf_update_accel(struct FloatVect3 *accel)
129 {
130   struct FloatVect3 imu_g = *accel;
131   const float alpha = 0.92;
132   ahrs_mlkf.lp_accel = alpha * ahrs_mlkf.lp_accel +
133                        (1. - alpha) * (float_vect3_norm(&imu_g) - 9.81);
134   const struct FloatVect3 earth_g = {0.,  0., -9.81 };
135   const float dn = 250 * fabs(ahrs_mlkf.lp_accel);
136   struct FloatVect3 g_noise = {1. + dn, 1. + dn, 1. + dn};
137   update_state(&earth_g, &imu_g, &g_noise);
138   reset_state();
139 }
I can't understand the 135 and 136.
Why the accel multiply the '250' ?
Why the 'dn' + 1?
Who can explain for me?
Thanks!






--
View this message in context: 
http://lists.paparazziuav.org/I-donot-understand-the-ahrs-mlkf-update-accel-struct-FloatVect3-accel-tp17667.html
Sent from the paparazzi-devel mailing list archive at Nabble.com.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]