13#ifndef VRPN_TRACKER_FASTRAK_H
14#define VRPN_TRACKER_FASTRAK_H
48 const char *port =
"/dev/ttyS1",
long baud = 19200,
50 const char *additional_reset_commands = NULL,
51 int is900_timestamps = 0);
57 int sensor,
int numbuttons = 1);
61 int add_is900_button(
const char *button_device_name,
int sensor,
int numbuttons = 5);
68 double c0Min = -1,
double c0Low = 0,
double c0Hi = 0,
double c0Max = 1,
69 double c1Min = -1,
double c1Low = 0,
double c1Hi = 0,
double c1Max = 1);
Analog server that can scale and clip its range to -1..1.
Generic connection class not specific to the transport mechanism.
int set_sensor_output_format(int sensor)
Augments the basic Fastrak format to include IS900 features if needed.
struct timeval reset_time
struct timeval is900_zerotime
int report_length(int sensor)
Augments the basic Fastrak report length to include IS900 features if needed.
int add_fastrak_stylus_button(const char *button_device_name, int sensor, int numbuttons=1)
vrpn_Clipping_Analog_Server * is900_analogs[vrpn_FASTRAK_MAX_STATIONS]
vrpn_Button_Server * is900_buttons[vrpn_FASTRAK_MAX_STATIONS]
int add_is900_analog(const char *analog_device_name, int sensor, double c0Min=-1, double c0Low=0, double c0Hi=0, double c0Max=1, double c1Min=-1, double c1Low=0, double c1Hi=0, double c1Max=1)
Add the analog part of an IS900 joystick device to one of the sensors This allows configuration of an...
vrpn_Tracker_Fastrak(const char *name, vrpn_Connection *c, const char *port="/dev/ttyS1", long baud=19200, int enable_filtering=1, int numstations=vrpn_FASTRAK_MAX_STATIONS, const char *additional_reset_commands=NULL, int is900_timestamps=0)
The constructor is given the name of the tracker (the name of the sender it should use),...
int add_is900_button(const char *button_device_name, int sensor, int numbuttons=5)
Add an IS900 button device to one of the sensors This allows configuration of an InterSense IS-900.
virtual void reset(void)=0
Reset the tracker.
virtual int get_report(void)=0
Gets a report if one is available, returns 0 if not, 1 if complete report.
vrpn_Tracker_Serial(const char *name, vrpn_Connection *c, const char *port="/dev/ttyS1", long baud=38400)
class VRPN_API vrpn_Clipping_Analog_Server
const int vrpn_FASTRAK_MAX_STATIONS
class VRPN_API vrpn_Connection
class VRPN_API vrpn_Button_Server