Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Teem::JoystickController Class Reference
[Controllers and neural networks]

#include <Joystick.h>

Inheritance diagram for Teem::JoystickController:

Teem::Controller List of all members.

Detailed Description

A controller that allows the user to control the robot with a joystick.

Very useful for testing.

Public Member Functions

 JoystickController ()
 Constructor, initialise joystick.
virtual void setInput (unsigned index, double val)
 set values gotten from joystick
virtual double getOutput (unsigned index)
 get info from the joystick
virtual void step ()
 Do a step, process inputs and compute outputs.
bool isButtonDown (unsigned button)
 Return true if button is pressed.

Protected Attributes

double output [JOYSTICK_NB_BUTTONS]
 values of buttons
_SDL_Joystick * joy
 pointer to SDL's joystick

The documentation for this class was generated from the following files:
Generated on Mon Oct 24 17:38:27 2005 for Teem by  doxygen 1.4.2