#include "common.hh"

Functions | |
| int | run_test (iRobot::Create robot, std::stringstream &stream) |
| int run_test | ( | iRobot::Create | robot, | |
| std::stringstream & | stream | |||
| ) |
00022 { 00023 using namespace iRobot; 00024 00025 // All false. 00026 CHECK_SENSOR_UCHAR (Create::SENSOR_BUMPS_WHEELS_DROPS, 0, 00027 !!robot.wheeldropCaster () 00028 || !!robot.wheeldropLeft () 00029 || !!robot.wheeldropRight () 00030 || !!robot.bumpLeft () 00031 || !!robot.bumpRight ()); 00032 // All true. 00033 CHECK_SENSOR_UCHAR (Create::SENSOR_BUMPS_WHEELS_DROPS, 31, 00034 !robot.wheeldropCaster () 00035 || !robot.wheeldropLeft () 00036 || !robot.wheeldropRight () 00037 || !robot.bumpLeft () 00038 || !robot.bumpRight ()); 00039 00040 // Intermediary value. 00041 CHECK_SENSOR_UCHAR (Create::SENSOR_BUMPS_WHEELS_DROPS, 21, 00042 !robot.wheeldropCaster () 00043 || !!robot.wheeldropLeft () 00044 || !robot.wheeldropRight () 00045 || !!robot.bumpLeft () 00046 || !robot.bumpRight ()); 00047 00048 return TEST_SUCCEED; 00049 }
1.5.4