Clarify what are "logical" positions in the planner
This commit is contained in:
@ -1372,16 +1372,16 @@ void Planner::_set_position_mm(const float &a, const float &b, const float &c, c
|
||||
|
||||
void Planner::set_position_mm_kinematic(const float position[NUM_AXIS]) {
|
||||
#if PLANNER_LEVELING
|
||||
float pos[XYZ] = { position[X_AXIS], position[Y_AXIS], position[Z_AXIS] };
|
||||
apply_leveling(pos);
|
||||
float lpos[XYZ] = { position[X_AXIS], position[Y_AXIS], position[Z_AXIS] };
|
||||
apply_leveling(lpos);
|
||||
#else
|
||||
const float * const pos = position;
|
||||
const float * const lpos = position;
|
||||
#endif
|
||||
#if IS_KINEMATIC
|
||||
inverse_kinematics(pos);
|
||||
inverse_kinematics(lpos);
|
||||
_set_position_mm(delta[A_AXIS], delta[B_AXIS], delta[C_AXIS], position[E_AXIS]);
|
||||
#else
|
||||
_set_position_mm(pos[X_AXIS], pos[Y_AXIS], pos[Z_AXIS], position[E_AXIS]);
|
||||
_set_position_mm(lpos[X_AXIS], lpos[Y_AXIS], lpos[Z_AXIS], position[E_AXIS]);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user