Skip to content

Commit

Permalink
motorRecord.cc: Jogging against to LVIO in LVIO
Browse files Browse the repository at this point in the history
When jogging has stopped because the motor is close to a softlimit,
the record could lock up when the same jog button is pressed again.

STOP didn't help to unlock it, neither did jog into the opposite
direction work.

Solution:
Clear the JOGF and JOGR button in the record.
  • Loading branch information
tboegi committed Jul 3, 2018
1 parent a002988 commit 3103563
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions motorApp/MotorSrc/motorRecord.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2001,6 +2001,17 @@ static RTN_STATUS do_work(motorRecord * pmr, CALLBACK_VALUE proc_ind)
{
pmr->lvio = 1;
MARK(M_LVIO);
/* Prevent record from locking up in mip=JOG_REQ */
if (pmr->jogf)
{
pmr->jogf = 0;
MARK_AUX(M_JOGF);
}
if (pmr->jogr)
{
pmr->jogr = 0;
MARK_AUX(M_JOGR);
}
return(OK);
}
pmr->mip = pmr->jogf ? MIP_JOGF : MIP_JOGR;
Expand Down

0 comments on commit 3103563

Please sign in to comment.