GT RoboCup SSL
Soccer software, robot firmware
GamepadJoystick Class Reference

Logitecch Gamepad/Joystick used to control robots. More...

Public Member Functions

void reset () override
 Resets any stored values. More...
 
void update () override
 Instructs the joystick to updates its values.
 
JoystickControlValues getJoystickControlValues () override
 Returns the control values from this joystick. More...
 
bool valid () const override
 Whether or not this Joystick is connected to a real device.
 
- Public Member Functions inherited from Joystick
int getRobotId ()
 
void setRobotId (int rId)
 

Additional Inherited Members

- Static Public Member Functions inherited from Joystick
static void createConfiguration (Configuration *cfg)
 
- Static Public Attributes inherited from Joystick
static ConfigDoubleJoystickRotationMaxSpeed
 
static ConfigDoubleJoystickRotationMaxDampedSpeed
 
static ConfigDoubleJoystickTranslationMaxSpeed
 
static ConfigDoubleJoystickTranslationMaxDampedSpeed
 
- Protected Member Functions inherited from Joystick
QMutex & mutex ()
 
- Protected Attributes inherited from Joystick
int robotId
 

Detailed Description

Logitecch Gamepad/Joystick used to control robots.

Used to control the Logitech F310 and XBOX controllers

This has been replaced by GamepadController

+ Inheritance diagram for GamepadJoystick:
+ Collaboration diagram for GamepadJoystick:

Member Function Documentation

◆ getJoystickControlValues()

JoystickControlValues GamepadJoystick::getJoystickControlValues ( )
overridevirtual

Returns the control values from this joystick.

Note: The controls should be scaled between 0 and 1. The processor handles scaling to real world values.

Returns
The control values for this joystick

Implements Joystick.

◆ reset()

void GamepadJoystick::reset ( )
overridevirtual

Resets any stored values.

Joysticks are reset whenever the robot they're controlling is switched

Implements Joystick.


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