Page 1 of 1

Confusion among controller.cmd_roll, controller.roll, stabilizer.roll

Posted: Wed May 13, 2020 2:20 am
by imranmomtaz
Hello,
1. what are the difference between following quantities:
controller.cmd_roll, controller.roll, stabilizer.roll

2. What are the relation between controller.cmd_roll, and controller.roll. I can understand that the units of controller.roll, and stabilizer.roll are kind of similar. But, I can clearly understand that the units of controller.cmd_roll, and controller.roll are not same. Is their any relation between these two? And, what are their units?

Thanks.

Re: Confusion among controller.cmd_roll, controller.roll, stabilizer.roll

Posted: Wed May 13, 2020 8:42 am
by kimberly
You can find these log definitions in these files: https://github.com/bitcraze/crazyflie-f ... abilizer.c and https://github.com/bitcraze/crazyflie-f ... ller_pid.c

controller.cmd_roll = Roll command that comes from the attitutde rate controller that is send to the power distribution to the motors
controller.roll = Desired roll state
stabilizer.roll = state estimated roll

Stabilizer.roll and controller.roll should be in degrees. Cmd_roll is unit less (it is more about the ratio between the angles than the actual unit).

There is some recent added documentation about the controller structure right here that you can find under 'functional areas'. https://www.bitcraze.io/documentation/r ... re/master/

Re: Confusion among controller.cmd_roll, controller.roll, stabilizer.roll

Posted: Thu May 14, 2020 6:31 pm
by imranmomtaz
Thank you. I understand this now.