1 #ifndef PHIDGETS_API_MOTOR_H 2 #define PHIDGETS_API_MOTOR_H 67 void *userPtr,
int index,
double velocity);
69 void *userPtr,
int index,
double current);
71 void *userPtr,
int index,
int inputState);
73 void *userPtr,
int index,
int time,
76 void *userPtr,
int index,
79 void *userPtr,
int index,
double voltage);
81 void *userPtr,
int index,
int sensorValue);
83 void *userPtr,
int index,
double current);
88 #endif // PHIDGETS_API_MOTOR_H double getVelocity(int index)
void setRatiometric(int ratiometric)
static int InputChangeHandler(CPhidgetMotorControlHandle phid, void *userPtr, int index, int inputState)
double getCurrent(int index)
virtual void backEMFUpdateHandler(int index, double voltage)
virtual void encoderPositionUpdateHandler(int index, int positionChange)
void setEncoderPosition(int index, int position)
static int EncoderPositionChangeHandler(CPhidgetMotorControlHandle phid, void *userPtr, int index, int time, int positionChange)
static int SensorUpdateHandler(CPhidgetMotorControlHandle phid, void *userPtr, int index, int sensorValue)
virtual void currentUpdateHandler(int index, double current)
static int EncoderPositionUpdateHandler(CPhidgetMotorControlHandle phid, void *userPtr, int index, int positionChange)
virtual ~MotorController()
static int BackEMFUpdateHandler(CPhidgetMotorControlHandle phid, void *userPtr, int index, double voltage)
bool getInputState(int index)
double getAcceleration(int index)
int getEncoderPosition(int index)
int getBackEMFSensingState(int index)
static int CurrentChangeHandler(CPhidgetMotorControlHandle phid, void *userPtr, int index, double current)
int getSensorRawValue(int index)
CPhidgetMotorControlHandle motor_handle_
virtual void encoderPositionChangeHandler(int index, int time, int positionChange)
virtual void sensorUpdateHandler(int index, int sensorValue)
static int VelocityChangeHandler(CPhidgetMotorControlHandle phid, void *userPtr, int index, double velocity)
void setVelocity(int index, double velocity)
virtual void inputChangeHandler(int index, int inputState)
double getBackEMF(int index)
int getSensorValue(int index)
void setAcceleration(int index, double acceleration)
double getBraking(int index)
void setBraking(int index, double braking)
double getSupplyVoltage()
void setBackEMFSensingState(int index, int bEMFState)
double getAccelerationMax(int index)
virtual void velocityChangeHandler(int index, double velocity)
virtual void currentChangeHandler(int index, double current)
double getAccelerationMin(int index)
static int CurrentUpdateHandler(CPhidgetMotorControlHandle phid, void *userPtr, int index, double current)