Skip to content

Commit

Permalink
Add clarifying comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmy-mcelwain authored and ted-miller committed Oct 8, 2024
1 parent e6217bf commit 9455de6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -361,3 +361,4 @@ libmicroros_dx200_foxy/

# M+ build output
*.out
/libmicroros_yrc1000_iron
5 changes: 4 additions & 1 deletion src/MotionControl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1392,7 +1392,10 @@ MotionNotReadyCode Ros_MotionControl_StartMotionMode(MOTION_MODE mode, rosidl_ru
case MOTION_NOT_READY_NOT_REMOTE:
case MOTION_NOT_READY_HOLD:
return motion_readiness_code;
case MOTION_NOT_READY_ERROR:
case MOTION_NOT_READY_ERROR:
//the responseMessage gets populated only in this case or for other MOTION_NOT_READY_ERROR
//returns because it has the most information about the error in this situtation.
//in other cases, the responseMessage is populated upstream/with only the MotionNotReadyCode
alarmcode = Ros_Controller_GetAlarmCode();
snprintf(output, MOTION_START_ERROR_MESSAGE_LENGTH, "%s: '%s' (0x%04X)",
Ros_ErrorHandling_MotionNotReadyCode_ToString(MOTION_NOT_READY_ERROR),
Expand Down

0 comments on commit 9455de6

Please sign in to comment.