We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b07e7e commit 7b019a6Copy full SHA for 7b019a6
1 file changed
src/emc/motion/axis.c
@@ -659,8 +659,7 @@ 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;
@@ -669,6 +668,9 @@ int axis_calc_motion(double servo_period)
669
668
violated_teleop_limit = 1;
670
}
671
+ axis->teleop_vel_cmd = axis->teleop_tp.curr_vel;
672
+ axis->pos_cmd = axis->teleop_tp.curr_pos;
673
674
if (!axis->teleop_tp.active) {
675
axis->kb_ajog_active = 0;
676
axis->wheel_ajog_active = 0;
0 commit comments