1#ifndef __TRACKER_ISENSE_H
2#define __TRACKER_ISENSE_H
4#include "vrpn_Configure.h"
6#ifdef VRPN_INCLUDE_INTERSENSE
20#include "vrpn_Tracker.h"
21#include "vrpn_Button.h"
22#include "vrpn_Analog.h"
26class VRPN_API vrpn_Tracker_InterSense :
public vrpn_Tracker {
30 vrpn_Tracker_InterSense(
const char *name,
32 int commPort,
const char *additional_reset_commands = NULL,
33 int is900_timestamps = 0,
int reset_at_start=0);
35 ~vrpn_Tracker_InterSense();
39 int add_is900_button(
const char *button_device_name,
int sensor,
int numbuttons = 5);
45 int add_is900_analog(
const char *analog_device_name,
int sensor,
46 double c0Min = -1,
double c0Low = 0,
double c0Hi = 0,
double c0Max = 1,
47 double c1Min = -1,
double c1Low = 0,
double c1Hi = 0,
double c1Max = 1);
58 virtual void get_report(
void);
60 virtual void send_report(
void);
62 char add_reset_cmd[2048];
65 ISD_TRACKER_HANDLE m_Handle;
66 ISD_TRACKER_INFO_TYPE m_TrackerInfo;
67 ISD_STATION_INFO_TYPE m_StationInfo[ISD_MAX_STATIONS];
69 int do_is900_timestamps;
72 struct timeval is900_zerotime;
77 int set_sensor_output_format(
int sensor);
79 void getTrackerInfo(
char *msg,
size_t len);
virtual void mainloop()=0
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