Hi,
Kiva wrote:
How is calculated the stabilizater log in startup ?
In Crazyflie we assume the sensor are mounted flat on the board. At startup there is a measurement of the gyroscope values to calibrate and correct the gyroscope drift. Then the roll/pitch estimates are initialized using the accelerometer and a complementary filter uses both accelerometer and gyroscope to keep track of roll/pich. Considering that we are not zeroing the orientation but assuming the sensor are flat, your measurements are very good!
Kiva wrote:
Why the position (0, 0, 0) doesn't stabililze the drone ?
In theory keeping the platform flat should not generate any side-ways acceleration and keep the platform stable in x/y. In reality though nothing is perfect, if one motor is slightly misaligned or the airflow is a bit disturbed you will get motion. To stay stable in space the Crazyflie will need other sensors that indicates how the platform is moving in relation with the room (like the LPS, camera, motion sensors, ....).
Kiva wrote:
Is it exists a relation between the acc sensor and the calculation of the stabilizater log ?
Yes, unless you are running the Kalman filter, gyroscope and accelerometer are fused to estimate roll/pitch. The rational is that the accelerometer will show the gravity if integrated for a long period of time, this is used to calibrate the gyroscope.
Yaw is only measured using the gyroscope, since it is collinear with gravity, and so is subject to drift over time.