00022 {
00023 using namespace iRobot;
00024
00025
00026 CHECK_FAILURE
00027 (CommandNotAvailable,
00028 robot.sendLedCommand (Create::LED_PLAY,
00029 Create::LED_COLOR_RED,
00030 Create::LED_INTENSITY_OFF));
00031
00032
00033 robot.sendFullCommand ();
00034 robot.sendLedCommand (Create::LED_PLAY,
00035 Create::LED_COLOR_RED,
00036 Create::LED_INTENSITY_OFF);
00037
00038
00039 robot.sendSafeCommand ();
00040
00041
00042 robot.sendLedCommand (Create::LED_NONE,
00043 Create::LED_COLOR_RED,
00044 Create::LED_INTENSITY_OFF);
00045 robot.sendLedCommand (Create::LED_PLAY,
00046 Create::LED_COLOR_GREEN,
00047 Create::LED_INTENSITY_OFF);
00048 robot.sendLedCommand (Create::LED_ADVANCE,
00049 Create::LED_COLOR_GREEN,
00050 Create::LED_INTENSITY_FULL);
00051 robot.sendLedCommand (Create::LED_ALL,
00052 Create::LED_COLOR_RED,
00053 Create::LED_INTENSITY_FULL);
00054
00055
00056 Create::Led l = static_cast<Create::Led> (342);
00057
00058 CHECK_FAILURE
00059 (InvalidArgument,
00060 robot.sendLedCommand (l,
00061 Create::LED_COLOR_GREEN,
00062 Create::LED_INTENSITY_OFF));
00063
00064 return TEST_SUCCEED;
00065 }