| typedef struct _CPhidgetAdvancedServo* CPhidgetAdvancedServoHandle |
A Phidget AdvancedServo handle
| enum CPhidget_ServoType |
The Phidget Servo Type sets the relationship of degrees to PCM width
| int CPhidgetAdvancedServo_create | ( | CPhidgetAdvancedServoHandle * | phid | ) |
Creates a Phidget AdvancedServo handle.
| phid | A pointer to an unallocated Phidget AdvancedServo handle. |
| int CPhidgetAdvancedServo_getMotorCount | ( | CPhidgetAdvancedServoHandle | phid, | |
| int * | count | |||
| ) |
Gets the number of motors supported by this controller
| phid | An attached phidget advanced servo handle. | |
| count | The motor count. |
| int CPhidgetAdvancedServo_getAcceleration | ( | CPhidgetAdvancedServoHandle | phid, | |
| int | index, | |||
| double * | acceleration | |||
| ) |
Gets the last set acceleration for a motor.
| phid | An attached phidget advanced servo handle | |
| index | The motor index. | |
| acceleration | The acceleration |
| int CPhidgetAdvancedServo_setAcceleration | ( | CPhidgetAdvancedServoHandle | phid, | |
| int | index, | |||
| double | acceleration | |||
| ) |
Sets the acceleration for a motor.
| phid | An attached phidget advanced servo handle | |
| index | The motor index. | |
| acceleration | The acceleration |
| int CPhidgetAdvancedServo_getAccelerationMax | ( | CPhidgetAdvancedServoHandle | phid, | |
| int | index, | |||
| double * | max | |||
| ) |
Gets the maximum acceleration supported by a motor
| phid | An attached phidget advanced servo handle | |
| index | The motor index. | |
| max | The maximum acceleration. |
| int CPhidgetAdvancedServo_getAccelerationMin | ( | CPhidgetAdvancedServoHandle | phid, | |
| int | index, | |||
| double * | min | |||
| ) |
Gets the minimum acceleration supported by a motor.
| phid | An attached phidget advanced servo handle | |
| index | The motor index. | |
| min | The minimum acceleration |
| int CPhidgetAdvancedServo_getVelocityLimit | ( | CPhidgetAdvancedServoHandle | phid, | |
| int | index, | |||
| double * | limit | |||
| ) |
Gets the last set velocity limit for a motor.
| phid | An attached phidget advanced servo handle | |
| index | The motor index. | |
| limit | The velocity limit. |
| int CPhidgetAdvancedServo_setVelocityLimit | ( | CPhidgetAdvancedServoHandle | phid, | |
| int | index, | |||
| double | limit | |||
| ) |
Sets the velocity limit for a motor.
| phid | An attached phidget advanced servo handle | |
| index | The motor index. | |
| limit | The velocity limit. |
| int CPhidgetAdvancedServo_getVelocity | ( | CPhidgetAdvancedServoHandle | phid, | |
| int | index, | |||
| double * | velocity | |||
| ) |
Gets the current velocity of a motor.
| phid | An attached phidget advanced servo handle | |
| index | The motor index. | |
| velocity | The current velocity. |
| int CPhidgetAdvancedServo_getVelocityMax | ( | CPhidgetAdvancedServoHandle | phid, | |
| int | index, | |||
| double * | max | |||
| ) |
Gets the maximum velocity that can be set for a motor.
| phid | An attached phidget advanced servo handle | |
| index | The motor index. | |
| max | The maximum velocity |
| int CPhidgetAdvancedServo_getVelocityMin | ( | CPhidgetAdvancedServoHandle | phid, | |
| int | index, | |||
| double * | min | |||
| ) |
Gets the minimum velocity that can be set for a motor.
| phid | An attached phidget advanced servo handle | |
| index | The motor index. | |
| min | The minimum velocity. |
| int CPhidgetAdvancedServo_set_OnVelocityChange_Handler | ( | CPhidgetAdvancedServoHandle | phid, | |
| int(*)(CPhidgetAdvancedServoHandle phid, void *userPtr, int index, double velocity) | fptr, | |||
| void * | userPtr | |||
| ) |
Sets a velocity change event handler. This is called when the velocity changes.
| phid | An attached phidget advanced servo handle | |
| fptr | Callback function pointer. | |
| userPtr | A pointer for use by the user - this value is passed back into the callback function. |
| int CPhidgetAdvancedServo_getPosition | ( | CPhidgetAdvancedServoHandle | phid, | |
| int | index, | |||
| double * | position | |||
| ) |
Gets the current position of a motor.
| phid | An attached phidget advanced servo handle | |
| index | The motor index. | |
| position | The position. |
| int CPhidgetAdvancedServo_setPosition | ( | CPhidgetAdvancedServoHandle | phid, | |
| int | index, | |||
| double | position | |||
| ) |
Sets the position of a motor.
| phid | An attached phidget advanced servo handle | |
| index | The motor index. | |
| position | The position. |
| int CPhidgetAdvancedServo_getPositionMax | ( | CPhidgetAdvancedServoHandle | phid, | |
| int | index, | |||
| double * | max | |||
| ) |
Gets the maximum position that a motor can go to.
| phid | An attached phidget advanced servo handle | |
| index | The motor index. | |
| max | The maximum position. |
| int CPhidgetAdvancedServo_setPositionMax | ( | CPhidgetAdvancedServoHandle | phid, | |
| int | index, | |||
| double | max | |||
| ) |
Sets the maximum position that a motor can go to.
| phid | An attached phidget advanced servo handle | |
| index | The motor index. | |
| max | The Maximum position. |
| int CPhidgetAdvancedServo_getPositionMin | ( | CPhidgetAdvancedServoHandle | phid, | |
| int | index, | |||
| double * | min | |||
| ) |
Gets the minimum position that a motor can go to.
| phid | An attached phidget advanced servo handle | |
| index | The motor index. | |
| min | The minimum position |
| int CPhidgetAdvancedServo_setPositionMin | ( | CPhidgetAdvancedServoHandle | phid, | |
| int | index, | |||
| double | min | |||
| ) |
Sets the minimum position that a motor can go to.
| phid | An attached phidget advanced servo handle | |
| index | The motor index. | |
| min | The minimum position |
| int CPhidgetAdvancedServo_set_OnPositionChange_Handler | ( | CPhidgetAdvancedServoHandle | phid, | |
| int(*)(CPhidgetAdvancedServoHandle phid, void *userPtr, int index, double position) | fptr, | |||
| void * | userPtr | |||
| ) |
Sets a position change event handler. This is called when the position changes.
| phid | An attached phidget advanced servo handle | |
| fptr | Callback function pointer. | |
| userPtr | A pointer for use by the user - this value is passed back into the callback function. |
| int CPhidgetAdvancedServo_getCurrent | ( | CPhidgetAdvancedServoHandle | phid, | |
| int | index, | |||
| double * | current | |||
| ) |
Gets the current current draw for a motor.
| phid | An attached phidget advanced servo handle | |
| index | The motor index. | |
| current | The current. |
| int CPhidgetAdvancedServo_set_OnCurrentChange_Handler | ( | CPhidgetAdvancedServoHandle | phid, | |
| int(*)(CPhidgetAdvancedServoHandle phid, void *userPtr, int index, double current) | fptr, | |||
| void * | userPtr | |||
| ) |
Sets a current change event handler. This is called when the current draw changes.
| phid | An attached phidget advanced servo handle | |
| fptr | Callback function pointer. | |
| userPtr | A pointer for use by the user - this value is passed back into the callback function. |
| int CPhidgetAdvancedServo_getSpeedRampingOn | ( | CPhidgetAdvancedServoHandle | phid, | |
| int | index, | |||
| int * | rampingState | |||
| ) |
| int CPhidgetAdvancedServo_setSpeedRampingOn | ( | CPhidgetAdvancedServoHandle | phid, | |
| int | index, | |||
| int | rampingState | |||
| ) |
| int CPhidgetAdvancedServo_getEngaged | ( | CPhidgetAdvancedServoHandle | phid, | |
| int | index, | |||
| int * | engagedState | |||
| ) |
| int CPhidgetAdvancedServo_setEngaged | ( | CPhidgetAdvancedServoHandle | phid, | |
| int | index, | |||
| int | engagedState | |||
| ) |
| int CPhidgetAdvancedServo_getStopped | ( | CPhidgetAdvancedServoHandle | phid, | |
| int | index, | |||
| int * | stoppedState | |||
| ) |
| int CPhidgetAdvancedServo_getServoType | ( | CPhidgetAdvancedServoHandle | phid, | |
| int | index, | |||
| CPhidget_ServoType * | servoType | |||
| ) |
Gets the servo type of a motor.
| phid | An attached phidget advanced servo handle | |
| index | The motor index. | |
| servoType | The servo type. |
| int CPhidgetAdvancedServo_setServoType | ( | CPhidgetAdvancedServoHandle | phid, | |
| int | index, | |||
| CPhidget_ServoType | servoType | |||
| ) |
Sets the servo type of a motor.
| phid | An attached phidget advanced servo handle | |
| index | The motor index. | |
| servoType | The servo type. |
| int CPhidgetAdvancedServo_setServoParameters | ( | CPhidgetAdvancedServoHandle | phid, | |
| int | index, | |||
| double | min_us, | |||
| double | max_us, | |||
| double | degrees, | |||
| double | velocity_max | |||
| ) |
Sets the servo parameters of a motor.
| phid | An attached phidget advanced servo handle | |
| index | The motor index. | |
| min_us | The minimum supported PCM in microseconds. | |
| max_us | The maximum supported PCM in microseconds. | |
| degrees | The degrees of rotation defined by the given PCM range. | |
| velocity_max | The maximum velocity in degrees/second. |
1.5.9