Public Member Functions | Protected Member Functions | Protected Attributes | Static Private Member Functions | List of all members
phidgets::MotorController Class Reference

#include <motor.h>

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

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)
 
- Public Member Functions inherited from phidgets::Phidget
int close ()
 Close the connection to the phidget. More...
 
std::string getDeviceLabel ()
 Get the device label string. More...
 
std::string getDeviceName ()
 Get the device name string. More...
 
int getDeviceSerialNumber ()
 Get the Phidget's serial number. More...
 
std::string getDeviceType ()
 Get the device type string. More...
 
int getDeviceVersion ()
 Get the Phidget's version. More...
 
std::string getLibraryVersion ()
 Get the library version string. More...
 
int open (int serial_number)
 Open a connection to a Phidget. More...
 
 Phidget ()
 
int waitForAttachment (int timeout)
 Block until the unit is attached or timeout occurs. More...
 
 ~Phidget ()
 

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 Member Functions inherited from phidgets::Phidget
virtual void attachHandler ()
 
virtual void detachHandler ()
 
virtual void errorHandler (int error)
 
void init (CPhidgetHandle handle)
 
virtual void registerHandlers ()
 

Protected Attributes

CPhidgetMotorControlHandle motor_handle_
 
- Protected Attributes inherited from phidgets::Phidget
CPhidgetHandle 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)
 

Additional Inherited Members

- Static Public Member Functions inherited from phidgets::Phidget
static std::string getErrorDescription (int errorCode)
 Lookup the string for a CPhidget Error Code. More...
 

Detailed Description

Definition at line 9 of file motor.h.

Constructor & Destructor Documentation

phidgets::MotorController::MotorController ( )

Definition at line 16 of file motor.cpp.

Member Function Documentation

void phidgets::MotorController::backEMFUpdateHandler ( int  index,
double  voltage 
)
protectedvirtual

Definition at line 238 of file motor.cpp.

int phidgets::MotorController::BackEMFUpdateHandler ( CPhidgetMotorControlHandle  phid,
void *  userPtr,
int  index,
double  voltage 
)
staticprivate

Definition at line 195 of file motor.cpp.

void phidgets::MotorController::currentChangeHandler ( int  index,
double  current 
)
protectedvirtual

Definition at line 218 of file motor.cpp.

int phidgets::MotorController::CurrentChangeHandler ( CPhidgetMotorControlHandle  phid,
void *  userPtr,
int  index,
double  current 
)
staticprivate

Definition at line 171 of file motor.cpp.

void phidgets::MotorController::currentUpdateHandler ( int  index,
double  current 
)
protectedvirtual

Definition at line 248 of file motor.cpp.

int phidgets::MotorController::CurrentUpdateHandler ( CPhidgetMotorControlHandle  phid,
void *  userPtr,
int  index,
double  current 
)
staticprivate

Definition at line 207 of file motor.cpp.

void phidgets::MotorController::encoderPositionChangeHandler ( int  index,
int  time,
int  positionChange 
)
protectedvirtual

Definition at line 228 of file motor.cpp.

int phidgets::MotorController::EncoderPositionChangeHandler ( CPhidgetMotorControlHandle  phid,
void *  userPtr,
int  index,
int  time,
int  positionChange 
)
staticprivate

Definition at line 183 of file motor.cpp.

void phidgets::MotorController::encoderPositionUpdateHandler ( int  index,
int  positionChange 
)
protectedvirtual

Definition at line 233 of file motor.cpp.

int phidgets::MotorController::EncoderPositionUpdateHandler ( CPhidgetMotorControlHandle  phid,
void *  userPtr,
int  index,
int  positionChange 
)
staticprivate

Definition at line 189 of file motor.cpp.

double phidgets::MotorController::getAcceleration ( int  index)

Definition at line 55 of file motor.cpp.

double phidgets::MotorController::getAccelerationMax ( int  index)

Definition at line 65 of file motor.cpp.

double phidgets::MotorController::getAccelerationMin ( int  index)

Definition at line 70 of file motor.cpp.

double phidgets::MotorController::getBackEMF ( int  index)

Definition at line 120 of file motor.cpp.

int phidgets::MotorController::getBackEMFSensingState ( int  index)

Definition at line 110 of file motor.cpp.

double phidgets::MotorController::getBraking ( int  index)

Definition at line 130 of file motor.cpp.

double phidgets::MotorController::getCurrent ( int  index)

Definition at line 75 of file motor.cpp.

int phidgets::MotorController::getEncoderCount ( )

Definition at line 95 of file motor.cpp.

int phidgets::MotorController::getEncoderPosition ( int  index)

Definition at line 100 of file motor.cpp.

int phidgets::MotorController::getInputCount ( )

Definition at line 80 of file motor.cpp.

bool phidgets::MotorController::getInputState ( int  index)

Definition at line 85 of file motor.cpp.

int phidgets::MotorController::getMotorCount ( )

Definition at line 40 of file motor.cpp.

int phidgets::MotorController::getRatiometric ( )

Definition at line 155 of file motor.cpp.

int phidgets::MotorController::getSensorCount ( )

Definition at line 140 of file motor.cpp.

int phidgets::MotorController::getSensorRawValue ( int  index)

Definition at line 150 of file motor.cpp.

int phidgets::MotorController::getSensorValue ( int  index)

Definition at line 145 of file motor.cpp.

double phidgets::MotorController::getSupplyVoltage ( )

Definition at line 125 of file motor.cpp.

double phidgets::MotorController::getVelocity ( int  index)

Definition at line 45 of file motor.cpp.

void phidgets::MotorController::inputChangeHandler ( int  index,
int  inputState 
)
protectedvirtual

Definition at line 223 of file motor.cpp.

int phidgets::MotorController::InputChangeHandler ( CPhidgetMotorControlHandle  phid,
void *  userPtr,
int  index,
int  inputState 
)
staticprivate

Definition at line 177 of file motor.cpp.

void phidgets::MotorController::sensorUpdateHandler ( int  index,
int  sensorValue 
)
protectedvirtual

Definition at line 243 of file motor.cpp.

int phidgets::MotorController::SensorUpdateHandler ( CPhidgetMotorControlHandle  phid,
void *  userPtr,
int  index,
int  sensorValue 
)
staticprivate

Definition at line 201 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 
)
protectedvirtual

Definition at line 213 of file motor.cpp.

int phidgets::MotorController::VelocityChangeHandler ( CPhidgetMotorControlHandle  phid,
void *  userPtr,
int  index,
double  velocity 
)
staticprivate

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 Tue May 7 2019 03:19:24