-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Migrating default PID gains and filter settings to platform defaults and Kconfig #1122
Migrating default PID gains and filter settings to platform defaults and Kconfig #1122
Conversation
Not sure what is going wrong with the build checks, all platforms build fine locally... Any ideas? |
After a very quick look (that is it might be completely wrong) I think the problem is that the unit tests can not include the platform_defaults.h file. You probably have to add it to the unit test config You can run the unit tests with I will have mote time to look at the PRs next week |
Same here:) Please check what is causing the CI to fail |
Thanks for the pointer @krichardsson, will check it out! |
So running The unit test config seems to already include the folder where platform_defaults.h is included, so it must be something else 🤔 crazyflie-firmware/tools/test/gcc.yml Line 56 in b370e20
|
The problem is not the unit tests, but building the python bindings. You can run them with I think you need to add |
The call to |
The build errors are fixed, thanks for suggesting the correct solution :)
I have removed the feedforward gain (where this is needed) from the current pull request as it can be treated separately. How would you feel about updating the entire PID structure, such that it includes an extra feedforward gain, and everything is handled by the crazyflie-firmware/src/modules/src/position_controller_pid.c Lines 242 to 243 in b370e20
|
The last 2 commits include the feedforward gain in the PID structure, how do you feel about this solution? |
33942e0
to
d14454e
Compare
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.
I think it looks good!
The feed forward addition to the the PIDs is a nice feature
Ok, great to hear! |
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.
Nice!
Merged. Thanks! |
Until now, PID values have been hardcoded, and could only be changed via permanent_parameters, or in a custom fork.
This PR enables using platform-specific PID gain values and filter settings.