vrpn 07.35
Virtual Reality Peripheral Network
 
Loading...
Searching...
No Matches
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
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
14public:
15 vrpn_Wanda(char * name, vrpn_Connection * c, char * portname,int
16 baud, double);
17
18 void mainloop(void);
19
20protected:
23
24private:
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
virtual void mainloop()=0
Called once through each main loop iteration to handle updates. Remote object mainloop() should call ...
vrpn_Button_Filter(const char *, vrpn_Connection *c=NULL)
Generic connection class not specific to the transport mechanism.
char portname[1024]
Definition vrpn_Analog.h:73
vrpn_Serial_Analog(const char *name, vrpn_Connection *connection, const char *port, int baud=9600, int bits=8, vrpn_SER_PARITY parity=vrpn_SER_PARITY_NONE, bool rts_flow=false)
void report_new_button_info()
Definition vrpn_Wanda.C:62
vrpn_Wanda(char *name, vrpn_Connection *c, char *portname, int baud, double)
Definition vrpn_Wanda.C:37
void report_new_valuator_info()
Definition vrpn_Wanda.C:72
#define vrpn_CHANNEL_MAX
Definition vrpn_Analog.h:16
#define VRPN_API
class VRPN_API vrpn_Connection
Definition vrpn_Wanda.h:7