Page 1 of 1

initial state

Posted: Wed Apr 21, 2021 4:56 pm
by yuhsiang
Hi,

When I connect to the Crazyflie2.1, the initial state x is not zero!
I have tried to restart the Crazyflie and connect to the pc client. However, the initial state estimation of x is not zero every time.
I also checked the parameter, it shows 1.5 in kalman.initial x.
The firmware of the Crazyflie is up to date 2021.03. While updating the Crazyflie firmware, I had the flow deck attached.

Could you please help me with this issue? Is there anything wrong with the estimator? Or is there an issue with the new firmware. I don’t have this issue before updating the Crazyflie firmware. But I don’t know what is the older firmware I used before.

Thank you

Re: initial state

Posted: Wed Apr 21, 2021 4:58 pm
by yuhsiang
Also, the parameter of the stabilizer.estimator is 2.
I have attached a flow deck on the Crazyflie.

Re: initial state

Posted: Wed Apr 21, 2021 9:20 pm
by yuhsiang
May I ask why the initial x is set to be 1.5 here?

https://github.com/bitcraze/crazyflie-f ... ore.c#L140

Re: initial state

Posted: Thu Apr 22, 2021 6:46 am
by kristoffer
Hi!

It seems as the number was changed accidentally in a pull request. It has now been fixed in https://github.com/bitcraze/crazyflie-f ... issues/760

Good catch!

Re: initial state

Posted: Thu Apr 22, 2021 10:42 am
by yuhsiang
Hi,

Thank you.
When will this change be available?

Sincerely,

Yu-Hsiang

Re: initial state

Posted: Thu Apr 22, 2021 11:13 am
by arnaud
It is now in the git repos so it is available if you compile and flash the firmware from source. It will be part of the next release but we do not know when that will be yet.

You can also set the initial ekf position with the parameters and reset the EKF using parameter as well to get the current version to start at (0,0,0)