Libbarrett  1.2.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Defines
Classes | Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Attributes
barrett::MotorPuck Class Reference
Inheritance diagram for barrett::MotorPuck:
barrett::SpecialPuck

List of all members.

Classes

struct  CombinedPositionParser
struct  MotorPositionParser
struct  SecondaryPositionParser

Public Types

enum  MotorMode {
  MODE_IDLE, MODE_DUTY, MODE_TORQUE, MODE_PID,
  MODE_VELOCITY, MODE_TRAPEZOIDAL
}

Public Member Functions

 MotorPuck (Puck *puck=NULL)
void setPuck (Puck *puck)
int getCts () const
double getRadsPerCount () const
double getCountsPerRad () const
double counts2rad (int counts) const
int rad2counts (double rad) const
int getIpnm () const
int nm2i (double torque) const
bool foundIndexPulse () const

Static Public Member Functions

static void sendPackedTorques (const bus::CommunicationsBus &bus, int groupId, int propId, const double *pt, int numTorques)

Static Public Attributes

static const size_t PUCKS_PER_TORQUE_GROUP = 4
static const int MAX_PUCK_TORQUE = 8191

Protected Attributes

int cts
double rpc
double cpr
int ipnm

Member Function Documentation

setPuck Method used to define what type of puck is being used

Reimplemented from barrett::SpecialPuck.


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