Public Member Functions | Protected Member Functions | Static Private Member Functions | Private Attributes | 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)
 
virtual ~MotorController ()
 
- 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 openAndWaitForAttachment (int serial_number, int timeout)
 Open a connection to a Phidget. More...
 
 Phidget ()
 
virtual ~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)
 
void registerHandlers ()
 

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)
 

Private Attributes

CPhidgetMotorControlHandle motor_handle_
 

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 8 of file motor.h.

Constructor & Destructor Documentation

phidgets::MotorController::MotorController ( )

Definition at line 27 of file motor.cpp.

phidgets::MotorController::~MotorController ( )
virtual

Definition at line 57 of file motor.cpp.

Member Function Documentation

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

Definition at line 282 of file motor.cpp.

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

Definition at line 228 of file motor.cpp.

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

Definition at line 258 of file motor.cpp.

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

Definition at line 194 of file motor.cpp.

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

Definition at line 294 of file motor.cpp.

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

Definition at line 244 of file motor.cpp.

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

Definition at line 269 of file motor.cpp.

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

Definition at line 210 of file motor.cpp.

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

Definition at line 276 of file motor.cpp.

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

Definition at line 219 of file motor.cpp.

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

Definition at line 76 of file motor.cpp.

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

Definition at line 86 of file motor.cpp.

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

Definition at line 91 of file motor.cpp.

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

Definition at line 141 of file motor.cpp.

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

Definition at line 131 of file motor.cpp.

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

Definition at line 151 of file motor.cpp.

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

Definition at line 96 of file motor.cpp.

int phidgets::MotorController::getEncoderCount ( )

Definition at line 116 of file motor.cpp.

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

Definition at line 121 of file motor.cpp.

int phidgets::MotorController::getInputCount ( )

Definition at line 101 of file motor.cpp.

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

Definition at line 106 of file motor.cpp.

int phidgets::MotorController::getMotorCount ( )

Definition at line 61 of file motor.cpp.

int phidgets::MotorController::getRatiometric ( )

Definition at line 176 of file motor.cpp.

int phidgets::MotorController::getSensorCount ( )

Definition at line 161 of file motor.cpp.

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

Definition at line 171 of file motor.cpp.

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

Definition at line 166 of file motor.cpp.

double phidgets::MotorController::getSupplyVoltage ( )

Definition at line 146 of file motor.cpp.

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

Definition at line 66 of file motor.cpp.

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

Definition at line 264 of file motor.cpp.

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

Definition at line 202 of file motor.cpp.

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

Definition at line 288 of file motor.cpp.

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

Definition at line 236 of file motor.cpp.

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

Definition at line 81 of file motor.cpp.

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

Definition at line 136 of file motor.cpp.

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

Definition at line 156 of file motor.cpp.

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

Definition at line 126 of file motor.cpp.

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

Definition at line 181 of file motor.cpp.

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

Definition at line 71 of file motor.cpp.

void phidgets::MotorController::velocityChangeHandler ( int  index,
double  velocity 
)
protectedvirtual

Definition at line 252 of file motor.cpp.

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

Definition at line 186 of file motor.cpp.

Member Data Documentation

CPhidgetMotorControlHandle phidgets::MotorController::motor_handle_
private

Definition at line 64 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 Fri Apr 9 2021 02:56:02