Skip to content

Commit 7b019a6

Browse files
committed
PR #3820: I (andypugh) shouldn't have moved the lines in the original PR
1 parent 9b07e7e commit 7b019a6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/emc/motion/axis.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -659,8 +659,7 @@ int axis_calc_motion(double servo_period)
659659

660660
for (axis_num = 0; axis_num < EMCMOT_MAX_AXIS; axis_num++) {
661661
axis = &axis_array[axis_num];
662-
axis->teleop_vel_cmd = axis->teleop_tp.curr_vel;
663-
axis->pos_cmd = axis->teleop_tp.curr_pos;
662+
664663
// teleop_tp.max_vel is always positive
665664
if (axis->teleop_tp.max_vel > axis->vel_limit) {
666665
axis->teleop_tp.max_vel = axis->vel_limit;
@@ -669,6 +668,9 @@ int axis_calc_motion(double servo_period)
669668
violated_teleop_limit = 1;
670669
}
671670

671+
axis->teleop_vel_cmd = axis->teleop_tp.curr_vel;
672+
axis->pos_cmd = axis->teleop_tp.curr_pos;
673+
672674
if (!axis->teleop_tp.active) {
673675
axis->kb_ajog_active = 0;
674676
axis->wheel_ajog_active = 0;

0 commit comments

Comments
 (0)