17 case XRV_OK:
return "No error";
18 case XRV_NOBUS:
return "Bus has no power";
23 case XRV_INITBUSFAIL2:
return "An incorrect answer received after WaitForSetBID";
24 case XRV_INITBUSFAIL3:
return "After four bus-scans still undetected Motion Trackers";
25 case XRV_SETBIDFAIL1:
return "No reply to SetBID message during SetBID procedure";
27 case XRV_MEASUREMENTFAIL1:
return "Timer overflow - period too short to collect all data from Motion Trackers";
29 case XRV_MEASUREMENTFAIL3:
return "Total bytes of data of Motion Trackers incl sample counter exceeds 255 bytes";
30 case XRV_MEASUREMENTFAIL4:
return "Timer overflow during measurement: MT does not respond within measurement period. Increase period (lower sample frequency)";
31 case XRV_MEASUREMENTFAIL5:
return "Timer overflow during measurement: MT response was not received within measurement period. Increase period (lower sample frequency) or use fewer Motion Trackers";
41 case XRV_TIMEOUT:
return "Timeout occurred, some data received";
45 case XRV_NOTFOUND:
return "Requested item was not found";
56 case XRV_READONLY:
return "Tried to change a read-only value";
57 case XRV_NULLPTR:
return "Invalid NULL pointer supplied";
59 case XRV_BUSY:
return "Busy processing, try again later";
62 case XRV_READINITFAILED:
return "Failure during reading of settings. File may be old or corrupt.";
63 case XRV_NOXMFOUND:
return "Could not find any Moven-compatible hardware, check connections and Xbus Master LEDs";
64 case XRV_ONLYONEXMFOUND:
return "Found only one responding Xbus Master, check connections and Xbus Master LEDs";
66 case XRV_MTLOCATIONINVALID:
return "One or more sensors are not where they were expected, check locations";
68 case XRV_INITFUSIONFAILED:
return "Failure during initialization of Fusion Engine. Source file may be old or corrupt.";
69 case XRV_OTHER:
return "Something else was received than was requested";
76 case XRV_ALREADYDONE:
return "This once only operation has already been performed";
80 case XRV_SYNC_NO_SYNC:
return "A device was detected that was neither master nor slave";
82 case XRV_SYNC_DATA_MISSING:
return "A device is not sending enough data, check synchronization cables";
84 case XRV_VERSION_TOO_LOW:
return "The version of the object is too low for the requested operation";
85 case XRV_VERSION_PROBLEM:
return "The object has an unrecognized version, so it's not safe to perform the operation";
87 default:
return "!!Undefined Result Value!!";
const char * xsensResultText(const XsensResultValue result)
XsensResultValue
Xsens return values.
@ XRV_NODATA
No data is available.
@ XRV_CONFIGCHECKFAIL
The in-config check of the device failed.
@ XRV_PORTNOTFOUND
A required port could not be found.
@ XRV_BUSY
Busy processing, try again later.
@ XRV_ALREADYOPEN
An I/O device is already opened with this object.
@ XRV_SYNC_NO_MASTER
No master detected.
@ XRV_CHECKSUMFAULT
Checksum fault occured.
@ XRV_INSUFFICIENTDATA
Insufficient data was supplied to a function.
@ XRV_INPUTCANNOTBEOPENED
The specified i/o device can not be opened.
@ XRV_MEASUREMENTFAIL8
TX PC Buffer overflow, cannot fit full message.
@ XRV_VERSION_PROBLEM
The object has an unrecognized version, so it's not safe to perform the operation.
@ XRV_NOPORTOPEN
No serial port opened for reading/writing.
@ XRV_DATACORRUPT
A trusted data stream proves to contain corrupted data.
@ XRV_INVALIDMSG
The message is invalid or not implemented.
@ XRV_BUSNOTREADY
InitBus and/or SetBID are not issued.
@ XRV_SETBIDFAIL1
No reply to SetBID message during SetBID procedure.
@ XRV_ENDOFFILE
End of file is reached.
@ XRV_INVALIDINSTANCE
Invalid instance called.
@ XRV_NOFILEOPEN
No file opened for reading/writing.
@ XRV_NOFILEORPORTOPEN
No file or serial port opened for reading/writing.
@ XRV_OUTPUTCANNOTBEOPENED
The specified i/o device can not be opened.
@ XRV_VERSION_TOO_LOW
The version of the object is too low for the requested operation.
@ XRV_INSUFFICIENTSPACE
Insufficient buffer space available.
@ XRV_TIMEROVERFLOW
Timer overflows during measurement.
@ XRV_INVALIDPERIOD
Period sent is invalid.
@ XRV_NOTFOUND
The requested item was not found.
@ XRV_INITFUSIONFAILED
Failure during initialization of Fusion Engine.
@ XRV_SYNC_SECOND_MASTER
More than one master was detected.
@ XRV_INVALIDOPERATION
Operation is invalid at this point.
@ XRV_SETBIDFAIL2
Other than SetBIDAck received.
@ XRV_COULDNOTREADSETTINGS
A required settings file could not be opened or is missing some data.
@ XRV_INITBUSFAIL3
After four bus-scans still undetected Motion Trackers.
@ XRV_ERROR
A generic error occurred.
@ XRV_OUTOFMEMORY
No internal memory available.
@ XRV_MEASUREMENTFAIL1
Timer overflow - period too short to collect all data from Motion Trackers.
@ XRV_TIMEOUT
A timeout occurred.
@ XRV_MEASUREMENTFAIL2
Motion Tracker responds with other than SlaveData message.
@ XRV_MEASUREMENTFAIL3
Total bytes of data of Motion Trackers including sample counter exceeds 255 bytes.
@ XRV_NOBUS
No bus communication possible.
@ XRV_MEASUREMENTFAIL6
No correct response from Motion Tracker during measurement.
@ XRV_OK
Operation was performed successfully.
@ XRV_MEASUREMENTFAIL5
Timer overflows during measurement.
@ XRV_INITPORTFAILED
The low-level port handler failed to initialize.
@ XRV_NOXMFOUND
Could not find any Moven-compatible hardware.
@ XRV_MTLOCATIONINVALID
One or more sensors are not where they were expected.
@ XRV_INITBUSFAIL1
A slave did not respond to WaitForSetBID.
@ XRV_SYNC_SINGLE_SLAVE
The single connected device is configured as a slave.
@ XRV_INVALIDPARAM
An invalid parameter is supplied.
@ XRV_READINITFAILED
Failure during read of settings.
@ XRV_CALIBRATIONFAILED
A calibration routine failed.
@ XRV_NOTIMPLEMENTED
Operation not implemented in this version (yet)
@ XRV_READONLY
Tried to change a read-only value.
@ XRV_SYNC_NO_SYNC
A device was detected that was neither master nor slave.
@ XRV_UNEXPECTEDMSG
Unexpected message received (e.g. no acknowledge message received)
@ XRV_ONLYONEXMFOUND
Found only one responding Xbus Master.
@ XRV_SYNC_DATA_MISSING
A device is not sending enough data.
@ XRV_NULLPTR
Tried to supply a NULL value where it is not allowed.
@ XRV_INSUFFICIENTMTS
Not enough sensors were found.
@ XRV_OTHER
Something else was received than was requested.
@ XRV_BAUDRATEINVALID
Baud rate does not comply with valid range.
@ XRV_INVALIDID
Invalid id supplied.
@ XRV_MEASUREMENTFAIL7
TX PC Buffer is full.
@ XRV_MTCOUNTZERO
No sensors found.
@ XRV_ALREADYDONE
The operation is once only and has already been performed.
@ XRV_INITBUSFAIL2
An incorrect answer received after WaitForSetBID.
@ XRV_TIMEOUTNODATA
Operation aborted because of no data read.
@ XRV_MEASUREMENTFAIL4
Timer overflows during measurement.