PWM update frequency
Posted: Fri Sep 25, 2020 9:55 am
Hi All,
I was wondering if it is possible to increase the frequency with which the PWM values are published in a vanilla crazyflie.
From this post viewtopic.php?f=5&t=1405&sid=106e883fc5 ... 2a6e21d466 , I take that the PWM frequency is 328kHz, so I guess we could update the value more often than the 400Hz (https://github.com/bitcraze/crazyflie-f ... tors.h#L52) it is set to.
I understand that this also implies increasing the speed of everything else (PID controller, Kallman). Also, since tasks would run more frequently, it also would have higher power consumption, but otherwise would be more responsive, wouldn't it?
Is it as simple as changing those constants?
I was wondering if it is possible to increase the frequency with which the PWM values are published in a vanilla crazyflie.
From this post viewtopic.php?f=5&t=1405&sid=106e883fc5 ... 2a6e21d466 , I take that the PWM frequency is 328kHz, so I guess we could update the value more often than the 400Hz (https://github.com/bitcraze/crazyflie-f ... tors.h#L52) it is set to.
I understand that this also implies increasing the speed of everything else (PID controller, Kallman). Also, since tasks would run more frequently, it also would have higher power consumption, but otherwise would be more responsive, wouldn't it?
Is it as simple as changing those constants?