Aria: ArRobotJoyHandler Class Reference

- Main Page
- Classes
- Files
- Related Pages

- Alphabetical List
- Class List
- Class Hierarchy
- Class Members

# 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< ArRobotJoyHandler > | myConnectCB
ArTime | myDataReceived
bool | myGotData
ArRetFunctor1C< bool, ArRobotJoyHandler, ArRobotPacket * > | myHandleJoystickPacketCB
double | myJoyX
double | myJoyY
ArRobot * | myRobot
ArTime | myStarted
double | myThrottle

The documentation for this class was generated from the following file:

- ArRobotJoyHandler.h