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
initial state
initial state
Last edited by yuhsiang on Wed Apr 21, 2021 6:29 pm, edited 4 times in total.
Re: initial state
Also, the parameter of the stabilizer.estimator is 2.
I have attached a flow deck on the Crazyflie.
I have attached a flow deck on the Crazyflie.
- Attachments
-
- 3.PNG (3.16 KiB) Viewed 1761 times
Re: initial state
May I ask why the initial x is set to be 1.5 here?
https://github.com/bitcraze/crazyflie-f ... ore.c#L140
https://github.com/bitcraze/crazyflie-f ... ore.c#L140
-
- Bitcraze
- Posts: 630
- Joined: Tue Jun 30, 2015 7:47 am
Re: initial state
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!
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
Hi,
Thank you.
When will this change be available?
Sincerely,
Yu-Hsiang
Thank you.
When will this change be available?
Sincerely,
Yu-Hsiang
Re: initial state
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)
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)