vrecko
virtual reality framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
LHeadTracker.h File Reference
#include <vrecko/IOPins.h>
#include <vrecko/Device.h>
#include <osg/Vec3>
#include <osg/Vec4>
#include <osg/Matrix>
#include <osg/Quat>
#include <setjmp.h>

Go to the source code of this file.

Classes

class  vreckoDP_base::LHeadTracker
 

Namespaces

namespace  vreckoDP_base
 

Macros

#define HTI_CONNECTBYTE   (char)0x87 /* Open the connection */
 
#define HTI_CLOSEBYTE   (char)0x88 /* Close the connection */
 
#define HTD_COMMAND_LEN   2
 
#define HTD_CMD_RESET   "*R"
 
#define HTD_CMD_DIAG   "*\005"
 
#define HTD_CMD_REPORT   "*d"
 
#define HTD_CMD_DEMAND   "*D"
 
#define HTD_PACKET_LEN   16
 
#define HTI_MAX_NUM   1048575 /* max. returned positon */
 
#define HTI_2MAX_NUM   2097150 /* 2*HTI_MAX_NUM */
 
#define HTI_MIN_POS_DIFF   20 /* min. position difference */
 
#define HTI_MIN_ROT_DIFF   80 /* min. rotation difference */
 
#define HTI_POS_C   0.0005
 
#define HTI_ROT_C   40.0
 
#define SLAVE_MODE   1
 
#define MASTER_MODE   2
 
#define CMD_TYPE_SLAVE_XMITTER_TYPE   1
 
#define CMD_TYPE_FILTER_POINT   7
 
#define CMD_TYPE_RCVR_DIMENSIONS   8
 
#define htd_flush(port_fd)   ioctl( port_fd, TCFLSH, 2 )
 
#define if_err(param)   if( ( param ) < 0 )
 

Enumerations

enum  vreckoDP_base::htd_receiver_pos { vreckoDP_base::HTD_REC_POS_OUT = 0, vreckoDP_base::HTD_REC_POS_ACT, vreckoDP_base::HTD_REC_POS_FRI }
 
enum  vreckoDP_base::rotation_type { vreckoDP_base::QUATERNION = 0, vreckoDP_base::MATRIX, vreckoDP_base::ANGLES }
 

Macro Definition Documentation

#define CMD_TYPE_FILTER_POINT   7
#define CMD_TYPE_RCVR_DIMENSIONS   8
#define CMD_TYPE_SLAVE_XMITTER_TYPE   1
#define HTD_CMD_DEMAND   "*D"
#define HTD_CMD_DIAG   "*\005"
#define HTD_CMD_REPORT   "*d"
#define HTD_CMD_RESET   "*R"
#define HTD_COMMAND_LEN   2
#define htd_flush (   port_fd)    ioctl( port_fd, TCFLSH, 2 )
#define HTD_PACKET_LEN   16
#define HTI_2MAX_NUM   2097150 /* 2*HTI_MAX_NUM */
#define HTI_CLOSEBYTE   (char)0x88 /* Close the connection */
#define HTI_CONNECTBYTE   (char)0x87 /* Open the connection */
#define HTI_MAX_NUM   1048575 /* max. returned positon */
#define HTI_MIN_POS_DIFF   20 /* min. position difference */
#define HTI_MIN_ROT_DIFF   80 /* min. rotation difference */
#define HTI_POS_C   0.0005
#define HTI_ROT_C   40.0
#define if_err (   param)    if( ( param ) < 0 )
#define MASTER_MODE   2
#define SLAVE_MODE   1