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);
56 int add_fastrak_stylus_button(
const char *button_device_name,
57 int sensor,
int numbuttons = 1);
61 int add_is900_button(
const char *button_device_name,
int sensor,
int numbuttons = 5);
67 int add_is900_analog(
const char *analog_device_name,
int sensor,
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);
76 struct timeval reset_time;
79 char add_reset_cmd[2048];
89 struct timeval is900_zerotime;
95 int set_sensor_output_format(
int sensor);
98 int report_length(
int sensor);
Analog server that can scale and clip its range to -1..1.
Generic connection class not specific to the transport mechanism.
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.
const int vrpn_FASTRAK_MAX_STATIONS