Classes | Defines
Phidget Motor Control
Specific Phidgets
Collaboration diagram for Phidget Motor Control:

Classes

struct  CPhidgetMotorControlInfo

Defines

#define MOTORCONTROL_ERRORFLAG_DANGERPOWER   0x0020
#define MOTORCONTROL_ERRORFLAG_HIGHPOWER   0x0010
#define MOTORCONTROL_ERRORFLAG_LOWPOWER   0x0008
#define MOTORCONTROL_ERRORFLAG_NOPOWER   0x0004
#define MOTORCONTROL_ERRORFLAG_OVERTEMP   0x0001
#define MOTORCONTROL_ERRORFLAG_UNDERVOLTAGE_LOCKOUT   0x0002
#define MOTORCONTROL_MAXENCODERS   1
#define MOTORCONTROL_MAXINPUTS   4
#define MOTORCONTROL_MAXMOTORS   2
#define MOTORCONTROL_MAXSENSORS   2

Detailed Description

These calls are specific to the Phidget Motor Control object. See your device's User Guide for more specific API details, technical information, and revision details. The User Guide, along with other resources, can be found on the product page for your device.


Define Documentation

Definition at line 262 of file cphidgetmotorcontrol.h.

#define MOTORCONTROL_ERRORFLAG_HIGHPOWER   0x0010

Definition at line 261 of file cphidgetmotorcontrol.h.

#define MOTORCONTROL_ERRORFLAG_LOWPOWER   0x0008

Definition at line 260 of file cphidgetmotorcontrol.h.

#define MOTORCONTROL_ERRORFLAG_NOPOWER   0x0004

Definition at line 259 of file cphidgetmotorcontrol.h.

#define MOTORCONTROL_ERRORFLAG_OVERTEMP   0x0001

Definition at line 257 of file cphidgetmotorcontrol.h.

Definition at line 258 of file cphidgetmotorcontrol.h.

#define MOTORCONTROL_MAXENCODERS   1

Definition at line 254 of file cphidgetmotorcontrol.h.

#define MOTORCONTROL_MAXINPUTS   4

Definition at line 253 of file cphidgetmotorcontrol.h.

#define MOTORCONTROL_MAXMOTORS   2

Gets the number of motors supported by this controller.

Parameters:
phidAn attached phidget motor control handle.
countThe motor count. Gets the current velocity of a motor.
phidAn attached phidget motor control handle.
indexThe motor index.
velocityThe current velocity. Sets the velocity of a motor.
phidAn attached phidget motor control handle.
indexThe motor index.
velocityThe velocity. Sets a velocity change event handler. This is called when the velocity changes.
phidAn attached phidget motor control handle.
fptrCallback function pointer.
userPtrA pointer for use by the user - this value is passed back into the callback function. Gets the last set acceleration of a motor.
phidAn attached phidget motor control handle.
indexThe motor index.
accelerationThe acceleration. Sets the last set acceleration of a motor.
phidAn attached phidget motor control handle.
indexThe motor index.
accelerationThe acceleration. Gets the maximum acceleration supported by a motor
phidAn attached phidget motor control handle
indexThe motor index.
maxThe maximum acceleration. Gets the minimum acceleration supported by a motor.
phidAn attached phidget motor control handle
indexThe motor index.
minThe minimum acceleration Gets the current current draw for a motor.
phidAn attached phidget motor control handle
indexThe motor index.
currentThe current. Sets a current change event handler. This is called when the current draw changes.
phidAn attached phidget motor control handle
fptrCallback function pointer.
userPtrA pointer for use by the user - this value is passed back into the callback function. Gets the number of digital inputs supported by this board.
phidAn attached phidget motor control handle.
countThe ditial input count. Gets the state of a digital input.
phidAn attached phidget motor control handle.
indexThe input index.
inputStateThe input state. Possible values are PTRUE and PFALSE. Set a digital input change handler. This is called when a digital input changes.
phidAn attached phidget motor control handle.
fptrCallback function pointer.
userPtrA pointer for use by the user - this value is passed back into the callback function. Gets the number of encoder inputs supported by this board.
phidAn attached phidget motor control handle.
countThe encoder input count. Gets the position of an encoder. This position starts at 0 every time the phidget is opened.
phidAn attached phidget motor control handle.
indexThe encoder index.
positionThe encoder position. Sets the encoder position. This can be used to set the position to a known value, and should only be called when the encoder is not moving.
phidAn attached phidget motor control handle.
indexThe encoder index.
positionThe encoder position. Set an encoder position change handler. This is called when the encoder position changes.
phidAn attached phidget motor control handle.
fptrCallback function pointer.
userPtrA pointer for use by the user - this value is passed back into the callback function. Set an encoder position update handler. This is called at a constant rate; every 8ms, whether the encoder position has changed or not.
phidAn attached phidget motor control handle.
fptrCallback function pointer.
userPtrA pointer for use by the user - this value is passed back into the callback function. Gets the Back EMF sensing state for a motor.
phidAn attached phidget motor control handle.
indexThe motor index.
bEMFStateThe back EMF sensing state. Sets the Back EMF sensing state for a motor.
phidAn attached phidget motor control handle.
indexThe motor index.
bEMFStateThe back EMF sensing state. Gets the Back EMF voltage for a motor.
phidAn attached phidget motor control handle.
indexThe motor index.
voltageThe back EMF voltage, in volts. Set a back EMF update handler. This is called at a constant rate; every 16ms, when back EMF sensing is enabled for that motor.
phidAn attached phidget motor control handle.
fptrCallback function pointer.
userPtrA pointer for use by the user - this value is passed back into the callback function. Gets the Supply voltage for the motors. This could be higher then the actual supply voltage.
phidAn attached phidget motor control handle.
supplyVoltageThe supply voltage, in volts. Gets the Braking value for a motor.
phidAn attached phidget motor control handle.
indexThe motor index.
brakingThe braking value, in percent. Sets the Braking value for a motor. This is applied when velocity is 0. Default is 0%.
phidAn attached phidget motor control handle.
indexThe motor index.
brakingThe braking value, in percent. Gets the number of sensor inputs supported by this board.
phidAn attached phidget motor control handle.
countThe sensor input count. Gets the value of a sensor.
phidAn attached phidget motor control handle.
indexThe sensor index.
sensorValueThe sensor value, range: 0-1000. Gets the raw value of a sensor (12-bit).
phidAn attached phidget motor control handle.
indexThe sensor index.
sensorRawValueThe sensor value, range: 0-4096. Set a sensor update handler. This is called at a constant rate; every 8ms.
phidAn attached phidget motor control handle.
fptrCallback function pointer.
userPtrA pointer for use by the user - this value is passed back into the callback function. Gets the ratiometric state.
phidAn attached phidget motor control handle.
ratiometricThe ratiometric state. Sets the ratiometric state. This control the voltage reference used for sampling the analog sensors.
phidAn attached phidget motor control handle.
ratiometricThe ratiometric state. Set a current update handler. This is called at a constant rate; every 8ms.
phidAn attached phidget motor control handle.
fptrCallback function pointer.
userPtrA pointer for use by the user - this value is passed back into the callback function.

Definition at line 252 of file cphidgetmotorcontrol.h.

#define MOTORCONTROL_MAXSENSORS   2

Definition at line 255 of file cphidgetmotorcontrol.h.



pedal_monitor
Author(s): Pedro Mendes
autogenerated on Fri Jun 6 2014 18:37:22