Update LaserController.cs

Adding checking function to keep the software in sync with the hardware. Also modified math.max to reflect my hardware.