mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2025-02-16 14:27:32 +00:00
🚸 Include extra axes in position report (#23490)
This commit is contained in:
parent
0dfc17ca60
commit
a719020348
1 changed files with 13 additions and 19 deletions
|
@ -217,9 +217,7 @@ void report_real_position() {
|
|||
xyze_pos_t npos = LOGICAL_AXIS_ARRAY(
|
||||
planner.get_axis_position_mm(E_AXIS),
|
||||
cartes.x, cartes.y, cartes.z,
|
||||
planner.get_axis_position_mm(I_AXIS),
|
||||
planner.get_axis_position_mm(J_AXIS),
|
||||
planner.get_axis_position_mm(K_AXIS)
|
||||
cartes.i, cartes.j, cartes.k
|
||||
);
|
||||
|
||||
TERN_(HAS_POSITION_MODIFIERS, planner.unapply_modifiers(npos, true));
|
||||
|
@ -263,27 +261,23 @@ void report_current_position_projected() {
|
|||
* Output the current position (processed) to serial while moving
|
||||
*/
|
||||
void report_current_position_moving() {
|
||||
|
||||
get_cartesian_from_steppers();
|
||||
const xyz_pos_t lpos = cartes.asLogical();
|
||||
SERIAL_ECHOPGM(
|
||||
"X:", lpos.x
|
||||
#if HAS_Y_AXIS
|
||||
, " Y:", lpos.y
|
||||
#endif
|
||||
#if HAS_Z_AXIS
|
||||
, " Z:", lpos.z
|
||||
#endif
|
||||
#if HAS_EXTRUDERS
|
||||
, " E:", current_position.e
|
||||
#endif
|
||||
|
||||
SERIAL_ECHOPGM_P(
|
||||
LIST_N(DOUBLE(LOGICAL_AXES),
|
||||
SP_E_LBL, current_position.e,
|
||||
X_LBL, lpos.x,
|
||||
SP_Y_LBL, lpos.y,
|
||||
SP_Z_LBL, lpos.z,
|
||||
SP_I_LBL, lpos.i,
|
||||
SP_J_LBL, lpos.j,
|
||||
SP_K_LBL, lpos.k
|
||||
)
|
||||
);
|
||||
|
||||
stepper.report_positions();
|
||||
#if IS_SCARA
|
||||
scara_report_positions();
|
||||
#endif
|
||||
|
||||
TERN_(IS_SCARA, scara_report_positions());
|
||||
report_current_grblstate_moving();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue