Public Types | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
MyXda Class Reference

#include <myxda.h>

List of all members.

Public Types

enum  DisplayMode {
  DM_None, DM_OrientationEuler, DM_OrientationQuaternion, DM_Sdi,
  DM_OrientationMatrix
}

Public Member Functions

int getUserUpdateRate ()
 MyXda ()
 MyXda class implementation The MyXda class is derived from the XsControl class and indirectly from the CmtCallback class. It is thereby able to overload the callback functions defined in CmtCallback.
void openPorts ()
 Opens all COM ports with either a station or an MTw conneted.
void setDisplayMode (DisplayMode displayMode)
 Sets the display mode of incoming data.
void setUpdateRate (int updateRate)
XsControl * xsControl () const
virtual ~MyXda ()
 destructor, unregisters the callbacks and cleans up the XsControl object

Protected Member Functions

virtual void onDataAvailable (XsDevice *, const XsDataPacket *packet)
 Callback function called if there is new data available from the device.

Private Member Functions

void clearMeasurementScreen ()
 Repaints the screen to an empty measurement screen.
void printDisplayMode ()
 Prints the current display mode on the screen.

Private Attributes

int m_connectCount
std::map< uint32_t, int > m_connectedDevices
DisplayMode m_displayMode
DisplayMode m_previousDisplayMode
volatile bool m_stationReady
XsControl * m_xsControl

Detailed Description

Definition at line 23 of file myxda.h.


Member Enumeration Documentation

Enumerator:
DM_None 
DM_OrientationEuler 
DM_OrientationQuaternion 
DM_Sdi 
DM_OrientationMatrix 

Definition at line 34 of file myxda.h.


Constructor & Destructor Documentation

MyXda class implementation The MyXda class is derived from the XsControl class and indirectly from the CmtCallback class. It is thereby able to overload the callback functions defined in CmtCallback.

constructor, creates the XsControl object and registers the callbacks

Definition at line 32 of file myxda.cpp.

MyXda::~MyXda ( ) [virtual]

destructor, unregisters the callbacks and cleans up the XsControl object

Definition at line 42 of file myxda.cpp.


Member Function Documentation

void MyXda::clearMeasurementScreen ( ) [private]

Repaints the screen to an empty measurement screen.

Definition at line 62 of file myxda.cpp.

void MyXda::onDataAvailable ( XsDevice *  ,
const XsDataPacket *  packet 
) [protected, virtual]

Callback function called if there is new data available from the device.

Parameters:
packet: Packet with filter output

Definition at line 110 of file myxda.cpp.

void MyXda::openPorts ( )

Opens all COM ports with either a station or an MTw conneted.

Definition at line 50 of file myxda.cpp.

void MyXda::printDisplayMode ( ) [private]

Prints the current display mode on the screen.

Definition at line 79 of file myxda.cpp.

Sets the display mode of incoming data.

Parameters:
displayMode: The display mode to set

Definition at line 72 of file myxda.cpp.

void MyXda::setUpdateRate ( int  updateRate)
XsControl* MyXda::xsControl ( ) const [inline]

Definition at line 44 of file myxda.h.


Member Data Documentation

int MyXda::m_connectCount [private]

Definition at line 54 of file myxda.h.

std::map<uint32_t, int> MyXda::m_connectedDevices [private]

Definition at line 55 of file myxda.h.

Definition at line 57 of file myxda.h.

Definition at line 58 of file myxda.h.

volatile bool MyXda::m_stationReady [private]

Definition at line 56 of file myxda.h.

XsControl* MyXda::m_xsControl [private]

Definition at line 53 of file myxda.h.


The documentation for this class was generated from the following files:


receive_xsens
Author(s): Ji Zhang, Silvio Maeta
autogenerated on Tue Sep 8 2015 00:25:08