vrpn
07.33
Virtual Reality Peripheral Network
vrpn_Wanda.h
Go to the documentation of this file.
1
#ifndef VRPN_WANDA
2
#define VRPN_WANDA
3
#include "
vrpn_Analog.h
"
// for vrpn_CHANNEL_MAX, etc
4
#include "
vrpn_Button.h
"
// for vrpn_Button_Filter
5
#include "
vrpn_Configure.h
"
// for VRPN_API
6
7
class
VRPN_API
vrpn_Connection
;
8
9
// This is a driver for the Wanda device, which is an analog and
10
// button device. You can find out more at http://home.att.net/~glenmurray/
11
// This driver was written at Brown University.
12
13
class
VRPN_API
vrpn_Wanda
:
public
vrpn_Serial_Analog
,
public
vrpn_Button_Filter
{
14
public
:
15
vrpn_Wanda
(
char
* name,
vrpn_Connection
* c,
char
* portname,
int
16
baud,
double
);
17
18
void
mainloop
(
void
);
19
20
protected
:
21
void
report_new_button_info();
22
void
report_new_valuator_info();
23
24
private
:
25
double
last_val_timestamp;
26
double
resetval[
vrpn_CHANNEL_MAX
];
27
long
MAX_TIME_INTERVAL
;
28
int
bytesread;
29
int
first;
30
int
index;
31
static
int
dbug_wanda;
32
};
33
34
35
#endif
vrpn_Serial_Analog
Definition:
vrpn_Analog.h:63
vrpn_CHANNEL_MAX
#define vrpn_CHANNEL_MAX
Definition:
vrpn_Analog.h:16
vrpn_Button.h
vrpn_BaseClass::mainloop
virtual void mainloop()=0
Called once through each main loop iteration to handle updates. Remote object mainloop() should call ...
vrpn_Connection
Generic connection class not specific to the transport mechanism.
Definition:
vrpn_Connection.h:510
MAX_TIME_INTERVAL
#define MAX_TIME_INTERVAL
Definition:
vrpn_3DMicroscribe.C:29
vrpn_Analog.h
vrpn_Configure.h
VRPN_API
#define VRPN_API
Definition:
vrpn_Configure.h:646
vrpn_Wanda
Definition:
vrpn_Wanda.h:13
vrpn_Button_Filter
All button servers should derive from this class, which provides the ability to turn any of the butto...
Definition:
vrpn_Button.h:65
vrpn_Wanda.h
Generated by
1.8.17