Hello,
I am doing my control research with CF. Based on Whoenig's code, I made some modification. But I don't know the exact 4 control inputs range. In Whoenig's code, he set pitch roll in (-15,15), yaw rate (-15,15), thrust (10000,60000). Does anyone can tell me what's the exact ranges?
What's the control input range of CF
-
- Member
- Posts: 52
- Joined: Fri Jul 28, 2017 9:07 pm
Re: What's the control input range of CF
Hi,
If it is similar to the master code (which is very likely), roll/pitch are in degree. Yaw is in degree per seconds and the thrust is from 0 to 65535 with 0 meaning 0% and 65535 meaning 100%. There is no range limit for the roll/pitch/yaw setpoints, there is of course a limit in the Crazyflie physical capabilities to follow the setpoints .
If it is similar to the master code (which is very likely), roll/pitch are in degree. Yaw is in degree per seconds and the thrust is from 0 to 65535 with 0 meaning 0% and 65535 meaning 100%. There is no range limit for the roll/pitch/yaw setpoints, there is of course a limit in the Crazyflie physical capabilities to follow the setpoints .
-
- Member
- Posts: 52
- Joined: Fri Jul 28, 2017 9:07 pm
Re: What's the control input range of CF
Thanks!arnaud wrote: ↑Wed Oct 25, 2017 7:49 am Hi,
If it is similar to the master code (which is very likely), roll/pitch are in degree. Yaw is in degree per seconds and the thrust is from 0 to 65535 with 0 meaning 0% and 65535 meaning 100%. There is no range limit for the roll/pitch/yaw setpoints, there is of course a limit in the Crazyflie physical capabilities to follow the setpoints .
-
- Member
- Posts: 52
- Joined: Fri Jul 28, 2017 9:07 pm
Re: What's the control input range of CF
Hi Arnaud,arnaud wrote: ↑Wed Oct 25, 2017 7:49 am Hi,
If it is similar to the master code (which is very likely), roll/pitch are in degree. Yaw is in degree per seconds and the thrust is from 0 to 65535 with 0 meaning 0% and 65535 meaning 100%. There is no range limit for the roll/pitch/yaw setpoints, there is of course a limit in the Crazyflie physical capabilities to follow the setpoints .
I am confused for the yaw rate. Since what we send to CF should be the yaw rate, does it mean that the inner attitude loop takes yaw rate as desired value? In other words, the reference of the inner attitude loop is roll, pitch, yaw or roll, pitch, yaw rate? From what CF receives, it should be yaw rate. However, from the firmware, controller_pid.c, it seems that it should be yaw.
Re: What's the control input range of CF
Internally the absolute yaw is controlled, the yaw rate setpoint is accumulated internally to generate and absolute yaw setpoint: https://github.com/bitcraze/crazyflie-f ... _pid.c#L41.
Though this is implementation details, you do not have to control the yaw rate, using the generic setpoint packets it is possible to send an absolute yaw setpoint as well.
Though this is implementation details, you do not have to control the yaw rate, using the generic setpoint packets it is possible to send an absolute yaw setpoint as well.