Page 1 of 1

Standard commander.py library with mellinger controller

Posted: Wed Nov 06, 2019 8:23 am
by giandoman
Hello everyone,
i was wondering if it possible to exploit the mellinger controller directly with the methods defined in the commander.py class defined here https://github.com/bitcraze/crazyflie-l ... mmander.py

Like in the position hl commander library where it is possible to switch the controller. https://github.com/bitcraze/crazyflie-l ... mmander.py

Thanks
Gianni

Re: Standard commander.py library with mellinger controller

Posted: Wed Dec 04, 2019 10:53 am
by kristoffer
Sure, you switch to the Mellinger controller by setting the stabilizer.controller parameter to 2

Code: Select all

cf.param.set_value('stabilizer.controller', '2')
You can also check it out in the PositionHlCommander https://github.com/bitcraze/crazyflie-l ... #L286-L288