itersolve: Move tracking of commanded position to itersolve code

Track the commanded position in just the itersolve.c code instead of
in mcu.py.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor
2018-06-14 16:33:57 -04:00
parent 8f747e2720
commit 926829e737
3 changed files with 23 additions and 20 deletions

View File

@@ -49,9 +49,10 @@ defs_itersolve = """
, double axes_d_x, double axes_d_y, double axes_d_z
, double start_v, double cruise_v, double accel);
int32_t itersolve_gen_steps(struct stepper_kinematics *sk, struct move *m);
void itersolve_set_commanded_pos(struct stepper_kinematics *sk, double pos);
void itersolve_set_stepcompress(struct stepper_kinematics *sk
, struct stepcompress *sc, double step_dist);
void itersolve_set_commanded_pos(struct stepper_kinematics *sk, double pos);
double itersolve_get_commanded_pos(struct stepper_kinematics *sk);
"""
defs_kin_cartesian = """