-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Improvements crazyflie #6107
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
Improvements crazyflie #6107
Conversation
|
ahh a failed test. I have indeed reused the fast helix of the dji example and I would have gotten away with it too if it weren't for you meddling checks! 👿 Just kidding! Sorry couldn't help myself with the scoobydoo reference Anyway, I can make another one, no problem. I was just a bit lazy! 😄 |
|
You don't need to make another one, simply reusing the one of the dji is fine, but you should not copy the file. |
Co-authored-by: Olivier Michel <[email protected]>
Or perhaps it can be a standard texture of some kind? Anyway, just a thought! |
Yes, we could place a default/generic helix texture somewhere, like in |
|
I've also moved the fast helix proto to a more generic location now. Let's hope the CI now passes |
|
I'll fix the pep8 issues soon |
|
Alright, I've tested out if the changes didn't affect the simulation and the demo. I've marked it ready for review |
omichel
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you. It looks pretty good.
I suggest a few minor edits to make the code more readable and compliant with our standards.
projects/robots/bitcraze/crazyflie/controllers/crazyflie/crazyflie.c
Outdated
Show resolved
Hide resolved
projects/robots/bitcraze/crazyflie/controllers/crazyflie/pid_controller.c
Outdated
Show resolved
Hide resolved
projects/robots/bitcraze/crazyflie/controllers/crazyflie/pid_controller.c
Outdated
Show resolved
Hide resolved
projects/robots/bitcraze/crazyflie/controllers/crazyflie/pid_controller.c
Outdated
Show resolved
Hide resolved
projects/robots/bitcraze/crazyflie/controllers/crazyflie/pid_controller.c
Outdated
Show resolved
Hide resolved
projects/robots/bitcraze/crazyflie/controllers/crazyflie_py_wallfollowing/pid_controller.py
Outdated
Show resolved
Hide resolved
projects/robots/bitcraze/crazyflie/controllers/crazyflie_py_wallfollowing/pid_controller.py
Outdated
Show resolved
Hide resolved
projects/robots/bitcraze/crazyflie/controllers/crazyflie_py_wallfollowing/pid_controller.py
Outdated
Show resolved
Hide resolved
projects/robots/bitcraze/crazyflie/controllers/crazyflie_py_wallfollowing/wall_following.py
Outdated
Show resolved
Hide resolved
projects/robots/bitcraze/crazyflie/controllers/crazyflie_py_wallfollowing/wall_following.py
Outdated
Show resolved
Hide resolved
|
In general we try to avoid abbreviations as much as possible to make the code easier to maintain. |
|
@omichel I've addressed the changes, and I've also updated the wall following file as I was right in the middle of improving the code quality of the wallfollowing of the 'real' crazyflie python library itself. This also makes the state machine a lot easier the follow. You can see that more clearly in this commit: dd26625 |
|
ah wait I've missed a couple of comments in the code. Let me address those first |
|
alright, now all comments are addressed and resolved. |
|
So, the tests have passed, and I've just merged the latest. If that all goes well, then perhaps ready to merge? |
omichel
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you.,
We are almost there.
projects/robots/bitcraze/crazyflie/controllers/crazyflie/pid_controller.c
Outdated
Show resolved
Hide resolved
projects/robots/bitcraze/crazyflie/controllers/crazyflie/pid_controller.c
Outdated
Show resolved
Hide resolved
projects/robots/bitcraze/crazyflie/controllers/crazyflie/pid_controller.c
Outdated
Show resolved
Hide resolved
...bots/bitcraze/crazyflie/controllers/crazyflie_py_wallfollowing/crazyflie_py_wallfollowing.py
Outdated
Show resolved
Hide resolved
…llfollowing/crazyflie_py_wallfollowing.py
|
thanks for fixing the typos! I'll merge it after the tests has passed |
Description
This is an improvement of the Bitcraze Crazyflie robot. The model has now a fasthelix, altitude control to keyboard controller. Also there is an python controller which features an autonomous mode, which is able to do wall following in a more complicated environment (the apartment) which is added as a second world.
Related Issues
This pull-request fixes issue #4711 partly (point 1-3 and 5) but the other issues are not mandatory and mostly improvements, so perhaps we can leave it at that and make the issue once we are ready to make a new PR
Tasks
These are the things done in this request
Documentation
No changes to documentation necessary.
Screenshots

This is a screenshot of the more complex behavior