ClodBuster Class Reference

List of all members.

Public Member Functions

 ClodBuster (ConfigFile *cf, int section)
virtual void Main ()
 Main method for driver thread.
int ProcessMessage (MessageQueue *resp_queue, player_msghdr *hdr, void *data)
 Message handler.
virtual int Setup ()
 Initialize the driver.
virtual int Shutdown ()
 Finalize the driver.
unsigned char SetServo (unsigned char chan, int value)
void SetServo (unsigned char chan, unsigned char cmd)

Protected Attributes

int motor_max_speed
int motor_max_turnspeed
bool use_vel_band
short speedDemand
short turnRateDemand
bool newmotorspeed
bool newmotorturn

Member Function Documentation

void ClodBuster::Main (  )  [virtual]

Main method for driver thread.

drivers have their own thread of execution, created using StartThread(); this is the entry point for the driver thread, and must be overloaded by all threaded drivers.

Reimplemented from Driver.

References Driver::device_addr, PLAYER_MSGTYPE_DATA, PLAYER_POSITION2D_DATA_STATE, Driver::ProcessMessages(), and Driver::Publish().

int ClodBuster::Setup (  )  [virtual]

Initialize the driver.

This function is called with the first client subscribes; it MUST be implemented by the driver.

Returns:
Returns 0 on success.

Implements Driver.

int ClodBuster::Shutdown (  )  [virtual]

Finalize the driver.

This function is called with the last client unsubscribes; it MUST be implemented by the driver.

Returns:
Returns 0 on success.

Implements Driver.

References Driver::StopThread().


The documentation for this class was generated from the following files:

Last updated 12 September 2005 21:38:45