Skip to content

Class eva::Joystick

template <class TReader, unsigned short MIN_POS, unsigned short MIDDLE_POS, unsigned short MAX_POS>

ClassList > eva > Joystick

Joystick axis reader (range 1000-1500-2000) with trim adjustment.More...

  • #include <evaJoystick.h>

Inherits the following classes: TReader

Public Functions

Type Name
void addTrim (short trimIncrement)
adds trim adjustment value
signed short getDeadZone ()
Gets current deadZone value.
signed short getTrim ()
Gets current trim value.
signed short getValue ()
Gets normalized joystick position (1000 to 2000).
void setDeadZone (short deadZone)
void setTrim (short trim)
Sets trim adjustment value.

Detailed Description

Template parameters:

  • TReader Underlying reader type
  • MIN_POS Minimum analog value
  • MIDDLE_POS Center value
  • MAX_POS Maximum analog value

Public Functions Documentation

function addTrim

adds trim adjustment value

inline void eva::Joystick::addTrim (
    short trimIncrement
) 

Parameters:

  • trim Trim value

function getDeadZone

Gets current deadZone value.

inline signed short eva::Joystick::getDeadZone () 

Returns:

deadZone value


function getTrim

Gets current trim value.

inline signed short eva::Joystick::getTrim () 

Returns:

deadZone value


function getValue

Gets normalized joystick position (1000 to 2000).

inline signed short eva::Joystick::getValue () 

Returns:

Signed char value


function setDeadZone

inline void eva::Joystick::setDeadZone (
    short deadZone
) 

function setTrim

Sets trim adjustment value.

inline void eva::Joystick::setTrim (
    short trim
) 

Parameters:

  • trim Trim value


The documentation for this class was generated from the following file src/evaJoystick.h