MCPcopy Create free account
hub / github.com/bdring/FluidNC / gc_init

Function gc_init

FluidNC/src/GCode.cpp:63–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61// clang-format on
62
63void 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.

Callers 1

protocol_do_soft_restartFunction · 0.85

Calls 2

flowcontrol_initFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected