MaslowCNC / Firmware

Maslow Firmware
GNU General Public License v3.0
263 stars 134 forks source link

Add an alarm for gcode calculation error #428

Closed blurfl closed 6 years ago

blurfl commented 6 years ago

Add flag ALARM_GCODE_PARAM_ERROR and the code to handle it in Report.cpp Use that flag in Motion.cpp if a parameter value error causes a calculation error when calculating an arc() as used by G2() in GCode.cpp Addresses Issue #426, and requires GC PR #697 for the alarm to trigger a dialog. The dialog:

alarm dialog

This .nc file will trigger the calculation error when the firmware evaluates line 31. G2-G3-error-arises-in-line-31.nc.zip

BarbourSmith commented 6 years ago

Excellent!!!