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

#include "common.hh"

Include dependency graph for digital-outputs-test.cc:


Functions

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

Function Documentation

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 }


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