LaosLaser / Firmware

Embedded software (firmware) for the laser system and components, including configuration files
27 stars 27 forks source link

Add hard/soft limits for axes #34

Closed peteruithoven closed 9 years ago

peteruithoven commented 9 years ago

At the moment, no hard or soft limits are enforced within the firmware. It is possible to jog past the limits. Also, faulty jobs can crash the axes into their end stops.

As soon as the device is homed it should be aware of its maximum and minimum X and Y (and Z) positions based on the limits in the config file. Therefore, it should not allow movement past these limits.

When using the MOVE command it is possible (and easy) to make the machine move past its limits. It should be fairly simple to constrain the X and Y axis to the values specified in config.txt.

Fix can be added around line 269 in LaosMenu.cpp

peteruithoven commented 9 years ago

Probably fixed: https://github.com/LaosLaser/Firmware/pull/42#event-155948047