9#ifndef VRPN_TRACKER_ISOTRAK_H
10#define VRPN_TRACKER_ISOTRAK_H
14#include "vrpn_Configure.h"
15#include "vrpn_Shared.h"
16#include "vrpn_Tracker.h"
22const int vrpn_ISOTRAK_MAX_STATIONS = 2;
43 const char *port =
"/dev/ttyS1",
long baud = 19200,
44 int enable_filtering = 1,
int numstations = vrpn_ISOTRAK_MAX_STATIONS,
45 const char *additional_reset_commands = NULL);
57 struct timeval reset_time;
62 char add_reset_cmd[2048];
64 int set_sensor_output_format(
int sensor);
70 void process_binary();
Generic connection class not specific to the transport mechanism.
定义 vrpn_Connection.h:562
定义 vrpn_Tracker_Isotrak.h:24
virtual int get_report(void)
virtual void reset()
Reset the tracker.
int add_stylus_button(const char *button_device_name, int sensor)
Add a stylus (with button) to one of the sensors.
vrpn_Tracker_Isotrak(const char *name, vrpn_Connection *c, const char *port="/dev/ttyS1", long baud=19200, int enable_filtering=1, int numstations=vrpn_ISOTRAK_MAX_STATIONS, const char *additional_reset_commands=NULL)