#include "common.hh"

Functions | |
| int | run_test (iRobot::Create &robot, std::stringstream &) |
| int run_test | ( | iRobot::Create & | robot, | |
| std::stringstream & | ||||
| ) |
00022 { 00023 using namespace iRobot; 00024 00025 // Test Mode. 00026 CHECK_FAILURE 00027 (CommandNotAvailable, 00028 robot.sendIrCommand (0)); 00029 00030 // Switch to full mode and test a command. 00031 robot.sendFullCommand (); 00032 robot.sendIrCommand (0); 00033 00034 // Switch to safe mode for the rest of the test. 00035 robot.sendSafeCommand (); 00036 00037 // Send valid commands (bounds). 00038 robot.sendIrCommand (0); 00039 robot.sendIrCommand (255); 00040 00041 return TEST_SUCCEED; 00042 }
1.5.4