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

#include "common.hh"

Include dependency graph for wall-sensor-test.cc:


Functions

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

Function Documentation

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

00022 {
00023   using namespace iRobot;
00024 
00025   // Wall sensor.
00026   CHECK_SENSOR_UCHAR (Create::SENSOR_WALL, 0, !!robot.wall ());
00027   CHECK_SENSOR_UCHAR (Create::SENSOR_WALL, 1, !robot.wall ());
00028   CHECK_SENSOR_UCHAR (Create::SENSOR_WALL, 15, !robot.wall ());
00029 
00030   // Virtual wall sensor.
00031   CHECK_SENSOR_UCHAR (Create::SENSOR_VIRTUAL_WALL, 0, !!robot.virtualWall ());
00032   CHECK_SENSOR_UCHAR (Create::SENSOR_VIRTUAL_WALL, 1, !robot.virtualWall ());
00033   CHECK_SENSOR_UCHAR (Create::SENSOR_VIRTUAL_WALL, 15, !robot.virtualWall ());
00034   return TEST_SUCCEED;
00035 }


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