Added some error checks and better default cal values and go straight when breaks in line.
Merge branch 'mainthread_dev' of https://github.com/ultralaserdeluxe/gloria into mainthread_dev