Where is the code related to change controller in the firmware? #667
Answered
by
krichardsson
cc299792458
asked this question in
Q&A
-
Hi, I'd love to study the code of changing the controller dynamicly in the firmware. I found something in the stabilizer.c, L260-L264, it seems like the controller is modified by the variable 'controllerType'. But I failed to find the code to change the 'controllerType'. I wonder where is it? I also know there is a api in crazyflie-lib-python to change the controller. Thank you very much! |
Beta Was this translation helpful? Give feedback.
Answered by
krichardsson
Apr 19, 2023
Replies: 1 comment 1 reply
-
Hi. you can change controller with the stabilizer.controller parameter Implemented in the firmware here |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
cc299792458
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi.
you can change controller with the stabilizer.controller parameter
Implemented in the firmware here
Example of setting the controller from the python lib can be found in autonomous_sequence_high_level.py for instance.