Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages | Examples

ArRobotJoyHandler Class Reference

#include <ArRobotJoyHandler.h>

List of all members.


Detailed Description

Interfaces to a joystick on the robot's microcontroller.

This is largely meant to be about the same as the normal joy handler but gets the data back from the robot about the joystick, but this sameness is why it reports things as it does.

Also note that x is usually rotational velocity (since it right/left), whereas Y is translational (since it is up/down).


Public Member Functions

 ArRobotJoyHandler (ArRobot *robot)
 Constructor.
bool getButton1 (void)
 Gets the first button.
bool getButton2 (void)
 Gets the second button.
ArTime getDataReceivedTime (void)
 Gets the time we last got information back.
void getDoubles (double *x, double *y, double *z)
 Gets the adjusted reading, as floats.
bool gotData (void)
 If we've ever gotten a packet back.
 ~ArRobotJoyHandler ()
 Destructor.

Protected Member Functions

void connectCallback (void)
bool handleJoystickPacket (ArRobotPacket *packet)

Protected Attributes

bool myButton1
bool myButton2
ArFunctorC< ArRobotJoyHandlermyConnectCB
ArTime myDataReceived
bool myGotData
ArRetFunctor1C< bool, ArRobotJoyHandler,
ArRobotPacket * > 
myHandleJoystickPacketCB
double myJoyX
double myJoyY
ArRobotmyRobot
ArTime myStarted
double myThrottle


The documentation for this class was generated from the following files:
Generated on Thu Jan 7 10:34:44 2010 for Aria by  doxygen 1.4.2