#include <ArTCM2.h>
This class will get back the tcm2 packets and send commands to the robot related to the TCM2, you should also look at the information in our TCM2 manual and the TCM2 user manual for a real understanding of what these all do.
Definition at line 40 of file ArTCM2.h.
Public Member Functions | |
ArTCM2 (ArRobot *robot) | |
Constructor. | |
void | commandAutoCalibration (void) |
Enable auto calibration. | |
void | commandContinuousPackets (void) |
Gets packets back continuously. | |
void | commandJustCompass (void) |
Puts it to just compass mode (into ArRobot::getCompass). | |
void | commandOff (void) |
Turns the compass off (software only, not low power standby). | |
void | commandOnePacket (void) |
Gets a single packet back. | |
void | commandSoftReset (void) |
Command to do a soft reset of the compass. | |
void | commandStopCalibration (void) |
Stops calibration and gets one packet, then resets to just compass mode. | |
void | commandUserCalibration (void) |
Enables user calibration. | |
double | getCalibrationH (void) const |
Gets the calibration H score. | |
double | getCalibrationM (void) const |
Gets the calibration M score. | |
double | getCalibrationV (void) const |
Gets the calibration V score. | |
double | getCompass (void) const |
Gets the compass heading (-180, 180] degrees. | |
int | getError (void) const |
int | getPacCount (void) |
Gets the number of readings in the last second. | |
double | getPitch (void) const |
Gets the pitch. | |
double | getRoll (void) const |
Gets the roll. | |
double | getTemperature (void) const |
Gets the temperature. | |
double | getXMagnetic (void) const |
Gets the magnetic field X component. | |
double | getYMagnetic (void) const |
Gets the magnetic field Y component. | |
double | getZMagnetic (void) const |
Gets the magnetic field Z component. | |
bool | packetHandler (ArRobotPacket *packet) |
Packet handler for the tcm2 packet. | |
virtual | ~ArTCM2 () |
Destructor. | |
Protected Attributes | |
double | myCalibrationH |
double | myCalibrationM |
double | myCalibrationV |
double | myCompass |
int | myError |
int | myPacCount |
int | myPacCurrentCount |
ArRetFunctor1C< bool, ArTCM2, ArRobotPacket * > | myPacketHandlerCB |
double | myPitch |
ArRobot * | myRobot |
double | myRoll |
double | myTemperature |
time_t | myTimeLastPacket |
double | myXMag |
double | myYMag |
double | myZMag |