
Definition in file beobot-BeobotControl.C.
#include "Component/ModelManager.H"
#include "Devices/BeoChip.H"
#include "Devices/DeviceOpts.H"
#include "Beobot/BeobotConfig.H"
#include "Beobot/BeobotControl.H"
#include "Util/MathFunctions.H"
#include <cstdlib>
#include "Beowulf/Beowulf.H"
#include "Util/Types.H"
#include "Util/log.H"
#include <cstring>
#include <signal.h>
#include <time.h>
#include <unistd.h>
Include dependency graph for beobot-BeobotControl.C:

Go to the source code of this file.
Classes | |
| class | MyBeoChipListener |
| Our own little BeoChipListener. More... | |
Functions | |
| void | terminate (int s) |
| int | main (const int argc, const char *argv[]) |
| Drive the Beobot under remote control and Board A. | |
Variables | |
| static bool | goforever = true |
|
||||||||||||
|
Drive the Beobot under remote control and Board A. This simple test program demonstrate how to capture PWM signals from the Beochip, which on the Beobot correspond to steering and speed inputs from the remote control. The captured signals are then directly fed into the Beobot's steering and speed servos controlled by BeobotControl class (which has the BeoChip). Definition at line 138 of file beobot-BeobotControl.C. References bbc, beo, rutz::shared_ptr< T >::dynCastFrom(), BeobotConfig::gearMinVal, BeobotConfig::gearServoNum, TCPmessage::getElementFloat(), goforever, i, LINFO, MYLOGVERB, BeobotConfig::pwm0MaxVal, BeobotConfig::pwm0MinVal, BeobotConfig::pwm0NeutralVal, BeobotConfig::pwm1MaxVal, BeobotConfig::pwm1MinVal, BeobotConfig::pwm1NeutralVal, TCPmessage::reset(), and terminate. |
1.4.4