8#ifndef VRPN_TRACKER_LIBERTY_H
9#define VRPN_TRACKER_LIBERTY_H
43 const char *port =
"/dev/ttyS0",
long baud = 115200,
45 const char *additional_reset_commands = NULL,
int whoamilen = 195);
51 int sensor,
int numbuttons = 1);
Generic connection class not specific to the transport mechanism.
vrpn_Tracker_Liberty(const char *name, vrpn_Connection *c, const char *port="/dev/ttyS0", long baud=115200, int enable_filtering=1, int numstations=vrpn_LIBERTY_MAX_STATIONS, const char *additional_reset_commands=NULL, int whoamilen=195)
The constructor is given the name of the tracker (the name of the sender it should use),...
vrpn_Button_Server * stylus_buttons[vrpn_LIBERTY_MAX_STATIONS]
struct timeval liberty_zerotime
int report_length(int sensor)
Augments the basic Liberty report length.
struct timeval reset_time
int add_stylus_button(const char *button_device_name, int sensor, int numbuttons=1)
Add a stylus (with button) to one of the sensors.
int set_sensor_output_format(int sensor)
Augments the basic Liberty format.
struct timeval liberty_timestamp
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)
const int vrpn_LIBERTY_MAX_STATIONS
const int vrpn_LIBERTY_MAX_WHOAMI_LEN
class VRPN_API vrpn_Connection
class VRPN_API vrpn_Button_Server