itersolve: Rename calc_position to calc_position_cb

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2019-10-27 11:06:46 -04:00
parent 9945cc0f46
commit 92993c062b
8 changed files with 20 additions and 20 deletions

View file

@ -30,12 +30,12 @@ double move_get_distance(struct move *m, double move_time);
struct coord move_get_coord(struct move *m, double move_time);
struct stepper_kinematics;
typedef double (*sk_callback)(struct stepper_kinematics *sk, struct move *m
, double move_time);
typedef double (*sk_calc_callback)(struct stepper_kinematics *sk, struct move *m
, double move_time);
struct stepper_kinematics {
double step_dist, commanded_pos;
struct stepcompress *sc;
sk_callback calc_position;
sk_calc_callback calc_position_cb;
};
int32_t itersolve_gen_steps(struct stepper_kinematics *sk, struct move *m);