/usr/src/rpm/BUILD/libirobot-create-0.1/tests/low-side-drivers-test.cc File Reference

#include "common.hh"

Include dependency graph for low-side-drivers-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.sendLowSideDriversCommand (false, false, false));
00029 
00030   // Switch to full mode and test a command.
00031   robot.sendFullCommand ();
00032   robot.sendLowSideDriversCommand (false, false, false);
00033 
00034   // Switch to safe mode for the rest of the test.
00035   robot.sendSafeCommand ();
00036 
00037   robot.sendLowSideDriversCommand (false, false, false);
00038   robot.sendLowSideDriversCommand (true, true, true);
00039   return TEST_SUCCEED;
00040 }


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