nl_frcf wrote:So it seems that removing the flight control tab does the job. For some reason, that tab is very CPU intensive, in such a way that impares with the processing of communication between the radio and the CF.
Any way to overpass this delay the flight tab is causing, without having to close it?
Hi, I guess its because the tab is being updated faster than it needs to be
Check the following files
crazyflie-pc-client/lib/cfclient/tabs/FlightTab.py
crazyflie-pc-client/lib/cfclient/ui/widgets/ai.py
The first thing you can try is to reduce the logging frequency from the flie. Everytime you see something like this:
(eg line 213 in FlightTab)
It means that the Stabilizer log group is initialised at 50hz (ie updates per second), so try to change the number down to 10 or 5.
Right now its implemented in such a way that whenever new info is available, it updates the GUI. There are other log groups too (Motors, Baro, Hover) and each incoming update triggers a GUI update.
So you could change it in such a way that only one of the callback updates the GUI and the rest just set a value. (remove some of the self.repaint() lines in the setXXX(self, data) functions in ai.py).
Im not in a position to test changes to code right now, so maybe you can fiddle with it for the moment
Does this help?
Cheers!