Merge pull request #3466 from thinkyhead/rc_look_for_leveling_bug
Add CORE support to st_set_position and plan_set_position
This commit is contained in:
@@ -1090,6 +1090,12 @@ float junction_deviation = 0.1;
|
||||
} // plan_buffer_line()
|
||||
|
||||
#if ENABLED(AUTO_BED_LEVELING_FEATURE) && DISABLED(DELTA)
|
||||
|
||||
/**
|
||||
* Get the XYZ position of the steppers as a vector_3.
|
||||
*
|
||||
* On CORE machines XYZ is derived from ABC.
|
||||
*/
|
||||
vector_3 plan_get_position() {
|
||||
vector_3 position = vector_3(st_get_axis_position_mm(X_AXIS), st_get_axis_position_mm(Y_AXIS), st_get_axis_position_mm(Z_AXIS));
|
||||
|
||||
@@ -1102,8 +1108,14 @@ float junction_deviation = 0.1;
|
||||
|
||||
return position;
|
||||
}
|
||||
|
||||
#endif // AUTO_BED_LEVELING_FEATURE && !DELTA
|
||||
|
||||
/**
|
||||
* Directly set the planner XYZ position (hence the stepper positions).
|
||||
*
|
||||
* On CORE machines stepper ABC will be translated from the given XYZ.
|
||||
*/
|
||||
#if ENABLED(AUTO_BED_LEVELING_FEATURE) || ENABLED(MESH_BED_LEVELING)
|
||||
void plan_set_position(float x, float y, float z, const float& e)
|
||||
#else
|
||||
|
Reference in New Issue
Block a user