8#ifndef VRPN_TRACKER_LIBERTY_H
9#define VRPN_TRACKER_LIBERTY_H
13#include "vrpn_Configure.h"
14#include "vrpn_Shared.h"
15#include "vrpn_Tracker.h"
16#include "vrpn_Types.h"
21const int vrpn_LIBERTY_MAX_STATIONS = 8;
22const int vrpn_LIBERTY_MAX_WHOAMI_LEN = 1024;
43 const char *port =
"/dev/ttyS0",
long baud = 115200,
44 int enable_filtering = 1,
int numstations = vrpn_LIBERTY_MAX_STATIONS,
45 const char *additional_reset_commands = NULL,
int whoamilen = 195);
51 int sensor,
int numbuttons = 1);
57 struct timeval reset_time;
61 char add_reset_cmd[2048];
63 int got_single_sync_char;
65 struct timeval liberty_zerotime;
66 struct timeval liberty_timestamp;
67 vrpn_uint32 REPORT_LEN;
Generic connection class not specific to the transport mechanism.
定义 vrpn_Connection.h:562
定义 vrpn_Tracker_Liberty.h:24
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)
int add_stylus_button(const char *button_device_name, int sensor, int numbuttons=1)
Add a stylus (with button) to one of the sensors.
virtual int get_report(void)
int set_sensor_output_format(int sensor)
Augments the basic Liberty format
virtual void reset()
Reset the tracker.
int report_length(int sensor)
Augments the basic Liberty report length