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

@ -38,8 +38,8 @@ polar_stepper_alloc(char type)
struct stepper_kinematics *sk = malloc(sizeof(*sk));
memset(sk, 0, sizeof(*sk));
if (type == 'r')
sk->calc_position = polar_stepper_radius_calc_position;
sk->calc_position_cb = polar_stepper_radius_calc_position;
else if (type == 'a')
sk->calc_position = polar_stepper_angle_calc_position;
sk->calc_position_cb = polar_stepper_angle_calc_position;
return sk;
}