Hello,
Could anybody tell me if any controller in the CF use accelerometer values? If yes, which one is that and how can I select that in the CF system?
Thanks.
Query regarding controller implementation with accelerometer values
-
- Member
- Posts: 36
- Joined: Tue Mar 17, 2020 7:01 pm
Re: Query regarding controller implementation with accelerometer values
Hi!
The new INDI position controller seem to use the acceleration directly from the sensors (https://github.com/bitcraze/crazyflie-f ... ndi.c#L155). You can set the controller by setting the following parameters in a python script:
if outerLoopActive is set to 0, the position control loop is handled by a PID controller instead.
The INDI controller is very new and not a lot of people have used it before. If you see any problems, please comment in this github issue: https://github.com/bitcraze/crazyflie-f ... issues/573, so that we can take that into account with future improvements.
The new INDI position controller seem to use the acceleration directly from the sensors (https://github.com/bitcraze/crazyflie-f ... ndi.c#L155). You can set the controller by setting the following parameters in a python script:
Code: Select all
cf.param.set_value('stabilizer.controller', '3')
cf.param.set_value('ctrlINDI.outerLoopActive', '1')
The INDI controller is very new and not a lot of people have used it before. If you see any problems, please comment in this github issue: https://github.com/bitcraze/crazyflie-f ... issues/573, so that we can take that into account with future improvements.