13#ifndef VRPN_TRACKER_FASTRAK_H
14#define VRPN_TRACKER_FASTRAK_H
18#include "vrpn_Configure.h"
19#include "vrpn_Shared.h"
20#include "vrpn_Tracker.h"
21#include "vrpn_Types.h"
27const int vrpn_FASTRAK_MAX_STATIONS = 4;
48 const char *port =
"/dev/ttyS1",
long baud = 19200,
49 int enable_filtering = 1,
int numstations = vrpn_FASTRAK_MAX_STATIONS,
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);
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];
88 int do_is900_timestamps;
89 struct timeval is900_zerotime;
92 vrpn_uint32 REPORT_LEN;
Analog server that can scale and clip its range to -1..1.
定义 vrpn_Analog.h:130
Generic connection class not specific to the transport mechanism.
定义 vrpn_Connection.h:562
定义 vrpn_Tracker_Fastrak.h:29
virtual int get_report(void)
int set_sensor_output_format(int sensor)
Augments the basic Fastrak format to include IS900 features if needed
virtual void reset()
Reset the tracker.
int report_length(int sensor)
Augments the basic Fastrak report length to include IS900 features if needed
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)
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)
int add_is900_button(const char *button_device_name, int sensor, int numbuttons=5)