| 61 | // clang-format on |
| 62 | |
| 63 | void gc_init() { |
| 64 | // Reset parser state: |
| 65 | |
| 66 | memset(&gc_state, 0, sizeof(parser_state_t)); |
| 67 | |
| 68 | // Load default G54 coordinate system. |
| 69 | gc_state.modal = modal_defaults; |
| 70 | gc_state.modal.override = config->_start->_deactivateParking ? Override::Disabled : Override::ParkingMotion; |
| 71 | gc_state.current_tool = -1; |
| 72 | coords[gc_state.modal.coord_select]->get(gc_state.coord_system); |
| 73 | flowcontrol_init(); |
| 74 | } |
| 75 | |
| 76 | // Sets g-code parser position in mm. Input in steps. Called by the system abort and hard |
| 77 | // limit pull-off routines. |
no test coverage detected