vrpn 07.35
Virtual Reality Peripheral Network
Loading...
Searching...
No Matches
vrpn_Poser_Tek4662.C File Reference
#include <math.h>
#include <stdio.h>
#include <string.h>
#include "vrpn_BaseClass.h"
#include "vrpn_Connection.h"
#include "vrpn_Shared.h"
#include "vrpn_Types.h"
#include "vrpn_Poser_Tek4662.h"
Include dependency graph for vrpn_Poser_Tek4662.C:

Go to the source code of this file.

Variables

const int vrpn_Poser_Tek4662_FAIL = -1
 
const int vrpn_Poser_Tek4662_RESETTING = 0
 
const int vrpn_Poser_Tek4662_SYNCING = 1
 
const int vrpn_Poser_Tek4662_RUNNING = 2
 
const double COUNTS_PER_METER = 1.0 / ( (15.0 / 4095.0) * ( 0.0254 / 1.0 ) )
 
const double MAX_X = 0.381
 
const double MAX_Y = 0.254
 
const double VELOCITY = (1/0.06144) * (1/0.00254)
 
const unsigned char ESC = 27
 
const unsigned char DEVICE = 'A'
 
const unsigned char GS = 29
 
const unsigned char ZERO = 0
 
const unsigned char ZEROES [] = "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
 
const unsigned char PLOTTER_ON [] = { ESC, DEVICE, 'E', ZERO }
 
const unsigned char RESET [] = { ESC, DEVICE, 'N', ZERO }
 
const unsigned char GIN [] = { ESC, DEVICE, 'M', ZERO }
 
const unsigned char MOVE_TEMPLATE [] = { GS, 0x20, 0x60, 0x60, 0x20, 0x40 }
 
const int DATA_RECORD_LENGTH = 7
 
const unsigned LOWFIVEBITS = 0x001f
 
const unsigned LOWTWOBITS = 0x0003
 

Variable Documentation

◆ COUNTS_PER_METER

const double COUNTS_PER_METER = 1.0 / ( (15.0 / 4095.0) * ( 0.0254 / 1.0 ) )

Definition at line 28 of file vrpn_Poser_Tek4662.C.

Referenced by vrpn_Poser_Tek4662::run().

◆ DATA_RECORD_LENGTH

const int DATA_RECORD_LENGTH = 7

Definition at line 44 of file vrpn_Poser_Tek4662.C.

◆ DEVICE

const unsigned char DEVICE = 'A'

Definition at line 36 of file vrpn_Poser_Tek4662.C.

◆ ESC

const unsigned char ESC = 27

Definition at line 34 of file vrpn_Poser_Tek4662.C.

◆ GIN

const unsigned char GIN[] = { ESC, DEVICE, 'M', ZERO }

Definition at line 42 of file vrpn_Poser_Tek4662.C.

Referenced by vrpn_Poser_Tek4662::reset(), and vrpn_Poser_Tek4662::run().

◆ GS

const unsigned char GS = 29

Definition at line 37 of file vrpn_Poser_Tek4662.C.

◆ LOWFIVEBITS

const unsigned LOWFIVEBITS = 0x001f

Definition at line 49 of file vrpn_Poser_Tek4662.C.

Referenced by vrpn_Poser_Tek4662::run().

◆ LOWTWOBITS

const unsigned LOWTWOBITS = 0x0003

Definition at line 50 of file vrpn_Poser_Tek4662.C.

Referenced by vrpn_Poser_Tek4662::run().

◆ MAX_X

const double MAX_X = 0.381

Definition at line 29 of file vrpn_Poser_Tek4662.C.

Referenced by vrpn_Poser_Tek4662::vrpn_Poser_Tek4662().

◆ MAX_Y

const double MAX_Y = 0.254

Definition at line 30 of file vrpn_Poser_Tek4662.C.

Referenced by vrpn_Poser_Tek4662::vrpn_Poser_Tek4662().

◆ MOVE_TEMPLATE

const unsigned char MOVE_TEMPLATE[] = { GS, 0x20, 0x60, 0x60, 0x20, 0x40 }

Definition at line 43 of file vrpn_Poser_Tek4662.C.

Referenced by vrpn_Poser_Tek4662::run().

◆ PLOTTER_ON

const unsigned char PLOTTER_ON[] = { ESC, DEVICE, 'E', ZERO }

Definition at line 40 of file vrpn_Poser_Tek4662.C.

Referenced by vrpn_Poser_Tek4662::reset().

◆ RESET

const unsigned char RESET[] = { ESC, DEVICE, 'N', ZERO }

Definition at line 41 of file vrpn_Poser_Tek4662.C.

Referenced by vrpn_Poser_Tek4662::reset().

◆ VELOCITY

const double VELOCITY = (1/0.06144) * (1/0.00254)

Definition at line 31 of file vrpn_Poser_Tek4662.C.

Referenced by vrpn_Poser_Tek4662::vrpn_Poser_Tek4662().

◆ vrpn_Poser_Tek4662_FAIL

const int vrpn_Poser_Tek4662_FAIL = -1

◆ vrpn_Poser_Tek4662_RESETTING

const int vrpn_Poser_Tek4662_RESETTING = 0

◆ vrpn_Poser_Tek4662_RUNNING

const int vrpn_Poser_Tek4662_RUNNING = 2

Definition at line 25 of file vrpn_Poser_Tek4662.C.

Referenced by vrpn_Poser_Tek4662::mainloop(), and vrpn_Poser_Tek4662::run().

◆ vrpn_Poser_Tek4662_SYNCING

const int vrpn_Poser_Tek4662_SYNCING = 1

◆ ZERO

const unsigned char ZERO = 0

Definition at line 38 of file vrpn_Poser_Tek4662.C.

◆ ZEROES

const unsigned char ZEROES[] = "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"

Definition at line 39 of file vrpn_Poser_Tek4662.C.

Referenced by vrpn_Poser_Tek4662::reset().