libnifalcon::FalconGripFourButton Class Reference
[Grip Classes]

#include <FalconGripFourButton.h>

Inherits libnifalcon::FalconGrip.

Collaboration diagram for libnifalcon::FalconGripFourButton:

Collaboration graph
[legend]

List of all members.

Public Types

enum  { BUTTON_1 = 0x1, BUTTON_2 = 0x2, BUTTON_3 = 0x4, BUTTON_4 = 0x8 }

Public Member Functions

 FalconGripFourButton ()
 ~FalconGripFourButton ()
bool runGripLoop (int size, const uint8_t *data)

Public Attributes

enum
libnifalcon::FalconGripFourButton:: { ... }  
FourButtonGripButtons


Detailed Description

This class represents the default 4 button sphere grip that comes with the falcon.

Member Enumeration Documentation

anonymous enum

Enumeration for the default 4 button grip that comes with the falcon

Enumerator:
BUTTON_1 
BUTTON_2 
BUTTON_3 
BUTTON_4 


Constructor & Destructor Documentation

libnifalcon::FalconGripFourButton::FalconGripFourButton (  )  [inline]

Constructor

libnifalcon::FalconGripFourButton::~FalconGripFourButton (  )  [inline]

Destructor


Member Function Documentation

bool libnifalcon::FalconGripFourButton::runGripLoop ( int  size,
const uint8_t *  data 
) [inline, virtual]

Parses data that the firmware retrieved, stores button status internally

Parameters:
size Size of data buffer being passed in
data Raw buffer of grip data, taken from data received from falcon
Returns:
True as long as size is 1, since we're still not sure how to parse whether or not we have the correct grip type

Implements libnifalcon::FalconGrip.


Member Data Documentation

Enumeration for the default 4 button grip that comes with the falcon


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

Generated on Sun Sep 20 12:24:31 2009 for libnifalcon by  doxygen 1.5.9