Skip to content

Commit c9a5a0a

Browse files
authored
Merge pull request #4685 from grandixximo/kins-nonfinite-freeze
motion: a non-finite inverse in coordinated mode no longer hangs the servo thread
2 parents 0f1aa81 + 1f80ec4 commit c9a5a0a

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎src/emc/motion/control.c‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1462,6 +1462,11 @@ static void get_pos_cmds(long period)
14621462
this cycle so it doesn't really matter */
14631463
cubicAddPoint(&(joint->cubic), joint->coarse_pos);
14641464
}
1465+
/* a non-finite joint left joint 0 without its point, so the
1466+
loop would ask for it forever and hang the servo thread */
1467+
if (joint_num < NO_OF_KINS_JOINTS) {
1468+
break;
1469+
}
14651470
}
14661471
else
14671472
{

0 commit comments

Comments
 (0)