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;
100 Update_Interval_Hz = 7372800 / 64 / 13 / Channels,
124 virtual int reset(
void);
132 unsigned char buffer_[512];
138 struct timeval timestamp;
146 virtual void clear_values(
void);
150 virtual int get_report(
void);
156 virtual void report (vrpn_uint32 class_of_service
const vrpn_uint32 vrpn_CONNECTION_LOW_LATENCY
Generic connection class not specific to the transport mechanism.
virtual void report(vrpn_uint32 class_of_service=vrpn_CONNECTION_LOW_LATENCY, const struct timeval time=vrpn_ANALOG_NOW)
Send a report whether something has changed or not (for servers) Optionally, tell what time to stamp ...
virtual void mainloop()=0
Called once through each main loop iteration to handle updates. Remote object mainloop() should call ...
static const double Vel_Decay
lowpass(lowpass const &o)
dcblocker(dcblocker const &o)