We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 006aa02 commit 7242b3fCopy full SHA for 7242b3f
1 file changed
src/emc/motion/axis.c
@@ -659,15 +659,14 @@ int axis_calc_motion(double servo_period)
659
660
for (axis_num = 0; axis_num < EMCMOT_MAX_AXIS; axis_num++) {
661
axis = &axis_array[axis_num];
662
+ axis->teleop_vel_cmd = axis->teleop_tp.curr_vel;
663
+ axis->pos_cmd = axis->teleop_tp.curr_pos;
664
// teleop_tp.max_vel is always positive
665
if (axis->teleop_tp.max_vel > axis->vel_limit) {
666
axis->teleop_tp.max_vel = axis->vel_limit;
667
}
668
if (update_teleop_with_check(axis_num, &(axis->teleop_tp), servo_period)) {
669
violated_teleop_limit = 1;
- } else {
- axis->teleop_vel_cmd = axis->teleop_tp.curr_vel;
670
- axis->pos_cmd = axis->teleop_tp.curr_pos;
671
672
673
if (!axis->teleop_tp.active) {
0 commit comments