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

ArRobotJoyHandler Class Reference

Interfaces to a joystick on the robot's microcontroller. More...

#include <ArRobotJoyHandler.h>

List of all members.

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


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).

Definition at line 45 of file ArRobotJoyHandler.h.


The documentation for this class was generated from the following files:
Generated on Wed Oct 19 12:56:54 2005 for Aria by  doxygen 1.4.0