Public Member Functions | Protected Member Functions | Protected Attributes | Static Private Member Functions
phidgets::MotorController Class Reference

#include <motor.h>

Inheritance diagram for phidgets::MotorController:
Inheritance graph
[legend]

List of all members.

Public Member Functions

double getAcceleration (int index)
double getAccelerationMax (int index)
double getAccelerationMin (int index)
double getBackEMF (int index)
int getBackEMFSensingState (int index)
double getBraking (int index)
double getCurrent (int index)
int getEncoderCount ()
int getEncoderPosition (int index)
int getInputCount ()
bool getInputState (int index)
int getMotorCount ()
int getRatiometric ()
int getSensorCount ()
int getSensorRawValue (int index)
int getSensorValue (int index)
double getSupplyVoltage ()
double getVelocity (int index)
 MotorController ()
void setAcceleration (int index, double acceleration)
void setBackEMFSensingState (int index, int bEMFState)
void setBraking (int index, double braking)
void setEncoderPosition (int index, int position)
void setRatiometric (int ratiometric)
void setVelocity (int index, double velocity)

Protected Member Functions

virtual void backEMFUpdateHandler (int index, double voltage)
virtual void currentChangeHandler (int index, double current)
virtual void currentUpdateHandler (int index, double current)
virtual void encoderPositionChangeHandler (int index, int time, int positionChange)
virtual void encoderPositionUpdateHandler (int index, int positionChange)
virtual void inputChangeHandler (int index, int inputState)
virtual void sensorUpdateHandler (int index, int sensorValue)
virtual void velocityChangeHandler (int index, double velocity)

Protected Attributes

CPhidgetMotorControlHandle motor_handle_

Static Private Member Functions

static int BackEMFUpdateHandler (CPhidgetMotorControlHandle phid, void *userPtr, int index, double voltage)
static int CurrentChangeHandler (CPhidgetMotorControlHandle phid, void *userPtr, int index, double current)
static int CurrentUpdateHandler (CPhidgetMotorControlHandle phid, void *userPtr, int index, double current)
static int EncoderPositionChangeHandler (CPhidgetMotorControlHandle phid, void *userPtr, int index, int time, int positionChange)
static int EncoderPositionUpdateHandler (CPhidgetMotorControlHandle phid, void *userPtr, int index, int positionChange)
static int InputChangeHandler (CPhidgetMotorControlHandle phid, void *userPtr, int index, int inputState)
static int SensorUpdateHandler (CPhidgetMotorControlHandle phid, void *userPtr, int index, int sensorValue)
static int VelocityChangeHandler (CPhidgetMotorControlHandle phid, void *userPtr, int index, double velocity)

Detailed Description

Definition at line 9 of file motor.h.


Constructor & Destructor Documentation

Definition at line 16 of file motor.cpp.


Member Function Documentation

void phidgets::MotorController::backEMFUpdateHandler ( int  index,
double  voltage 
) [protected, virtual]

Definition at line 230 of file motor.cpp.

int phidgets::MotorController::BackEMFUpdateHandler ( CPhidgetMotorControlHandle  phid,
void *  userPtr,
int  index,
double  voltage 
) [static, private]

Definition at line 190 of file motor.cpp.

void phidgets::MotorController::currentChangeHandler ( int  index,
double  current 
) [protected, virtual]

Definition at line 210 of file motor.cpp.

int phidgets::MotorController::CurrentChangeHandler ( CPhidgetMotorControlHandle  phid,
void *  userPtr,
int  index,
double  current 
) [static, private]

Definition at line 170 of file motor.cpp.

void phidgets::MotorController::currentUpdateHandler ( int  index,
double  current 
) [protected, virtual]

Definition at line 240 of file motor.cpp.

int phidgets::MotorController::CurrentUpdateHandler ( CPhidgetMotorControlHandle  phid,
void *  userPtr,
int  index,
double  current 
) [static, private]

Definition at line 200 of file motor.cpp.

void phidgets::MotorController::encoderPositionChangeHandler ( int  index,
int  time,
int  positionChange 
) [protected, virtual]

Definition at line 220 of file motor.cpp.

int phidgets::MotorController::EncoderPositionChangeHandler ( CPhidgetMotorControlHandle  phid,
void *  userPtr,
int  index,
int  time,
int  positionChange 
) [static, private]

Definition at line 180 of file motor.cpp.

void phidgets::MotorController::encoderPositionUpdateHandler ( int  index,
int  positionChange 
) [protected, virtual]

Definition at line 225 of file motor.cpp.

int phidgets::MotorController::EncoderPositionUpdateHandler ( CPhidgetMotorControlHandle  phid,
void *  userPtr,
int  index,
int  positionChange 
) [static, private]

Definition at line 185 of file motor.cpp.

Definition at line 55 of file motor.cpp.

Definition at line 65 of file motor.cpp.

Definition at line 70 of file motor.cpp.

Definition at line 120 of file motor.cpp.

Definition at line 110 of file motor.cpp.

Definition at line 130 of file motor.cpp.

Definition at line 75 of file motor.cpp.

Definition at line 95 of file motor.cpp.

Definition at line 100 of file motor.cpp.

Definition at line 80 of file motor.cpp.

Definition at line 85 of file motor.cpp.

Definition at line 40 of file motor.cpp.

Definition at line 155 of file motor.cpp.

Definition at line 140 of file motor.cpp.

Definition at line 150 of file motor.cpp.

Definition at line 145 of file motor.cpp.

Definition at line 125 of file motor.cpp.

Definition at line 45 of file motor.cpp.

void phidgets::MotorController::inputChangeHandler ( int  index,
int  inputState 
) [protected, virtual]

Definition at line 215 of file motor.cpp.

int phidgets::MotorController::InputChangeHandler ( CPhidgetMotorControlHandle  phid,
void *  userPtr,
int  index,
int  inputState 
) [static, private]

Definition at line 175 of file motor.cpp.

void phidgets::MotorController::sensorUpdateHandler ( int  index,
int  sensorValue 
) [protected, virtual]

Definition at line 235 of file motor.cpp.

int phidgets::MotorController::SensorUpdateHandler ( CPhidgetMotorControlHandle  phid,
void *  userPtr,
int  index,
int  sensorValue 
) [static, private]

Definition at line 195 of file motor.cpp.

void phidgets::MotorController::setAcceleration ( int  index,
double  acceleration 
)

Definition at line 60 of file motor.cpp.

void phidgets::MotorController::setBackEMFSensingState ( int  index,
int  bEMFState 
)

Definition at line 115 of file motor.cpp.

void phidgets::MotorController::setBraking ( int  index,
double  braking 
)

Definition at line 135 of file motor.cpp.

void phidgets::MotorController::setEncoderPosition ( int  index,
int  position 
)

Definition at line 105 of file motor.cpp.

void phidgets::MotorController::setRatiometric ( int  ratiometric)

Definition at line 160 of file motor.cpp.

void phidgets::MotorController::setVelocity ( int  index,
double  velocity 
)

Definition at line 50 of file motor.cpp.

void phidgets::MotorController::velocityChangeHandler ( int  index,
double  velocity 
) [protected, virtual]

Definition at line 205 of file motor.cpp.

int phidgets::MotorController::VelocityChangeHandler ( CPhidgetMotorControlHandle  phid,
void *  userPtr,
int  index,
double  velocity 
) [static, private]

Definition at line 165 of file motor.cpp.


Member Data Documentation

CPhidgetMotorControlHandle phidgets::MotorController::motor_handle_ [protected]

Definition at line 52 of file motor.h.


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


phidgets_api
Author(s): Tully Foote, Ivan Dryanovski
autogenerated on Wed Aug 16 2017 02:50:15