osresearch / Mechaduino-Firmware

Hardware available here:
http://tropical-labs.com
Other
3 stars 0 forks source link

G-Code interpreter #1

Open osresearch opened 6 years ago

osresearch commented 6 years ago

Should support:

Reference: https://reprap.org/wiki/G-code

osresearch commented 6 years ago

Currently supported:

static const struct {
        const char * const cmd;
        int (*handler)(const char ** argc, const int count);
        const char * const help;
} gcode_handlers[] = {
        { "G0", gcode_g0, "Move rapid" },
        { "G1", gcode_g0, "Move linear" },
        { "M0", gcode_m0, "Emergency stop" },
        { "M17", gcode_m17, "Motors on" },
        { "M18", gcode_m0, "Motors off" },
        { "M114", gcode_m114, "Report position" },
        { "G92", gcode_g92, "Set position" },
        { "c", gcode_calibrate, "Calibrate encoder" },
        { "?", gcode_help, "Help" },
};