Classes | Defines | Typedefs | Enumerations | Functions | Variables
Phidget Advanced Servo
Specific Phidgets
Collaboration diagram for Phidget Advanced Servo:

Classes

struct  CPhidgetAdvancedServoInfo
struct  CPhidgetServoParameters

Defines

#define ADVSERVO_MAXSERVOS   8
#define ADVSERVO_MINMAX_PACKET   0x10
#define ADVSERVO_NORMAL_PACKET   0x00
#define ADVSERVO_PGOOD_FLAG   0x01
#define MOTOR_DISABLED_ADVSERVO   0x40
#define MOTOR_DONE_ADVSERVO   0x20
#define NO_RAMPING_FLAG_ADVSERVO   0x80

Typedefs

typedef struct
CPhidgetServoParameters
CPhidgetServoParametersHandle

Enumerations

enum  CPhidget_ServoType {
  PHIDGET_SERVO_DEFAULT = 1, PHIDGET_SERVO_RAW_us_MODE, PHIDGET_SERVO_HITEC_HS322HD, PHIDGET_SERVO_HITEC_HS5245MG,
  PHIDGET_SERVO_HITEC_805BB, PHIDGET_SERVO_HITEC_HS422, PHIDGET_SERVO_TOWERPRO_MG90, PHIDGET_SERVO_HITEC_HSR1425CR,
  PHIDGET_SERVO_HITEC_HS785HB, PHIDGET_SERVO_HITEC_HS485HB, PHIDGET_SERVO_HITEC_HS645MG, PHIDGET_SERVO_HITEC_815BB,
  PHIDGET_SERVO_FIRGELLI_L12_30_50_06_R, PHIDGET_SERVO_FIRGELLI_L12_50_100_06_R, PHIDGET_SERVO_FIRGELLI_L12_50_210_06_R, PHIDGET_SERVO_FIRGELLI_L12_100_50_06_R,
  PHIDGET_SERVO_FIRGELLI_L12_100_100_06_R, PHIDGET_SERVO_SPRINGRC_SM_S2313M, PHIDGET_SERVO_SPRINGRC_SM_S3317M, PHIDGET_SERVO_SPRINGRC_SM_S3317SR,
  PHIDGET_SERVO_SPRINGRC_SM_S4303R, PHIDGET_SERVO_SPRINGRC_SM_S4315M, PHIDGET_SERVO_SPRINGRC_SM_S4315R, PHIDGET_SERVO_SPRINGRC_SM_S4505B,
  PHIDGET_SERVO_USER_DEFINED, PHIDGET_SERVO_DEFAULT = 1, PHIDGET_SERVO_RAW_us_MODE, PHIDGET_SERVO_HITEC_HS322HD,
  PHIDGET_SERVO_HITEC_HS5245MG, PHIDGET_SERVO_HITEC_805BB, PHIDGET_SERVO_HITEC_HS422, PHIDGET_SERVO_TOWERPRO_MG90,
  PHIDGET_SERVO_HITEC_HSR1425CR, PHIDGET_SERVO_HITEC_HS785HB, PHIDGET_SERVO_HITEC_HS485HB, PHIDGET_SERVO_HITEC_HS645MG,
  PHIDGET_SERVO_HITEC_815BB, PHIDGET_SERVO_FIRGELLI_L12_30_50_06_R, PHIDGET_SERVO_FIRGELLI_L12_50_100_06_R, PHIDGET_SERVO_FIRGELLI_L12_50_210_06_R,
  PHIDGET_SERVO_FIRGELLI_L12_100_50_06_R, PHIDGET_SERVO_FIRGELLI_L12_100_100_06_R, PHIDGET_SERVO_SPRINGRC_SM_S2313M, PHIDGET_SERVO_SPRINGRC_SM_S3317M,
  PHIDGET_SERVO_SPRINGRC_SM_S3317SR, PHIDGET_SERVO_SPRINGRC_SM_S4303R, PHIDGET_SERVO_SPRINGRC_SM_S4315M, PHIDGET_SERVO_SPRINGRC_SM_S4315R,
  PHIDGET_SERVO_SPRINGRC_SM_S4505B, PHIDGET_SERVO_USER_DEFINED
}

Functions

int getServoParameterIndex (CPhidget_ServoType type)
PHIDGET21_API double CCONV servo_degrees_to_us (CPhidgetServoParameters params, double degrees)
PHIDGET21_API double CCONV servo_degrees_to_us_vel (CPhidgetServoParameters params, double degrees)
PHIDGET21_API double CCONV servo_us_to_degrees (CPhidgetServoParameters params, double us, unsigned char round)
PHIDGET21_API double CCONV servo_us_to_degrees_vel (CPhidgetServoParameters params, double us, unsigned char round)
PHIDGET21_API int CCONV setupNewAdvancedServoParams (CPhidgetAdvancedServoHandle phid, int Index, CPhidgetServoParameters newVal)

Variables

const CPhidgetServoParameters Phid_Servo_Types []

Detailed Description

These calls are specific to the Phidget Advanced Servo 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

#define ADVSERVO_MAXSERVOS   8

Gets the number of motors supported by this controller

Parameters:
phidAn attached phidget advanced servo handle.
countThe motor count. Gets the last set acceleration for a motor.
phidAn attached phidget advanced servo handle
indexThe motor index.
accelerationThe acceleration Sets the acceleration for a motor.
phidAn attached phidget advanced servo handle
indexThe motor index.
accelerationThe acceleration Gets the maximum acceleration supported by a motor
phidAn attached phidget advanced servo handle
indexThe motor index.
maxThe maximum acceleration. Gets the minimum acceleration supported by a motor.
phidAn attached phidget advanced servo handle
indexThe motor index.
minThe minimum acceleration Gets the last set velocity limit for a motor.
phidAn attached phidget advanced servo handle
indexThe motor index.
limitThe velocity limit. Sets the velocity limit for a motor.
phidAn attached phidget advanced servo handle
indexThe motor index.
limitThe velocity limit. Gets the current velocity of a motor.
phidAn attached phidget advanced servo handle
indexThe motor index.
velocityThe current velocity. Gets the maximum velocity that can be set for a motor.
phidAn attached phidget advanced servo handle
indexThe motor index.
maxThe maximum velocity Gets the minimum velocity that can be set for a motor.
phidAn attached phidget advanced servo handle
indexThe motor index.
minThe minimum velocity. Sets a velocity change event handler. This is called when the velocity changes.
phidAn attached phidget advanced servo handle
fptrCallback function pointer.
userPtrA pointer for use by the user - this value is passed back into the callback function. Gets the current position of a motor.
phidAn attached phidget advanced servo handle
indexThe motor index.
positionThe position. Sets the position of a motor.
phidAn attached phidget advanced servo handle
indexThe motor index.
positionThe position. Gets the maximum position that a motor can go to.
phidAn attached phidget advanced servo handle
indexThe motor index.
maxThe maximum position. Sets the maximum position that a motor can go to.
phidAn attached phidget advanced servo handle
indexThe motor index.
maxThe Maximum position. Gets the minimum position that a motor can go to.
phidAn attached phidget advanced servo handle
indexThe motor index.
minThe minimum position Sets the minimum position that a motor can go to.
phidAn attached phidget advanced servo handle
indexThe motor index.
minThe minimum position Sets a position change event handler. This is called when the position changes.
phidAn attached phidget advanced servo handle
fptrCallback function pointer.
userPtrA pointer for use by the user - this value is passed back into the callback function. Gets the current current draw for a motor.
phidAn attached phidget advanced servo handle
indexThe motor index.
currentThe current. Sets a current change event handler. This is called when the current draw changes.
phidAn attached phidget advanced servo handle
fptrCallback function pointer.
userPtrA pointer for use by the user - this value is passed back into the callback function. Gets the speed ramping state for a motor. This is whether or not velocity and acceleration are used.
phidAn attached phidget advanced servo handle
indexThe motor index.
rampingStateThe speed ramping state. Possible values are PTRUE and PFALSE. Sets the speed ramping state for a motor. This is whether or not velocity and acceleration are used.
phidAn attached phidget advanced servo handle
indexThe motor index.
rampingStateThe speed ramping state. Possible values are PTRUE and PFALSE. Gets the engaged state of a motor. This is whether the motor is powered or not.
phidAn attached phidget advanced servo handle
indexThe motor index.
engagedStateThe engaged state. Possible values are PTRUE and PFALSE. Sets the engaged state of a motor. This is whether the motor is powered or not.
phidAn attached phidget advanced servo handle
indexThe motor index.
engagedStateThe engaged state. Possible values are PTRUE and PFALSE. Gets the stopped state of a motor. This is true when the motor is not moving and there are no outstanding commands.
phidAn attached phidget advanced servo handle
indexThe motor index.
stoppedStateThe stopped state. Possible values are PTRUE and PFALSE. Gets the servo type of a motor.
phidAn attached phidget advanced servo handle
indexThe motor index.
servoTypeThe servo type. Sets the servo type of a motor.
phidAn attached phidget advanced servo handle
indexThe motor index.
servoTypeThe servo type. Sets the servo parameters of a motor.
phidAn attached phidget advanced servo handle
indexThe motor index.
min_usThe minimum supported PCM in microseconds.
max_usThe maximum supported PCM in microseconds.
degreesThe degrees of rotation defined by the given PCM range.
velocity_maxThe maximum velocity in degrees/second.

Definition at line 253 of file cphidgetadvancedservo.h.

#define ADVSERVO_MINMAX_PACKET   0x10

Definition at line 256 of file cphidgetadvancedservo.h.

#define ADVSERVO_NORMAL_PACKET   0x00

Definition at line 255 of file cphidgetadvancedservo.h.

#define ADVSERVO_PGOOD_FLAG   0x01

Definition at line 263 of file cphidgetadvancedservo.h.

#define MOTOR_DISABLED_ADVSERVO   0x40

Definition at line 260 of file cphidgetadvancedservo.h.

#define MOTOR_DONE_ADVSERVO   0x20

Definition at line 259 of file cphidgetadvancedservo.h.

#define NO_RAMPING_FLAG_ADVSERVO   0x80

Definition at line 261 of file cphidgetadvancedservo.h.


Typedef Documentation


Enumeration Type Documentation

The Phidget Servo Type sets the relationship of degrees to PCM width

Enumerator:
PHIDGET_SERVO_DEFAULT 

Default - This is what the servo API been historically used, originally based on the Futaba FP-S148

PHIDGET_SERVO_RAW_us_MODE 

Raw us mode - all position, velocity, acceleration functions are specified in microseconds rather then degrees

PHIDGET_SERVO_HITEC_HS322HD 

HiTec HS-322HD Standard Servo

PHIDGET_SERVO_HITEC_HS5245MG 

HiTec HS-5245MG Digital Mini Servo

PHIDGET_SERVO_HITEC_805BB 

HiTec HS-805BB Mega Quarter Scale Servo

PHIDGET_SERVO_HITEC_HS422 

HiTec HS-422 Standard Servo

PHIDGET_SERVO_TOWERPRO_MG90 

Tower Pro MG90 Micro Servo

PHIDGET_SERVO_HITEC_HSR1425CR 

HiTec HSR-1425CR Continuous Rotation Servo

PHIDGET_SERVO_HITEC_HS785HB 

HiTec HS-785HB Sail Winch Servo

PHIDGET_SERVO_HITEC_HS485HB 

HiTec HS-485HB Deluxe Servo

PHIDGET_SERVO_HITEC_HS645MG 

HiTec HS-645MG Ultra Torque Servo

PHIDGET_SERVO_HITEC_815BB 

HiTec HS-815BB Mega Sail Servo

PHIDGET_SERVO_FIRGELLI_L12_30_50_06_R 

Firgelli L12 Linear Actuator 30mm 50:1

PHIDGET_SERVO_FIRGELLI_L12_50_100_06_R 

Firgelli L12 Linear Actuator 50mm 100:1

PHIDGET_SERVO_FIRGELLI_L12_50_210_06_R 

Firgelli L12 Linear Actuator 50mm 210:1

PHIDGET_SERVO_FIRGELLI_L12_100_50_06_R 

Firgelli L12 Linear Actuator 100mm 50:1

PHIDGET_SERVO_FIRGELLI_L12_100_100_06_R 

Firgelli L12 Linear Actuator 100mm 100:1

PHIDGET_SERVO_SPRINGRC_SM_S2313M 

SpringRC SM-S2313M Micro Servo

PHIDGET_SERVO_SPRINGRC_SM_S3317M 

SpringRC SM-S3317M Small Servo

PHIDGET_SERVO_SPRINGRC_SM_S3317SR 

SpringRC SM-S3317SR Small Continuous Rotation Servo

PHIDGET_SERVO_SPRINGRC_SM_S4303R 

SpringRC SM-S4303R Standard Continuous Rotation Servo

PHIDGET_SERVO_SPRINGRC_SM_S4315M 

SpringRC SM-S4315M High Torque Servo

PHIDGET_SERVO_SPRINGRC_SM_S4315R 

SpringRC SM-S4315R High Torque Continuous Rotation Servo

PHIDGET_SERVO_SPRINGRC_SM_S4505B 

SpringRC SM-S4505B Standard Servo

PHIDGET_SERVO_USER_DEFINED 
PHIDGET_SERVO_DEFAULT 
PHIDGET_SERVO_RAW_us_MODE 
PHIDGET_SERVO_HITEC_HS322HD 
PHIDGET_SERVO_HITEC_HS5245MG 
PHIDGET_SERVO_HITEC_805BB 
PHIDGET_SERVO_HITEC_HS422 
PHIDGET_SERVO_TOWERPRO_MG90 
PHIDGET_SERVO_HITEC_HSR1425CR 
PHIDGET_SERVO_HITEC_HS785HB 
PHIDGET_SERVO_HITEC_HS485HB 
PHIDGET_SERVO_HITEC_HS645MG 
PHIDGET_SERVO_HITEC_815BB 
PHIDGET_SERVO_FIRGELLI_L12_30_50_06_R 
PHIDGET_SERVO_FIRGELLI_L12_50_100_06_R 
PHIDGET_SERVO_FIRGELLI_L12_50_210_06_R 
PHIDGET_SERVO_FIRGELLI_L12_100_50_06_R 
PHIDGET_SERVO_FIRGELLI_L12_100_100_06_R 
PHIDGET_SERVO_SPRINGRC_SM_S2313M 
PHIDGET_SERVO_SPRINGRC_SM_S3317M 
PHIDGET_SERVO_SPRINGRC_SM_S3317SR 
PHIDGET_SERVO_SPRINGRC_SM_S4303R 
PHIDGET_SERVO_SPRINGRC_SM_S4315M 
PHIDGET_SERVO_SPRINGRC_SM_S4315R 
PHIDGET_SERVO_SPRINGRC_SM_S4505B 
PHIDGET_SERVO_USER_DEFINED 

Definition at line 18 of file cphidgetadvancedservo.h.


Function Documentation

Definition at line 513 of file cphidgetadvancedservo.c.

PHIDGET21_API double CCONV servo_degrees_to_us ( CPhidgetServoParameters  params,
double  degrees 
)

Definition at line 530 of file cphidgetadvancedservo.c.

PHIDGET21_API double CCONV servo_degrees_to_us_vel ( CPhidgetServoParameters  params,
double  degrees 
)

Definition at line 540 of file cphidgetadvancedservo.c.

PHIDGET21_API double CCONV servo_us_to_degrees ( CPhidgetServoParameters  params,
double  us,
unsigned char  round 
)

Definition at line 524 of file cphidgetadvancedservo.c.

PHIDGET21_API double CCONV servo_us_to_degrees_vel ( CPhidgetServoParameters  params,
double  us,
unsigned char  round 
)

Definition at line 534 of file cphidgetadvancedservo.c.


Variable Documentation

Definition at line 484 of file cphidgetadvancedservo.c.



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