#include "common.hh"

Functions | |
| int | run_test (iRobot::Create &robot, std::stringstream &) |
| int run_test | ( | iRobot::Create & | robot, | |
| std::stringstream & | ||||
| ) |
00022 { 00023 // Test Mode. 00024 CHECK_FAILURE 00025 (iRobot::CommandNotAvailable, 00026 robot.sendDigitalOutputsCommand (true, true, true)); 00027 00028 // Switch to full mode and test a command. 00029 robot.sendFullCommand (); 00030 robot.sendDigitalOutputsCommand (true, true, true); 00031 00032 // Switch to safe mode for the rest of the test. 00033 robot.sendSafeCommand (); 00034 00035 robot.sendDigitalOutputsCommand (true, true, true); 00036 robot.sendDigitalOutputsCommand (false, false, false); 00037 00038 return TEST_SUCCEED; 00039 }
1.5.4