MCPcopy Create free account
hub / github.com/MarlinFirmware/Marlin / position

Method position

Marlin/src/module/stepper.cpp:3419–3424  ·  view source on GitHub ↗

* Get a stepper's position in steps. */

Source from the content-addressed store, hash-verified

3417 * Get a stepper's position in steps.
3418 */
3419int32_t Stepper::position(const AxisEnum axis) {
3420 AVR_ATOMIC_SECTION_START();
3421 const int32_t v = count_position[axis];
3422 AVR_ATOMIC_SECTION_END();
3423 return v;
3424}
3425
3426/**
3427 * Set all axis stepper positions in steps

Callers 7

get_pid_outputMethod · 0.80
get_pid_output_hotendMethod · 0.80
get_axis_position_mmMethod · 0.80
LOOP_LOGICAL_AXESFunction · 0.80
M114Method · 0.80
get_axis_error_stepsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected