From 890298d34d76923e895ff7905b9dbe374035e694 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Fri, 22 Jun 2018 13:03:07 -0400 Subject: itersolve: Support setting the stepper position via a cartesian coordinate Add support for an itersolve_set_position() function that sets a stepper position from a cartesian coordinate. This eliminates the need for both the python and C code to be able to translate from a cartesian coordinate to a stepper position. Signed-off-by: Kevin O'Connor --- klippy/chelper/itersolve.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'klippy/chelper/itersolve.h') diff --git a/klippy/chelper/itersolve.h b/klippy/chelper/itersolve.h index 23b3201d..25f26451 100644 --- a/klippy/chelper/itersolve.h +++ b/klippy/chelper/itersolve.h @@ -41,6 +41,9 @@ struct stepper_kinematics { int32_t itersolve_gen_steps(struct stepper_kinematics *sk, struct move *m); void itersolve_set_stepcompress(struct stepper_kinematics *sk , struct stepcompress *sc, double step_dist); +void itersolve_set_position(struct stepper_kinematics *sk + , double x, double y, double z); void itersolve_set_commanded_pos(struct stepper_kinematics *sk, double pos); +double itersolve_get_commanded_pos(struct stepper_kinematics *sk); #endif // itersolve.h -- cgit v1.2.3-70-g09d2