Sync and report changed position

This commit is contained in:
Scott Lahteine committed 2017-12-10 21:39:49 -06:00
1 parent 11f9c253e0
commit 03ba79f144
6 files changed
+24 -4

No files matched your search

+6
View File
@@ -211,6 +211,12 @@ void get_cartesian_from_steppers() {
* Set the current_position for an axis based on
* the stepper positions, removing any leveling that
* may have been applied.
*
* To prevent small shifts in axis position always call
* SYNC_PLAN_POSITION_KINEMATIC after updating axes with this.
*
* To keep hosts in sync, always call report_current_position
* after updating the current_position.
*/
void set_current_from_steppers_for_axis(const AxisEnum axis) {
get_cartesian_from_steppers();