Skip to content

Commit

Permalink
Merge pull request #568 from EricMarcil/Fix_pendant_mode_switch_issue
Browse files Browse the repository at this point in the history
Fix pendant mode switch issue
  • Loading branch information
ted-miller committed Dec 20, 2023
2 parents 78471a3 + 0dacd92 commit 7601546
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions motoman_driver/MotoPlus/Controller.c
Original file line number Diff line number Diff line change
Expand Up @@ -741,6 +741,18 @@ BOOL Ros_Controller_StatusUpdate(Controller* controller)
break;
}

case IO_ROBOTSTATUS_PLAY:
case IO_ROBOTSTATUS_TEACH:
case IO_ROBOTSTATUS_REMOTE:
case IO_ROBOTSTATUS_OPERATING:
case IO_ROBOTSTATUS_SERVO:
if ((ioStatus[IO_ROBOTSTATUS_REMOTE] != 1) ||
(ioStatus[IO_ROBOTSTATUS_PLAY] != 1) ||
(ioStatus[IO_ROBOTSTATUS_OPERATING] == 0) ||
(ioStatus[IO_ROBOTSTATUS_SERVO] == 0))
Ros_MotionServer_ClearQ_All(controller);
break;

case IO_ROBOTSTATUS_WAITING_ROS: // Job input signaling ready for external motion
{
if(ioStatus[IO_ROBOTSTATUS_WAITING_ROS] == 0) // signal turned OFF
Expand All @@ -753,6 +765,7 @@ BOOL Ros_Controller_StatusUpdate(Controller* controller)
controller->bRobotJobReady = TRUE; //job is ready (even if other factors will prevent motion)
break;
}

#if (YRC1000||YRC1000u)
case IO_ROBOTSTATUS_PFL_STOP: // PFL Stop
case IO_ROBOTSTATUS_PFL_ESCAPE: // PFL Escaping
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 7601546

Please sign in to comment.