12 #ifndef _XSENS_STD_H_2006_09_11 13 # define _XSENS_STD_H_2006_09_11 17 #if defined(_WIN32) && !defined(_WIN32_WINNT) 18 # define _WIN32_WINNT 0x0502 30 typedef enum _XsensResultValue_ {
116 #define DELNUL(ptr) { delete ptr; ptr = NULL; } 118 #define CHKDELNUL(ptr) { if (ptr != NULL) { delete ptr; ptr = NULL; } } 120 #define LSTDELNUL(ptr) { delete[] ptr; ptr = NULL; } 122 #define LSTCHKDELNUL(ptr) { if (ptr != NULL) { delete[] ptr; ptr = NULL; } } 125 #define FREENUL(ptr) { free(ptr); ptr = NULL; } 127 #define CHKFREENUL(ptr) { if (ptr != NULL) { free(ptr); ptr = NULL; } } 139 #if !defined(_CMT_DLL_IMPORT) && !defined(_XME_DLL_IMPORT) 145 #define XSENS_LABEL_SIZE 64 146 #define XSENS_SHORT_STRING_SIZE 256
147 #define XSENS_LONG_STRING_SIZE 16384
151 #endif // _XSENS_STD_H_2006_09_11 Operation was performed successfully.
A calibration routine failed.
A slave did not respond to WaitForSetBID.
No bus communication possible.
Found only one responding Xbus Master.
Other than SetBIDAck received.
TX PC Buffer overflow, cannot fit full message.
Operation aborted because of no data read.
One or more sensors are not where they were expected.
Operation not implemented in this version (yet)
No reply to SetBID message during SetBID procedure.
A device is not sending enough data.
The specified i/o device can not be opened.
The specified i/o device can not be opened.
After four bus-scans still undetected Motion Trackers.
An invalid parameter is supplied.
A required port could not be found.
Operation is invalid at this point.
Could not find any Moven-compatible hardware.
Timer overflows during measurement.
No internal memory available.
Insufficient buffer space available.
An incorrect answer received after WaitForSetBID.
InitBus and/or SetBID are not issued.
Tried to change a read-only value.
A required settings file could not be opened or is missing some data.
The operation is once only and has already been performed.
No serial port opened for reading/writing.
Baud rate does not comply with valid range.
A trusted data stream proves to contain corrupted data.
XsensResultValue
Xsens return values.
Motion Tracker responds with other than SlaveData message.
The requested item was not found.
Failure during read of settings.
The in-config check of the device failed.
The single connected device is configured as a slave.
More than one master was detected.
Insufficient data was supplied to a function.
A device was detected that was neither master nor slave.
The object has an unrecognized version, so it's not safe to perform the operation.
Failure during initialization of Fusion Engine.
Timer overflows during measurement.
The low-level port handler failed to initialize.
An invalid parameter is supplied.
Timer overflows during measurement.
Tried to supply a NULL value where it is not allowed.
Something else was received than was requested.
No correct response from Motion Tracker during measurement.
A generic error occurred.
const char * xsensResultText(const XsensResultValue result)
The version of the object is too low for the requested operation.
Not enough sensors were found.
Timer overflow - period too short to collect all data from Motion Trackers.
Unexpected message received (e.g. no acknowledge message received)
An I/O device is already opened with this object.
Busy processing, try again later.
No file opened for reading/writing.
Total bytes of data of Motion Trackers including sample counter exceeds 255 bytes.
The message is invalid or not implemented.
No file or serial port opened for reading/writing.