Aria: ArCompassConnector Class Reference

- Main Page
- Classes
- Files
- Related Pages

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

# ArCompassConnector Class Reference

`#include <ArTCM2.h>`

List of all members.

## Detailed Description

Use this class to create an instance of a TCM2 subclass and connect to the device based on program command line options. This allows the user of a program to select a different kind of compass configuration (for example, if the compass is connected to a computer serial port, use ArTCMCompassDirect instead of the normal ArTCMCompassRobot.)

The following command-line arguments are checked:

## Public Member Functions
| ArCompassConnector (ArArgumentParser *argParser)
bool | connect (ArTCM2 *) const
ArTCM2 * | create (ArRobot *robot)
## Protected Types
enum | DeviceType { Robot, SerialTCM, None }
## Protected Member Functions
void | logOptions ()
bool | parseArgs ()
## Protected Attributes
ArArgumentParser * | myArgParser
DeviceType | myDeviceType
ArFunctorC< ArCompassConnector > | myLogArgsCallback
ArRetFunctorC< bool, ArCompassConnector > | myParseArgsCallback
ArRobot * | myRobot
const char * | mySerialPort
ArFunctor * | mySerialTCMReadFunctor

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

- ArTCM2.h