Libbarrett  1.2.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Defines
Public Member Functions | Protected Attributes | Static Protected Attributes
barrett::GimbalsHandController Class Reference

List of all members.

Public Member Functions

 GimbalsHandController (Puck *p6, Puck *p7)
 ~GimbalsHandController ()
void update ()
bool getThumbOpen () const
bool getThumbClose () const
bool getPointerOpen () const
bool getPointerClose () const
bool getMiddleOpen () const
bool getMiddleClose () const
bool getRockerUp () const
bool getRockerDown () const
double getKnob () const
void setKnob (double value)

Protected Attributes

Puckp6
Puckp7
enum Puck::Property ana0 ana1
bool thumbOpen
bool thumbClose
bool pointerOpen
bool pointerClose
bool middleOpen
bool middleClose
bool rockerUp
bool rockerDown
int knob
bool usingBrown
int brown_1
int dGreen_1

Static Protected Attributes

static const int SWITCH_THRESH1 = 1000
static const int SWITCH_THRESH2 = 2450
static const int KNOB_MIN_VALID = 500
static const int KNOB_MAX_VALID = 2800
static const double COUNTS_PER_RAD = 4096.0 / (2*M_PI)

Constructor & Destructor Documentation

GimbalsHandController Constructor

GimbalsHandController Constructor Elements


Member Function Documentation

double barrett::GimbalsHandController::getKnob ( ) const [inline]

getKnob Method returns the current value of the knob position

getMiddleClose Method tells whether or not the middle is closed currently

getMiddleOpen method tells whether or not the middle is open currently

getPointerClose Method tells whether or not the pointer is closed currently

getPointerOpen Method tells whether or not the pointer is open currently

getRockerDown Method tells whether or not the rocker is down currently

getRockerUp Method tells whether or not the rocker is up currently

getThumbClose Method tells whether or not the thumb is closed currently

getThumbOpen Method tells whether or not the thumb is open currently

void barrett::GimbalsHandController::setKnob ( double  value) [inline]

setKnob Method changes the current knob value to desired value

update Method gets the latest status of the pointer, thumb, rocker, middle fingers


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Defines