You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can confirm that there is rounding errors when calculating the rotation matrix R, I printed R[2][2] when it is > 1 and I get R[2][2] = 1.0. Which means that the value is really close to 1 but just over when compared to 1.
This should be fixable by making sure all element of R are within [-1, 1].
Fixed by removing the VL53 aperture angle compensation: the effect was very small (I cannot see any difference) and it removes the acos() that was causing the NaN.
When flying with the VL53 deck and the kalman filter, the EKF is crashing at random interval on a NaN assert:
It corresponds to this line:
crazyflie-firmware/src/modules/src/estimator_kalman.c
Line 789 in 72146a6
Further investigation seems to indicate that in at least one case
PHTd[STATE_X]
was NaN.Tested with the version 72146a6 and the config.mk:
The text was updated successfully, but these errors were encountered: