libnifalcon
1.0.1
|
#include <FalconGripFourButton.h>
Public Types | |
enum | { BUTTON_1 = 0x1, BUTTON_2 = 0x2, BUTTON_3 = 0x4, BUTTON_4 = 0x8, PLUS_BUTTON = 0x1, FORWARD_BUTTON = 0x2, CENTER_BUTTON = 0x4, MINUS_BUTTON = 0x8 } |
![]() | |
enum | { FALCON_GRIP_INDEX_OUT_OF_RANGE = 4000 } |
Public Member Functions | |
FalconGripFourButton () | |
~FalconGripFourButton () | |
bool | runGripLoop (int size, const uint8_t *data) |
![]() | |
FalconGrip (int32_t digital_inputs, int32_t analog_inputs) | |
virtual | ~FalconGrip () |
unsigned int | getNumDigitalInputs () const |
unsigned int | getNumAnalogInputs () const |
bool | getDigitalInput (unsigned int index) |
unsigned int | getDigitalInputs () const |
int | getAnalogInput (unsigned int index) |
![]() | |
FalconCore () | |
virtual | ~FalconCore () |
int | getErrorCode () |
Public Attributes | |
enum libnifalcon::FalconGripFourButton:: { ... } | FourButtonGripButtons |
Additional Inherited Members | |
![]() | |
unsigned int | m_numDigitalInputs |
unsigned int | m_numAnalogInputs |
unsigned int | m_digitalInputs |
int | m_analogInputs [128] |
![]() | |
int | m_errorCode |
This class represents the default 4 button sphere grip that comes with the falcon.
anonymous enum |
Enumeration for the default 4 button grip that comes with the falcon. This grip has plus and minus buttonsr, one button in the center and one pointing forward. For convenience also symbolic names are provided.
Enumerator | |
---|---|
BUTTON_1 | |
BUTTON_2 | |
BUTTON_3 | |
BUTTON_4 | |
PLUS_BUTTON | |
FORWARD_BUTTON | |
CENTER_BUTTON | |
MINUS_BUTTON |
|
inline |
Constructor
|
inline |
Destructor
|
inlinevirtual |
Parses data that the firmware retrieved, stores button status internally
size | Size of data buffer being passed in |
data | Raw buffer of grip data, taken from data received from falcon |
Implements libnifalcon::FalconGrip.
enum { ... } libnifalcon::FalconGripFourButton::FourButtonGripButtons |
Enumeration for the default 4 button grip that comes with the falcon. This grip has plus and minus buttonsr, one button in the center and one pointing forward. For convenience also symbolic names are provided.