mirror of
https://github.com/synthetos/g2.git
synced 2026-02-06 19:31:47 +08:00
Changed cm_set_coord_offsets() to cm_set_g10_data(); testing offsets code
This commit is contained in:
4
g2core/gcode_parser.cpp
Executable file → Normal file
4
g2core/gcode_parser.cpp
Executable file → Normal file
@@ -437,7 +437,7 @@ static stat_t _parse_gcode_block(char *buf, char *active_comment)
|
||||
case 2: SET_MODAL (MODAL_GROUP_G1, motion_mode, MOTION_MODE_CW_ARC);
|
||||
case 3: SET_MODAL (MODAL_GROUP_G1, motion_mode, MOTION_MODE_CCW_ARC);
|
||||
case 4: SET_NON_MODAL (next_action, NEXT_ACTION_DWELL);
|
||||
case 10: SET_MODAL (MODAL_GROUP_G0, next_action, NEXT_ACTION_SET_COORD_DATA);
|
||||
case 10: SET_MODAL (MODAL_GROUP_G0, next_action, NEXT_ACTION_SET_G10_DATA);
|
||||
case 17: SET_MODAL (MODAL_GROUP_G2, select_plane, CANON_PLANE_XY);
|
||||
case 18: SET_MODAL (MODAL_GROUP_G2, select_plane, CANON_PLANE_XZ);
|
||||
case 19: SET_MODAL (MODAL_GROUP_G2, select_plane, CANON_PLANE_YZ);
|
||||
@@ -695,7 +695,7 @@ static stat_t _execute_gcode_block(char *active_comment)
|
||||
case NEXT_ACTION_STRAIGHT_PROBE_AWAY_ERR:{ status = cm_straight_probe(cm.gn.target, cm.gf.target, true, false); break;} // G38.4
|
||||
case NEXT_ACTION_STRAIGHT_PROBE_AWAY: { status = cm_straight_probe(cm.gn.target, cm.gf.target, false, false); break;} // G38.5
|
||||
|
||||
case NEXT_ACTION_SET_COORD_DATA: { status = cm_set_coord_offsets(cm.gn.parameter, cm.gn.L_word, cm.gn.target, cm.gf.target); break;}
|
||||
case NEXT_ACTION_SET_G10_DATA: { status = cm_set_g10_data(cm.gn.parameter, cm.gn.L_word, cm.gn.target, cm.gf.target); break;}
|
||||
case NEXT_ACTION_SET_ORIGIN_OFFSETS: { status = cm_set_origin_offsets(cm.gn.target, cm.gf.target); break;}// G92
|
||||
case NEXT_ACTION_RESET_ORIGIN_OFFSETS: { status = cm_reset_origin_offsets(); break;} // G92.1
|
||||
case NEXT_ACTION_SUSPEND_ORIGIN_OFFSETS: { status = cm_suspend_origin_offsets(); break;} // G92.2
|
||||
|
||||
Reference in New Issue
Block a user