4#include "vrpn_Analog.h"
5#include "vrpn_Configure.h"
6#include "vrpn_Connection.h"
7#include "vrpn_Shared.h"
31 bool tenbytes =
false);
45 unsigned _expected_chars;
46 unsigned char _buffer[512];
50 struct timeval timestamp;
52 virtual int reset(
void);
53 virtual void get_report(
void);
55 virtual void clear_values(
void);
63 (vrpn_uint32 class_of_service = vrpn_CONNECTION_LOW_LATENCY);
66 (vrpn_uint32 class_of_service = vrpn_CONNECTION_LOW_LATENCY);
Class to support reading data from serial 5DT data gloves.
定义 vrpn_Analog_5dt.h:13
int send_command(const unsigned char *cmd, int len)
virtual void mainloop()
Called once through each main loop iteration to handle updates.
virtual void report(vrpn_uint32 class_of_service=vrpn_CONNECTION_LOW_LATENCY)
send report whether or not changed
vrpn_5dt(const char *name, vrpn_Connection *c, const char *port, int baud=19200, int mode=1, bool tenbytes=false)
Constructor.
virtual void report_changes(vrpn_uint32 class_of_service=vrpn_CONNECTION_LOW_LATENCY)
send report iff changed
Generic connection class not specific to the transport mechanism.
定义 vrpn_Connection.h:562