-
Notifications
You must be signed in to change notification settings - Fork 13.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crazyflie 2.1 EKF2 with flowboard and position mode #17082
Comments
I'll work on getting @bresch some hardware |
@bresch I tried to change the |
@TheLegendaryJedi Yes, because EKF2 waits for mag data to complete the initialization even if it is not used |
Is there a way to debug it? Because it does not give me anything on the console. |
You could add some printfs indicators in the code to know where it stops. |
Hi @bresch, I made some prints like you suggested and figured that in Basically the quality is always 0, and the dt is always 0 too. Any suggestion on what might be the problem?
|
Thanks for the log, I'll have a look. I also received a CrazyFlie 2.1 yesterday so I should be able to reproduce your issue soon. |
Nice! It's preatty awesome. Just one update. During dev call Matthias and Dagar told I needed to enable pmw3901 parameter and I did. Right now I've manually started the pmw3901:
EKF2 still don't have a local or glabal postion
But I still can't change to position mode or hold mode. We have an altitude estimation (checked it in QGC MAVLink inspector). Flight log: Some other things that are bothering me and probably you can help:
|
Current status: I'm able to get a meaningful local position estimate when doing handheld tests (in the picture below, I'm moving the drone roughly in a square shape and I finish by a circle). I'll make a flight test when possible
|
Nice! Thanks! Can you send me your parameter file? |
@TheLegendaryJedi Basically I had to:
Unfortunately it seems that the LiPo died so I cannot do a flight test |
Thanks a lot! I'll do it. Probably only Tuesday next week. |
Hi @bresch, just tested it with 1.12 beta 4 and your recommendations. The position estimate is very slow. Everything is happening with a delay, for example, when you are in position mode all your joystick commands happen with a delay (roll, pitch, yaw, throttle). If I try to auto takeoff and hold (0.5m) it goes up like 4 meters and won't stop, I have to kill switch it. Could it be that the EKF2 with position estimate is too much for STM32F405? My flight log: |
In your log the drone is in position mode and the throttle stick is at 58% which is just enough to takeoff and then the drone lands again due to the error in velocity estimate. I don't see the auto takeoff. |
Just tried your recomendations and takeoff still drifts a lot: Takeoff with crash: Regarding position mode it's the same, a lot of lag from sending the commands and the actual response from the drone: Is there a way to check the altitude that the drone is trying to achieve and why is it going up and not stopping when it gets to that position? Thanks! |
@bresch @TheLegendaryJedi - if you still have CrazyFlie 2.1 hardware, I would appreciate testing the BMI088/I2C IMU (not necessarily in flight, just move it by hand). I believe the problems you had were in part due to its malfunction. That's for PR #23141 |
@slgrobotics Unfortunately my CrazyFlie doesn't connect to QGC anymore for some reason... |
@bresch - well, the BMI088/I2C thing seems marginal anyway, and maybe CrazyFlie shouldn't be officially supported (not my call of course). But my last comment here #23141 about SPI-connected devices may deserve consideration ( |
Like we talked about during dev call,
I'm using EK2 with
EKF2_AID_MASK
using only optical flow. I can fly it inmanual
andstabilized
with no problem. But right now I want to make use of the flow board. I wanted to takeoff and hold position. I can't change to position mode, it just don't give me any feedback.I' using these configurations (already the dafault on
master
):I can see that in QGC the distance sensor is working fine. But right now I don't know what to test or debug next to achieve takeoff and hold.
To Reproduce
Steps to reproduce the behavior:
Logs
local_position_estimator start
INFO [local_position_estimator] fuse gps: 1, flow: 0, vis_pos: 0, landing_target: 0, land: 1, pub_agl_z: 0
And after that the drone reboots!
Thanks
The text was updated successfully, but these errors were encountered: