Main Page   Class Hierarchy   Compound List   File List   Header Files   Compound Members   File Members  

vrpn_Magellan Class Reference

#include <vrpn_Magellan.h>

Class diagram for vrpn_Magellan:

vrpn_Serial_Analog vrpn_Button vrpn_Analog vrpn_BaseClass vrpn_BaseClassUnique

List of all members.


Public Members

 vrpn_Magellan (const char * name, vrpn_Connection * c, const char * port, int baud)
 ~vrpn_Magellan ()
virtual void mainloop ()
Called once through each main loop iteration to handle updates.

virtual int reset (void)
Set device back to starting config.


Protected Members

virtual void clear_values (void)
Set all buttons, analogs and encoders back to 0.

virtual int get_report (void)
Try to read a report from the device. Returns 1 if complete report received, 0 otherwise. Sets _status to match current status.

virtual void report_changes (vrpn_uint32 class_of_service = vrpn_CONNECTION_LOW_LATENCY)
send report iff changed.

virtual void report (vrpn_uint32 class_of_service = vrpn_CONNECTION_LOW_LATENCY)
send report whether or not changed.

int _status
Used by mainloop() and get_report().

int _numbuttons
How many buttons to open.

int _numchannels
How many analog channels to open.

int _expected_chars
How many characters to expect in the report.

unsigned char _buffer [512]
Buffer of characters in report.

int _bufcount
How many characters we have so far.

int _null_radius
The range over which no motion should be reported.

struct timeval timestamp
Time of the last report from the device.


Detailed Description


Member Function Documentation

vrpn_Magellan::vrpn_Magellan (const char * name, vrpn_Connection * c, const char * port, int baud)

vrpn_Magellan::~vrpn_Magellan () [inline]

virtual void vrpn_Magellan::mainloop (void) [virtual]

Called once through each main loop iteration to handle updates.

Reimplemented from vrpn_BaseClass.

virtual int vrpn_Magellan::reset (void) [virtual]

Set device back to starting config.

virtual void vrpn_Magellan::clear_values (void) [protected, virtual]

Set all buttons, analogs and encoders back to 0.

virtual int vrpn_Magellan::get_report (void) [protected, virtual]

Try to read a report from the device. Returns 1 if complete report received, 0 otherwise. Sets _status to match current status.

virtual void vrpn_Magellan::report_changes (vrpn_uint32 class_of_service = vrpn_CONNECTION_LOW_LATENCY) [protected, virtual]

send report iff changed.

Reimplemented from vrpn_Analog.

virtual void vrpn_Magellan::report (vrpn_uint32 class_of_service = vrpn_CONNECTION_LOW_LATENCY) [protected, virtual]

send report whether or not changed.

Reimplemented from vrpn_Analog.


Member Data Documentation

int vrpn_Magellan::_status [protected]

Used by mainloop() and get_report().

int vrpn_Magellan::_numbuttons [protected]

How many buttons to open.

int vrpn_Magellan::_numchannels [protected]

How many analog channels to open.

int vrpn_Magellan::_expected_chars [protected]

How many characters to expect in the report.

unsigned char vrpn_Magellan::_buffer[512] [protected]

Buffer of characters in report.

int vrpn_Magellan::_bufcount [protected]

How many characters we have so far.

int vrpn_Magellan::_null_radius [protected]

The range over which no motion should be reported.

struct timeval vrpn_Magellan::timestamp [protected]

Time of the last report from the device.

Reimplemented from vrpn_Button.


The documentation for this class was generated from the following files:
Generated at Fri Sep 13 15:04:17 2002 for vrpn by doxygen 1.0.0 written by Dimitri van Heesch, © 1997-1999