File that contains all relevant function to handle the gamepad, and some other auxiliar functions. More...
#include "gamepad.h"
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 |
File that contains all relevant function to handle the gamepad, and some other auxiliar functions.