/usr/src/rpm/BUILD/libirobot-create-0.1/tests/ir-test.cc File Reference

#include "common.hh"

Include dependency graph for ir-test.cc:


Functions

int run_test (iRobot::Create &robot, std::stringstream &)

Function Documentation

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 }


Generated on Thu Aug 28 14:38:07 2008 for iRobot Create library by  doxygen 1.5.4