libyggdrasil  v1.0.0
bsp::ygg::prph::Joystick Class Reference

Joystick driver using the TLA2024IRUGT ADCS. More...

#include <joystick.hpp>

Classes

struct  JoystickData
 Joystick data. More...
 
struct  Position
 Signed position data. More...
 

Public Member Functions

 Joystick ()=delete
 

Static Public Member Functions

static bool init ()
 Initialization function. More...
 
static JoystickData getLeft ()
 Get the joystick data for the left joystick. More...
 
static JoystickData getRight ()
 Get the joystick data for the right joystick. More...
 
static void setDeadzone (u8 deadzone)
 Set both joystick's deadzone. More...
 
static u8 getDeadzone ()
 Get the current Joystick deadzone. More...
 

Detailed Description

Joystick driver using the TLA2024IRUGT ADCS.

Constructor & Destructor Documentation

◆ Joystick()

bsp::ygg::prph::Joystick::Joystick ( )
delete

Member Function Documentation

◆ getDeadzone()

static u8 bsp::ygg::prph::Joystick::getDeadzone ( )
inlinestatic

Get the current Joystick deadzone.

Returns
Current deadzone value

◆ getLeft()

static JoystickData bsp::ygg::prph::Joystick::getLeft ( )
inlinestatic

Get the joystick data for the left joystick.

Returns
JoyStickData struct
Note
This function is polling

◆ getRight()

static JoystickData bsp::ygg::prph::Joystick::getRight ( )
inlinestatic

Get the joystick data for the right joystick.

Returns
JoyStickData struct
Note
This function is polling

◆ init()

static bool bsp::ygg::prph::Joystick::init ( )
inlinestatic

Initialization function.

Returns
Success

◆ setDeadzone()

static void bsp::ygg::prph::Joystick::setDeadzone ( u8  deadzone)
inlinestatic

Set both joystick's deadzone.

Parameters
deadzoneDeadzone value

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