ot::NDICommands Class Reference

#include <NDI_commands.h>

Collaboration diagram for ot::NDICommands:

Collaboration graph
[legend]
List of all members.

Detailed Description

Author:
Sean JS Chen, modified and extended for Polaris by Arne Hans
Date:
05/03/2005
Interface to deal directly with the Aurora/Polaris Type Tracker without having to use the Aurora/Polaris Combined API ASCII text commands that are sent via the serial port. This can be made neater if the port initialization is done here instead of at a higher level


Public Member Functions

 NDICommands (const std::string &strDevice, long nBaudeRate, int nDataBits, char cParity, int nStopBits, bool bHardwareHandShake)
 Constructor.
 ~NDICommands ()
 Destructor.
void initialize ()
 Command to initialzed the Aurora/Polaris.
void trackNodes (std::deque< TransformData > &queTransformData, int *nStatus)
 Passes back the transforms and the system status of the Aurora/Polaris.
int getNumberOfMagneticPorts () const
 Indicates the number of magnetic ports.
void getOccupiedPortHandles (std::deque< std::string > &occupiedPorts)
 Get all occupied port handles that are not initialized or enabled.
void getFreeablePortHandles (std::deque< std::string > &occupiedPorts)
 Get all port handles that should be freed.
void getEnabledPortHandles (std::deque< std::string > &enabledPorts)
 Get enabled port handles.
void initializePort (std::string strPort)
 Initializes a port.
void enablePort (std::string strPort, bool bIsDynamic)
 Enables a port, indicating whether it is dynamic or not(static).
std::string getToolID (std::string)
 Get the tool Name/ID.
std::string getFirmwareVersion ()
 Get the firmware version in one huge text string.
void enterTrackingMode ()
 Tells the Aurora/Polaris to begin tracking.
void freeToolPort (std::string strPort)
 Tells the Aurora/Polaris to free a freeable port.
void voidToolTracking (std::string strPort)
 Tells the Aurora/Polaris to not track a tool on a port.
void setUseCRC (bool bEnable)
 Sets all commands to be sent with CRC info.
void setCheckCRC (bool bEnable)
 Sets to check all replies with their CRC info.
void reset ()
 Resets the Aurora/Polaris to it's initial (uninitialized) event.
void changeCommSettings (long nBaudRate, int nDataBits, char cParity, int nStopBits, bool bHardwareHandshake)
 Sets the serial communication settings.
void exitTrackingMode (bool bExpedient)
 Tells the Tracker and the Aurora/Polaris to stop tracking.
void checkProcessorStatus ()
 Checks whether the Aurora/Polaris unit is functional.
void turnOnGPIO (std::string strPort)
 turn on GPIO stuff (currently useless 01/19/2004) (Aurora only)
void turnOffGPIO (std::string strPort)
 turn off GPIO stuff (currently useless 01/19/2004) (Aurora only)
std::string getWirelessPortHandle ()
void sendSROMData (std::string strPort, unsigned char sROM[1024])
void setMultipliers (long rotation, long translation)

Static Public Attributes

static const int TOOL_ADDED = 0
 Indicates that a tool has been added to a port.
static const int TOOL_REMOVED = 1
 Indicates that a tool has been removed from a port.
static const int NORMAL_EXECUTION = 2
 Indicates that no port changes had occured.
static const int INTERFERENCE = 3
 Indicates that there is magnetic or IR interference.
static const std::string m_strScope = "NDICommands: "
 indicates the current class, used for getting information
static const std::string m_strCantInitializeNDI = "Unable to initialize the Aurora/Polaris."
static const std::string m_strUnexpectedReply = "Unexpected reply received from the Aurora/Polaris: command = '%1', params = '%2', reply = '%3'."
static const std::string m_strFailedToReset = "Failed to reset the Aurora/Polaris."
static const std::string m_strFailedToChangeCommSettings = "Failed to change Aurora/Polaris communications settings."
static const std::string m_strCommandFailed = "Aurora/Polaris command failed: command = '%1', params = '%2'."
static const std::string m_strTimeout = "Command timed out."
static const std::string m_strCRCError = "CRC error while communicating with the Aurora/Polaris."
static const std::string m_strInvalidPort = "Invalid port specified."
static const std::string m_strNoToolPluggedIn = "No tool plugged into the specified port."
static const std::string m_strInvalidBaudRate = "Invalid baud rate '%1'."
static const std::string m_strInvalidDataBits = "Invalid data bits '%1'."
static const std::string m_strInvalidParity = "Invalid parity '%1'."
static const std::string m_strInvalidStopBits = "Invalid stop bits '%1'."
static const std::string m_strErrorFromNDI = "Received error code '%1' from the Aurora/Polaris."
static const std::string m_strBadProcessorStatus = "One or more Aurora/Polaris processors failed the status check: code = '%1'."
static const std::string m_strSynchronizationError = "Internal Aurora/Polaris synchronization error. Reset required."
static const std::string m_strInvalidVolume = "Attempt to select invalid Aurora/Polaris volume."
static const std::string m_strTooMuchInterference = "Too much magnetic/IR interference in the vicinity."

Protected Member Functions

void sendGPIO (std::string strOption)
 sends the GPIO message to the Aurora (Aurora only)
const std::string sendCommand (const std::string &strExpectedReply, const std::string &strCode, const std::string &strParams, const int nMaxRetries=5)
 Send a command to the Aurora/Polaris, check that the reply is the one you expected.
const std::string sendCommand (const std::string &strCode, const std::string &strParams, const int nMaxRetries=5)
 Send a command to the Aurora/Polaris, return the reply.
const std::string mapCommParams (long nBaudRate, int nDataBits, char cParity, int nStopBits, bool bHardwareHandshake)
 Maps the serial port information to something that the Aurora/Polaris can parse.
float parseTransform (const std::string strField, int *nOffset, const int nLength, const long nMultiplier) const
 Parse the string Transforms returned in tracking a tool.
int handleTransformStatus (const std::string &strStatus)
 Parse the system tranform status information to see if things happened.
void getSomePortHandles (std::deque< std::string > &occupiedPorts, std::string strOption)
 Get all port handles according to a requirement.
const std::string getReply ()
 Get an expected reply from the Aurora/Polaris unit.
bool headMatches (std::string sOne, std::string sTwo)
 See if the head of one string matches tho other.
bool bitTest (unsigned int nBitField, int nBit) const
 See of the bit information of an integer according to bit position.
void handleNDIError (const std::string strErrorCode)
 Throws translated error messages from the cryptic Aurora/Polaris ASCII errors.
std::string getNextField (const std::string &str, int *nOffset, const std::string &strDelimiter)
 Grabs the fields of the string returned by the Aurora/Polaris.
std::string calcCRC16 (const char *ptr, int nLen)
 Calculates the CRC126 for a certain string.
 NDICommands (const NDICommands &)
 Prevent use of copy constructor.

Protected Attributes

std::map< long, char > mt_BaudMap
SerialPort port
 port structure for the serial port data
int mt_pSerialIO
 The serial port connection.
bool mt_bUseCRC
 Do we generate a CRC for the command?
bool mt_bCheckCRC
 Do we check CRC for replies?
int m_nNumFieldGenerators
 The number of field generators.
int m_nNumMagneticPorts
 The number of passive ports.

Static Protected Attributes

static const std::string mt_strCOMM = "COMM"
static const std::string mt_strDSTART = "DSTART"
static const std::string mt_strDSTOP = "DSTOP"
static const std::string mt_strERROR = "ERROR"
static const std::string mt_strGX
static const std::string mt_strINIT = "INIT"
static const std::string mt_strOKAY = "OKAY"
static const std::string mt_strPENA = "PENA"
static const std::string mt_strPDIS = "PDIS"
static const std::string mt_strPINIT = "PINIT"
static const std::string mt_strPSTAT
static const std::string mt_strPURD = "PURD"
static const std::string mt_strPVCLR
static const std::string mt_strPHRQ = "PHRQ"
static const std::string mt_strPVWR = "PVWR"
static const std::string mt_strRESET = "RESET"
static const std::string mt_strSFLIST = "SFLIST"
static const std::string mt_strSSTAT = "SSTAT"
static const std::string mt_strTSTART = "TSTART"
static const std::string mt_strTSTOP = "TSTOP"
static const std::string mt_strVER = "VER"
static const std::string mt_strVSEL = "VSEL"
static const std::string mt_strBX = "BX"
static const std::string mt_strTX = "TX"
static const std::string mt_strPHINF = "PHINF"
static const std::string mt_strPHSR = "PHSR"
static const std::string mt_strPHF = "PHF"
static const std::string mt_strPSOUT = "PSOUT"
static const unsigned int mt_nCommSleepInMilliseconds = 100
static const int mt_nPINITReadTimeoutInMilliSeconds = 10000
static const std::string mt_strFieldDelimiter = "\r"
static const int mt_nBlockSize = 64
static const int mt_nMarkerInfoLength = 12
static const std::string mt_strDISABLED = "DISABLED"
static const std::string mt_strMISSING = "MISSING"
static const int mt_nRotationLength = 6
static long mt_nRotationMultiplier = 10000L
static const int mt_nTranslationLength = 7
static long mt_nTranslationMultiplier = 100L
static const int mt_nErrorLength = 6
static const long mt_nErrorMultiplier = 10000000L
static const int mt_nFrameNumberLength = 8
static const int mt_nDefaultMaxRetries = 4


Constructor & Destructor Documentation

ot::NDICommands::NDICommands const std::string &  strDevice,
long  nBaudRate,
int  nDataBits,
char  cParity,
int  nStopBits,
bool  bHardwareHandShake
 

Constructor.

Opens communications with the serial port and handles the instantiation of an NDICommands object

Parameters:
specifying the device name of the serial port /dev/ttyS0 for *NIX and COM1 for Windows*

ot::NDICommands::~NDICommands  ) 
 

Destructor.

Handles the distruction of the NDICommands object

ot::NDICommands::NDICommands const NDICommands  )  [protected]
 

Prevent use of copy constructor.


Member Function Documentation

bool ot::NDICommands::bitTest unsigned int  nBitField,
int  nBit
const [protected]
 

See of the bit information of an integer according to bit position.

Test a bit in a integer bitfield and report its boolean value

Parameters:
nBitField The bitfield where we should check the value of a bit
nBit the position of the bit to be checked
Returns:
The boolean value of the bit that was checked

std::string ot::NDICommands::calcCRC16 const char *  ptr,
int  nLen
[protected]
 

Calculates the CRC126 for a certain string.

Calculate the 16-bit CRC for a sequence of characters.

Parameters:
ptr Pointer to a buffer containing the characters.
nLen The length of the buffer.
Returns:
The 16-bit CRC.

void ot::NDICommands::changeCommSettings long  nBaudRate,
int  nDataBits,
char  cParity,
int  nStopBits,
bool  bHardwareHandshake
 

Sets the serial communication settings.

void ot::NDICommands::checkProcessorStatus  ) 
 

Checks whether the Aurora/Polaris unit is functional.

Check the Aurora/Polaris unit processor and make sure it is okay. If not, throw an exception.

void ot::NDICommands::enablePort std::string  strPort,
bool  bIsDynamic
 

Enables a port, indicating whether it is dynamic or not(static).

Enables a certain port

Parameters:
strPort The string refering to a tool port handle
bIsDynamic Is the tool dynamic(true) or static(false)

void ot::NDICommands::enterTrackingMode  ) 
 

Tells the Aurora/Polaris to begin tracking.

Tells the Aurora/Polaris to begin tracking

void ot::NDICommands::exitTrackingMode bool  bExpedient  ) 
 

Tells the Tracker and the Aurora/Polaris to stop tracking.

Tells the Tracker and the Aurora/Polaris to stop tracking. If the system is already having problems do a "special" stop.

Parameters:
Stop the system in a "special" way

void ot::NDICommands::freeToolPort std::string  strPort  ) 
 

Tells the Aurora/Polaris to free a freeable port.

Frees a specific freeable port. The port handle must be retrieved using getFreeablePortHandles getFreeablePortHandles

Parameters:
The string refering to a tool port handle

void ot::NDICommands::getEnabledPortHandles std::deque< std::string > &  enabledPorts  ) 
 

Get enabled port handles.

std::string ot::NDICommands::getFirmwareVersion  ) 
 

Get the firmware version in one huge text string.

Get the the version of the Aurora/Polaris unit firmware

Parameters:
The textual string that represents the firmware version

void ot::NDICommands::getFreeablePortHandles std::deque< std::string > &  freeNeededPorts  ) 
 

Get all port handles that should be freed.

Gets all the freeable port handles on the Aurora/Polaris

Parameters:
An empty Double-Ended Queue that will be filled with port handles

std::string ot::NDICommands::getNextField const std::string &  str,
int *  nOffset,
const std::string &  strDelimiter
[protected]
 

Grabs the fields of the string returned by the Aurora/Polaris.

int ot::NDICommands::getNumberOfMagneticPorts  )  const
 

Indicates the number of magnetic ports.

Gives the number of magnetic ports on the Aurora

Returns:
The number of magnetic ports

void ot::NDICommands::getOccupiedPortHandles std::deque< std::string > &  occupiedPorts  ) 
 

Get all occupied port handles that are not initialized or enabled.

Gets all the occupied port handles on the Aurora that have not been initialized and enabled

Parameters:
An empty Double-Ended Queue that will be filled with port handles

const std::string ot::NDICommands::getReply  )  [protected]
 

Get an expected reply from the Aurora/Polaris unit.

Get a Reply from the Aurora/Polaris when we expect it, do a CRC check and strip off the CRC, finally see if an error had occured and handle it.

Returns:
The reply from the Aurora/Polaris

void ot::NDICommands::getSomePortHandles std::deque< std::string > &  somePorts,
std::string  strOption
[protected]
 

Get all port handles according to a requirement.

Get port handls from the Aurora/Polaris based on a specific option

Parameters:
samePorts An empty Double-Ended Queue that will be filled with port handles
strOption The option to specify what port handles get collected

std::string ot::NDICommands::getToolID std::string  strPort  ) 
 

Get the tool Name/ID.

Get the tool Name/ID by reading a specifc portion of the text string returned by the Aurora/Polaris regarding a certain port

Parameters:
strPort The string refering to a tool port handle
Returns:
The tool Name/ID of the tool on the given port

std::string ot::NDICommands::getWirelessPortHandle  ) 
 

void ot::NDICommands::handleNDIError const std::string  strErrorCode  )  [protected]
 

Throws translated error messages from the cryptic Aurora/Polaris ASCII errors.

Handle errors that sometimes occur in the Aurora/Polaris system by translating the 2 character error messages to an exception that give more meaning

Parameters:
The 2 character Aurora/Polaris error code

int ot::NDICommands::handleTransformStatus const std::string &  strStatus  )  [protected]
 

Parse the system tranform status information to see if things happened.

Reads the system status from tracking and determines what port changes had occured or whether an exception should be thrown

Parameters:
A hex string that represent the system status
Returns:
Integers that represent the system status TOOL_ADDED, TOOL_REMOVED, NORMAL_EXECUTION

bool ot::NDICommands::headMatches std::string  sOne,
std::string  sTwo
[protected]
 

See if the head of one string matches tho other.

See if one string completely matches the head of the other string

Parameters:
A string
Another string
Returns:
Whether one string matches the head of the other

void ot::NDICommands::initialize  ) 
 

Command to initialzed the Aurora/Polaris.

Initilaizes the Aurora/Polaris unit, and determine the specification and version of the the specific system

void ot::NDICommands::initializePort std::string  strPort  ) 
 

Initializes a port.

Initialize a certain port and record its "normal timeout"

Parameters:
The string refering to a tool port handle

const std::string ot::NDICommands::mapCommParams long  nBaudRate,
int  nDataBits,
char  cParity,
int  nStopBits,
bool  bHardwareHandshake
[protected]
 

Maps the serial port information to something that the Aurora/Polaris can parse.

Converts the numerical values of the serial port parameters to a string that can be used by the Aurora/Polaris

Parameters:
nBaudRate The speed of the serial port communication
nDataBits The amount of bits per data packet
cParity The use of parity bit to check consistency
nStopBits The number of stop bits in a packet
bHardwareHandshake Set whether there should be hardware handshaking
Returns:
The string that is formed from the input parameters

float ot::NDICommands::parseTransform const std::string  strField,
int *  nOffset,
const int  nLength,
const long  nMultiplier
const [protected]
 

Parse the string Transforms returned in tracking a tool.

Takes a field and parses one individual value in the transform string

Parameters:
strField The field to be parsed
nOffset The offset of from where the method will start parsing
nLength The length of the element to be parsed
nMultiplier The multplier to return the correct floating point number
Returns:
A floating point value parse from an offset from the field

void ot::NDICommands::reset  ) 
 

Resets the Aurora/Polaris to it's initial (uninitialized) event.

Resets the Aurora/Polaris unit to its uninitialized event. This should be done before one initializes the system.

const std::string ot::NDICommands::sendCommand const std::string &  strCode,
const std::string &  strParams,
const int  nMaxRetries = 5
[protected]
 

Send a command to the Aurora/Polaris, return the reply.

Sends a command to the Aurora/Polaris, calculate the CRC of the command and its parameter and checks the CRC of the reply from the Aurora/Polaris

Parameters:
strCode A string of the command code to the Aurora/Polaris
strParams The parameter to the command
Returns:
The string of the reply

const std::string ot::NDICommands::sendCommand const std::string &  strExpectedReply,
const std::string &  strCode,
const std::string &  strParams,
const int  nMaxRetries = 5
[protected]
 

Send a command to the Aurora/Polaris, check that the reply is the one you expected.

Sends a command to the Aurora/Polaris and check that the expected reply is there

Parameters:
strExpectedReply A string of the expected reply
strCode A string of the command code to the Aurora/Polaris
strParams The parameter to the command
nMaxRetries The amount of times we should resend should the command fail
Returns:
The string of the reply

void ot::NDICommands::sendGPIO std::string  strParam  )  [protected]
 

sends the GPIO message to the Aurora (Aurora only)

Sends the GPIO message to the Aurora (Aurora only)

Parameters:
The string refering to a tool port handle concatanated with a 3 char switch

void ot::NDICommands::sendSROMData std::string  strPort,
unsigned char  sROM[1024]
 

Sends SROM data to the Polaris

Parameters:
strPort A string referring to a port handle The buffer containing the SROM data

void ot::NDICommands::setCheckCRC bool  bEnable  ) 
 

Sets to check all replies with their CRC info.

Set to check all replies from the Aurora/Polaris with CRC info. Ideally all commands from to the Aurora/Polaris unit should be checked with CRC. On a fast computer the cost of the (extremely) slight slow down is neglegible in comparison to errors in passing information.

Parameters:
A boolean indicating the use of CRC or not

void ot::NDICommands::setMultipliers long  rotation,
long  translation
 

Sets rotation and translation multipliers

Parameters:
rotation Rotation multiplier Translation multiplier

void ot::NDICommands::setUseCRC bool  bEnable  ) 
 

Sets all commands to be sent with CRC info.

Sets all commands to be sent with CRC info. Ideally all commands sent to the Aurora/Polaris unit should be checked with CRC. On a fast computer the cost of the (extremely) slight slow down is neglegible in comparison to errors in passing information.

Parameters:
A boolean indicating the use of CRC or not

void ot::NDICommands::trackNodes std::deque< TransformData > &  queTransformData,
int *  nStatus
 

Passes back the transforms and the system status of the Aurora/Polaris.

Get the latest data from each tool that is currently being tracked. Uses the "TransformData" public inner class to store and transfer the information

Parameters:
A Double-Ended Queue that hold as many TransformData objects as there are enabled tools

void ot::NDICommands::turnOffGPIO std::string  strPort  ) 
 

turn off GPIO stuff (currently useless 01/19/2004) (Aurora only)

turn off GPIO stuff (currently useless 01/19/2004) (Aurora only)

Parameters:
The string refering to a tool port handle

void ot::NDICommands::turnOnGPIO std::string  strPort  ) 
 

turn on GPIO stuff (currently useless 01/19/2004) (Aurora only)

turn on GPIO stuff (currently useless 01/19/2004) (Aurora only)

Parameters:
The string refering to a tool port handle

void ot::NDICommands::voidToolTracking std::string  strPort  ) 
 

Tells the Aurora/Polaris to not track a tool on a port.

Tells the Aurora/Polaris to not track a tool on the specified port

Parameters:
The string refering to a tool port handle


Member Data Documentation

const int ot::NDICommands::INTERFERENCE = 3 [static]
 

Indicates that there is magnetic or IR interference.

int ot::NDICommands::m_nNumFieldGenerators [protected]
 

The number of field generators.

int ot::NDICommands::m_nNumMagneticPorts [protected]
 

The number of passive ports.

const std::string ot::NDICommands::m_strBadProcessorStatus = "One or more Aurora/Polaris processors failed the status check: code = '%1'." [static]
 

const std::string ot::NDICommands::m_strCantInitializeNDI = "Unable to initialize the Aurora/Polaris." [static]
 

const std::string ot::NDICommands::m_strCommandFailed = "Aurora/Polaris command failed: command = '%1', params = '%2'." [static]
 

const std::string ot::NDICommands::m_strCRCError = "CRC error while communicating with the Aurora/Polaris." [static]
 

const std::string ot::NDICommands::m_strErrorFromNDI = "Received error code '%1' from the Aurora/Polaris." [static]
 

const std::string ot::NDICommands::m_strFailedToChangeCommSettings = "Failed to change Aurora/Polaris communications settings." [static]
 

const std::string ot::NDICommands::m_strFailedToReset = "Failed to reset the Aurora/Polaris." [static]
 

const std::string ot::NDICommands::m_strInvalidBaudRate = "Invalid baud rate '%1'." [static]
 

const std::string ot::NDICommands::m_strInvalidDataBits = "Invalid data bits '%1'." [static]
 

const std::string ot::NDICommands::m_strInvalidParity = "Invalid parity '%1'." [static]
 

const std::string ot::NDICommands::m_strInvalidPort = "Invalid port specified." [static]
 

const std::string ot::NDICommands::m_strInvalidStopBits = "Invalid stop bits '%1'." [static]
 

const std::string ot::NDICommands::m_strInvalidVolume = "Attempt to select invalid Aurora/Polaris volume." [static]
 

const std::string ot::NDICommands::m_strNoToolPluggedIn = "No tool plugged into the specified port." [static]
 

const std::string ot::NDICommands::m_strScope = "NDICommands: " [static]
 

indicates the current class, used for getting information

const std::string ot::NDICommands::m_strSynchronizationError = "Internal Aurora/Polaris synchronization error. Reset required." [static]
 

const std::string ot::NDICommands::m_strTimeout = "Command timed out." [static]
 

const std::string ot::NDICommands::m_strTooMuchInterference = "Too much magnetic/IR interference in the vicinity." [static]
 

const std::string ot::NDICommands::m_strUnexpectedReply = "Unexpected reply received from the Aurora/Polaris: command = '%1', params = '%2', reply = '%3'." [static]
 

std::map<long, char> ot::NDICommands::mt_BaudMap [protected]
 

bool ot::NDICommands::mt_bCheckCRC [protected]
 

Do we check CRC for replies?

bool ot::NDICommands::mt_bUseCRC [protected]
 

Do we generate a CRC for the command?

const int ot::NDICommands::mt_nBlockSize = 64 [static, protected]
 

const unsigned int ot::NDICommands::mt_nCommSleepInMilliseconds = 100 [static, protected]
 

const int ot::NDICommands::mt_nDefaultMaxRetries = 4 [static, protected]
 

const int ot::NDICommands::mt_nErrorLength = 6 [static, protected]
 

const long ot::NDICommands::mt_nErrorMultiplier = 10000000L [static, protected]
 

const int ot::NDICommands::mt_nFrameNumberLength = 8 [static, protected]
 

const int ot::NDICommands::mt_nMarkerInfoLength = 12 [static, protected]
 

const int ot::NDICommands::mt_nPINITReadTimeoutInMilliSeconds = 10000 [static, protected]
 

const int ot::NDICommands::mt_nRotationLength = 6 [static, protected]
 

long ot::NDICommands::mt_nRotationMultiplier = 10000L [static, protected]
 

const int ot::NDICommands::mt_nTranslationLength = 7 [static, protected]
 

long ot::NDICommands::mt_nTranslationMultiplier = 100L [static, protected]
 

int ot::NDICommands::mt_pSerialIO [protected]
 

The serial port connection.

const std::string ot::NDICommands::mt_strBX = "BX" [static, protected]
 

const std::string ot::NDICommands::mt_strCOMM = "COMM" [static, protected]
 

const std::string ot::NDICommands::mt_strDISABLED = "DISABLED" [static, protected]
 

const std::string ot::NDICommands::mt_strDSTART = "DSTART" [static, protected]
 

const std::string ot::NDICommands::mt_strDSTOP = "DSTOP" [static, protected]
 

const std::string ot::NDICommands::mt_strERROR = "ERROR" [static, protected]
 

const std::string ot::NDICommands::mt_strFieldDelimiter = "\r" [static, protected]
 

const std::string ot::NDICommands::mt_strGX [static, protected]
 

const std::string ot::NDICommands::mt_strINIT = "INIT" [static, protected]
 

const std::string ot::NDICommands::mt_strMISSING = "MISSING" [static, protected]
 

const std::string ot::NDICommands::mt_strOKAY = "OKAY" [static, protected]
 

const std::string ot::NDICommands::mt_strPDIS = "PDIS" [static, protected]
 

const std::string ot::NDICommands::mt_strPENA = "PENA" [static, protected]
 

const std::string ot::NDICommands::mt_strPHF = "PHF" [static, protected]
 

const std::string ot::NDICommands::mt_strPHINF = "PHINF" [static, protected]
 

const std::string ot::NDICommands::mt_strPHRQ = "PHRQ" [static, protected]
 

const std::string ot::NDICommands::mt_strPHSR = "PHSR" [static, protected]
 

const std::string ot::NDICommands::mt_strPINIT = "PINIT" [static, protected]
 

const std::string ot::NDICommands::mt_strPSOUT = "PSOUT" [static, protected]
 

const std::string ot::NDICommands::mt_strPSTAT [static, protected]
 

const std::string ot::NDICommands::mt_strPURD = "PURD" [static, protected]
 

const std::string ot::NDICommands::mt_strPVCLR [static, protected]
 

const std::string ot::NDICommands::mt_strPVWR = "PVWR" [static, protected]
 

const std::string ot::NDICommands::mt_strRESET = "RESET" [static, protected]
 

const std::string ot::NDICommands::mt_strSFLIST = "SFLIST" [static, protected]
 

const std::string ot::NDICommands::mt_strSSTAT = "SSTAT" [static, protected]
 

const std::string ot::NDICommands::mt_strTSTART = "TSTART" [static, protected]
 

const std::string ot::NDICommands::mt_strTSTOP = "TSTOP" [static, protected]
 

const std::string ot::NDICommands::mt_strTX = "TX" [static, protected]
 

const std::string ot::NDICommands::mt_strVER = "VER" [static, protected]
 

const std::string ot::NDICommands::mt_strVSEL = "VSEL" [static, protected]
 

const int ot::NDICommands::NORMAL_EXECUTION = 2 [static]
 

Indicates that no port changes had occured.

SerialPort ot::NDICommands::port [protected]
 

port structure for the serial port data

const int ot::NDICommands::TOOL_ADDED = 0 [static]
 

Indicates that a tool has been added to a port.

const int ot::NDICommands::TOOL_REMOVED = 1 [static]
 

Indicates that a tool has been removed from a port.


The documentation for this class was generated from the following files:
Generated on Wed Feb 28 15:32:26 2007 for NaviTrack by  doxygen 1.4.6