furbrain / STIC

GNU General Public License v3.0
9 stars 5 forks source link

certain laser read errors report as TimeoutError #1

Closed echarlie closed 8 months ago

echarlie commented 8 months ago

sometimes when shooting at a reflective surface or at an odd angle surface, the screen displays `asyncio/funcs.py:75:wait_for TimeoutError:" rather than a Laser Read Error.

furbrain commented 8 months ago

Looks like the code that picks up on the laser errors doesn't account for this. I'll need to fix this

furbrain commented 8 months ago

@echarlie I'll make the timeout error give a nicer response. Currently the timeout for the laser is set to 3s, would you prefer to wait longer and get a reading or get an error quicker?