thecountoftuscany / PyTeapot-Quaternion-Euler-cube-rotation

Visualization of IMU orientation from quaternion or Euler angles with a rotating cube
GNU General Public License v3.0
144 stars 42 forks source link

Do graceful error handling for socket communication #12

Open thecountoftuscany opened 2 years ago

thecountoftuscany commented 2 years ago

From issue https://github.com/thecountoftuscany/PyTeapot-Quaternion-Euler-cube-rotation/issues/11, it seems like the program just hangs if the sockets are not configured properly (issue was reproduced on my Windows computer). The program should raise an error and exit instead of getting stuck. This works fine for misconfigured serial port.

thecountoftuscany commented 2 years ago

@Takaklas could you help with this? If not, that's fine, I can try to take a look at it later.