File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments