5#ifndef VRPN_INERTIAMOUSE_H
6#define VRPN_INERTIAMOUSE_H
31 t = in_; in_ = o.in_; o.in_ = t;
32 t = out_; out_ = o.out_; o.out_ = t;
42 out_ = s - in_ + (0.95 * out_);
80 in_[1] = s / 6.242183581;
82 out_[1] = in_[0] + in_[1] + (0.6795992982 * out_[0]);
87 in_[0] = in_[1] = out_[0] = out_[1] = 0.0;
122 fprintf(stderr,
"vrpn_inertiamouse::~vrpn_inertiamouse(): delete failed\n");
131 virtual void mainloop ();
133 virtual int reset(
void);
165 virtual void report (vrpn_uint32 class_of_service
dcblocker(dcblocker const &o)
lowpass(lowpass const &o)
Generic connection class not specific to the transport mechanism.
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)
static vrpn_inertiamouse * create(const char *name, vrpn_Connection *c, const char *port, int baud_rate)
virtual void report(vrpn_uint32 class_of_service=vrpn_CONNECTION_LOW_LATENCY)
send report whether or not changed
virtual void clear_values(void)
static const double Vel_Decay
vrpn_inertiamouse(const char *name, vrpn_Connection *c, const char *port, int baud_rate)
virtual int get_report(void)
Try to read a report from the device. Returns 1 if complete report received, 0 otherwise....
virtual void report_changes(vrpn_uint32 class_of_service=vrpn_CONNECTION_LOW_LATENCY)
send report iff changed
unsigned char buffer_[512]
const vrpn_uint32 vrpn_CONNECTION_LOW_LATENCY