stepper: Remove set_commanded_position() call

Now that the only caller to set_commanded_position() is
set_position(), remove the set_commanded_position() method and pass
the set_position() call directly to the itersolve.c code.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor
2019-11-13 18:58:51 -05:00
parent 18b0749163
commit d39142139e
4 changed files with 13 additions and 20 deletions

View File

@@ -208,7 +208,7 @@ itersolve_set_stepcompress(struct stepper_kinematics *sk
sk->step_dist = step_dist;
}
double __visible
static double
itersolve_calc_position_from_coord(struct stepper_kinematics *sk
, double x, double y, double z)
{
@@ -221,9 +221,10 @@ itersolve_calc_position_from_coord(struct stepper_kinematics *sk
}
void __visible
itersolve_set_commanded_pos(struct stepper_kinematics *sk, double pos)
itersolve_set_position(struct stepper_kinematics *sk
, double x, double y, double z)
{
sk->commanded_pos = pos;
sk->commanded_pos = itersolve_calc_position_from_coord(sk, x, y, z);
}
double __visible