lobot::SpeedArbiter::Vote Class Reference

#include <Robots/LoBot/control/LoSpeedArbiter.H>

List of all members.

Public Member Functions

 Vote (float speed=0, int pwm=0)
float speed () const
 Retrieving the specified speed.
int pwm () const
 Retrieving the specified PWM.

Detailed Description

To control the robot's speed, each speed related behaviour must vote for the maximum acceptable speed. These votes are represented by this inner class. In order to vote, a behaviour must instantiate this class with the new operator, fill out the voting structure properly and then pass it to the arbiter's vote() method.

Definition at line 97 of file LoSpeedArbiter.H.


Constructor & Destructor Documentation

lobot::SpeedArbiter::Vote::Vote ( float  speed = 0,
int  pwm = 0 
)

Filling out a speed arbiter vote object simply involves passing the desired speed to the constructor.

Definition at line 93 of file LoSpeedArbiter.C.


Member Function Documentation

int lobot::SpeedArbiter::Vote::pwm (  )  const [inline]

Retrieving the specified PWM.

Definition at line 119 of file LoSpeedArbiter.H.

float lobot::SpeedArbiter::Vote::speed (  )  const [inline]

Retrieving the specified speed.

Definition at line 116 of file LoSpeedArbiter.H.


The documentation for this class was generated from the following files:
Generated on Sun May 8 08:44:28 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3