5#ifndef VRPN_TRACKER_CROSSBOW_H
6#define VRPN_TRACKER_CROSSBOW_H
28 const char *port =
"/dev/ttyS0",
long baud = 38400,
29 float g_range = 2.0f,
float ar_range = 100.0f);
Generic connection class not specific to the transport mechanism.
float convert_scalar(vrpn_int16 data, float scale) const
void unbuffer_packet(raw_packet &dest, unsigned char *buffer)
int validate_packet(const raw_packet &packet)
vrpn_Tracker_Crossbow(const char *name, vrpn_Connection *c, const char *port="/dev/ttyS0", long baud=38400, float g_range=2.0f, float ar_range=100.0f)
The constructor is given the name of the tracker (the name of the sender it should use),...
void process_packet(const raw_packet &packet)
vrpn_uint32 device_serial
void recalibrate(vrpn_uint16 num_samples=20000)
vrpn_uint32 get_serial_number()
void xb_quat_from_euler(q_type destQuat, double pitch, double roll) const
const char * get_version_string()
unsigned char buffer[VRPN_TRACKER_BUF_SIZE]
virtual void send_report(void)
virtual void reset(void)=0
Reset the tracker.
virtual void mainloop()
Uses the get_report, send_report, and reset routines to implement a server.
virtual int get_report(void)=0
Gets a report if one is available, returns 0 if not, 1 if complete report.
vrpn_Tracker_Serial(const char *name, vrpn_Connection *c, const char *port="/dev/ttyS1", long baud=38400)
class VRPN_API vrpn_Connection