Class eva::Joystick¶
template <class TReader, unsigned short MIN_POS, unsigned short MIDDLE_POS, unsigned short MAX_POS>
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:
TReaderUnderlying reader typeMIN_POSMinimum analog valueMIDDLE_POSCenter valueMAX_POSMaximum analog value
Public Functions Documentation¶
function addTrim¶
adds trim adjustment value
inline void eva::Joystick::addTrim (
short trimIncrement
)
Parameters:
trimTrim 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:
trimTrim value
The documentation for this class was generated from the following file src/evaJoystick.h