RflySimSDK
v3.05
RflySimSDK说明文档
载入中...
搜索中...
未找到
simulink
vrpn
vrpn_Wanda.h
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_Button_Filter
定义
vrpn_Button.h:66
vrpn_Connection
Generic connection class not specific to the transport mechanism.
定义
vrpn_Connection.h:562
vrpn_Serial_Analog
定义
vrpn_Analog.h:63
vrpn_Wanda
定义
vrpn_Wanda.h:13
vrpn_Wanda::mainloop
void mainloop(void)
制作者
1.11.0