Go to the documentation of this file.
157 static int calcFrequency(
int baseFrequency, uint16_t skipFactor);
184 #ifndef XDA_PRIVATE_BUILD
200 #include "mtdeviceex.h"
XsFilterProfileArray readFilterProfilesFromDevice() const
Request the filter profiles headers from the hardware device and returns a vector with the found prof...
XsErrorMode errorMode() const
bool setErrorMode(XsErrorMode errorMode)
Set the error mode of the device.
A class that represents a vector of real numbers.
double accelerometerRange() const
virtual bool setLocationId(int id)
Set the location ID of the device.
XsDeviceOptionFlag deviceOptionFlags() const override
Returns the device option flags.
virtual ~MtDevice()
Destroys the MtDevice.
static XsString stripProductCode(const XsString &code)
Helper function to strip the hardware type from the product code.
virtual XsDevice * master() const
Return the master device of this device.
XsFilterProfile m_hardwareFilterProfile
A hardware filter profile.
A list of XsFilterProfile values.
virtual bool storeAlignmentMatrix()
Store the current alignment matrix in the device.
@ XDI_None
Empty datatype.
virtual bool canDoOrientationResetInFirmware(XsResetMethod method)
Checks if this device can do orientation reset in firmware.
uint16_t stringSkipFactor() const override
Returns the skipfactor for string output.
MtDeviceEx(Communicator *comm)
Construct a device using comm for communication.
An abstract internal struct of a device.
XsString productCode() const
Return the product code of the device.
XsSelfTestResult runSelfTest()
Run a self test.
int updateRateForDataIdentifier(XsDataIdentifier dataType) const override
Returns the currently configured update rate for the supplied dataType.
bool setInitialPositionLLA(const XsVector &lla) override
Set the current sensor position.
double headingOffset() const
The heading offset set for this device.
Contains the results of a self-test performed by an Xsens device.
XsVersion hardwareVersion() const
Return the hardware version of the device.
virtual void updateFilterProfiles()
Updates the scenarios.
bool setRs485TransmissionDelay(uint16_t delay)
Set the RS485 acknowledge transmission delay of the device.
bool restoreFactoryDefaults()
Restore to factory default settings.
bool setOnboardFilterProfile(int profileType) override
Sets the filter profile to use for computing orientations on the device.
XsIntArray gnssReceiverSettings() const override
Gets some GNSS receiver settings.
uint32_t syncTicksToUs(uint32_t ticks) const
Convert mt sync ticks to microseconds.
An abstract struct of MT device.
uint16_t stringSamplePeriod() const override
Returns the sample period for string output.
XsFilterProfile onboardFilterProfile() const override
Gets the filter profile in use by the device for computing orientations.
A list of XsOutputConfiguration values.
bool initialize() override
Initialize the Mt device using the supplied filter profiles.
XsDataIdentifier
Defines the data identifiers.
Contains information about an available filter profile.
A base struct for a communication interface.
enum XsBaudRate XsBaudRate
Communication speed.
XsFilterProfileArray availableOnboardFilterProfiles() const override
Return the list of filter profiles available on the device.
uint16_t rs485TransmissionDelay() const
Return the RS485 acknowledge transmission delay of the device.
virtual void fetchAvailableHardwareScenarios()
Fetches available hardware scenarios.
MtDevice(XsDeviceId const &id)
Constructs a standalone MtDevice with device Id id.
void writeDeviceSettingsToFile() override
Write the emts of the device to the open logfile.
XsResetMethod
Orientation reset type.
A class to store version information.
bool setNoRotation(uint16_t duration)
Set the no rotation period to duration.
bool messageLooksSane(const XsMessage &msg) const override
Checks for the sanity of a message.
uint32_t supportedStatusFlags() const override
Returns a bitmask with all the status flags supported by this device.
virtual int getBaseFrequency(XsDataIdentifier dataType=XDI_None) const
Returns the base update rate (Hz) corresponding to the dataType. Returns 0 if no update rate is avail...
XsFilterProfileArray m_hardwareFilterProfiles
A vector of hardware filter profiles.
Structure for storing a single message.
bool requestData()
Request data from the motion tracker.
Contains an Xsens device ID and provides operations for determining the type of device.
MtDeviceEx(XsDevice *master, const XsDeviceId &childDeviceId)
Construct a device with device id childDeviceId for master master.
virtual bool scheduleOrientationReset(XsResetMethod method)
uint32_t usToSyncTicks(uint32_t us) const
Convert microseconds to mt sync ticks.
bool isMotionTracker() const override
bool setGnssReceiverSettings(const XsIntArray &gnssReceiverSettings) override
Sets some GNSS receiver settings.
XsErrorMode
Error modes for use in XsDevice::setErrorMode.
uint16_t stringOutputType() const override
Returns the string output type.
double gyroscopeRange() const
XsVector initialPositionLLA() const override
XsUbloxGnssPlatform ubloxGnssPlatform() const override
Returns the device GNSS platform for u-blox GNSS receivers.
A 0-terminated managed string of characters.
static int calcFrequency(int baseFrequency, uint16_t skipFactor)
Calculates the frequency.
int locationId() const
Get the location ID of the device.
bool reinitialize()
Reinitialize the XsDevice.
XsOutputConfigurationArray outputConfiguration() const override
Returns the currently configured output of the device.
bool resetLogFileReadPosition() override
Set the read position of the open log file to the start of the file.
XsDeviceOptionFlag
Used to enable or disable some device options.
bool setUbloxGnssPlatform(XsUbloxGnssPlatform ubloxGnssPlatform) override
Set the device GNSS platform for u-blox GNSS receivers.
XsBaudRate serialBaudRate() const override
The baud rate configured for cabled connection.
bool storeFilterState() override
Store orientation filter state in the device.