gamepad_functions.cpp File Reference

File that contains all relevant function to handle the gamepad, and some other auxiliar functions. More...

#include "gamepad.h"
Include dependency graph for gamepad_functions.cpp:

Functions

int initialize_gamepad (TYPE_gamepad *gamepad, char *device)
void set_deadspot_gamepad (TYPE_gamepad *gamepad, int on_off, double size)
int get_gamepad_state (TYPE_gamepad *gamepad)
void close_gamepad (TYPE_gamepad *gamepad)
double normalize (double min, double max, double value)
 Generic normalisation function.
int control_mapping (TYPE_mapping *mapping)
 This functions initializes the button mapping for the connected gamepad.
void robot_state_handler (void)
 Handler activated when a robot_state message is received.
void shutdown_module (int x)
 makes a clean shutdown of the program

Variables

TYPE_executionflags flags
 Include the interface.
TYPE_gamepad gamepad
double maximum_dir

Detailed Description

File that contains all relevant function to handle the gamepad, and some other auxiliar functions.

Generated on Wed Jun 2 12:43:03 2010 for LAR Atlas by  doxygen 1.6.3