Ground station stalling when serial communication is enabled
Bug Description
- When the serial communication is enabled on the ground station, it will "stall" the ground station at random points in time for around 1 second. Stopping the ground station for this amount of time will stop all communication with the quad copter for that amount of time. If it stalls for longer than once second it will also reset the logging blocks on the crazyflie, causing all logging to stop and will require all log blocks to be enabled again.
Steps to reproduce
- Connect the test stand to the ground station.
- Watch the terminal and wait until you see logging data get stuck on a certain value, that is when it is stalling.
Proposed Fix
We have tried setting reading serial data on its own thread. We have also tried using other serial libraries/reading serial with low level c. Neither have fixed the issue. It may happen because too much serial data is being sent to the ground station. It may also be an issue with the VM. Potential fixes could be having a handshake for serial data or researching if/why the vm is the issue.
Edited by Zach Eisele