Functions | Variables
cphidgetservo.c File Reference
#include "stdafx.h"
#include "cphidgetservo.h"
#include "cusb.h"
#include "csocket.h"
#include "cthread.h"
Include dependency graph for cphidgetservo.c:

Go to the source code of this file.

Functions

return CPhidgetServo_getEngaged (phid, Index, pVal)
return CPhidgetServo_getMotorCount (phid, pVal)
return CPhidgetServo_getPosition (phid, Index, pVal)
return CPhidgetServo_getPositionMax (phid, Index, pVal)
return CPhidgetServo_getPositionMin (phid, Index, pVal)
return CPhidgetServo_setEngaged (phid, Index, newVal)
return CPhidgetServo_setPosition (phid, Index, newVal)
PHIDGET21_API int CCONV CPhidgetServo_setServoParameters (CPhidgetServoHandle phid, int Index, double min_us, double max_us, double degrees)
 for (i=0;i< SERVO_MAXSERVOS;i++)
 for (i=0;i< phid->phid.attr.servo.numMotors;i++)
 if (phid->fullStateEcho)
 if ()
TESTATTACHED TESTATTACHED if (phid->motorEngagedStateEcho[Index]!=PTRUE)
TESTATTACHED TESTATTACHED if (CPhidget_statusFlagIsSet(phid->phid.status, PHIDGET_REMOTE_FLAG))
TESTATTACHED TESTATTACHED setupNewServoParams (phid, Index, Phid_Servo_Types[getServoParameterIndex(newVal)])
 switch (phid->phid.deviceIDSpec)
 TESTPTR (phid)
 TESTPTRS (phid, buffer)
TESTATTACHED TESTRANGE (servo_us_to_degrees(phid->servoParams[Index], phid->motorPositionMin[Index], PFALSE), servo_us_to_degrees(phid->servoParams[Index], phid->motorPositionMax[Index], PFALSE))

Variables

return EPHIDGET_OK
phid fullStateEcho = PUNK_BOOL
int i = 0
double lastPosition [SERVO_MAXSERVOS]
phid motorPositionMaxLimit = PUNI_DBL
phid motorPositionMinLimit = PUNI_DBL
phid outputPacketLen = 0
double position [SERVO_MAXSERVOS]
pVal = servo_us_to_degrees(phid->servoParams[Index], phid->motorPositionEcho[Index], PTRUE)

Function Documentation

return CPhidgetServo_getEngaged ( phid  ,
Index  ,
pVal   
)
return CPhidgetServo_getMotorCount ( phid  ,
pVal   
)
return CPhidgetServo_getPosition ( phid  ,
Index  ,
pVal   
)
return CPhidgetServo_getPositionMax ( phid  ,
Index  ,
pVal   
)
return CPhidgetServo_getPositionMin ( phid  ,
Index  ,
pVal   
)
return CPhidgetServo_setEngaged ( phid  ,
Index  ,
newVal   
)
return CPhidgetServo_setPosition ( phid  ,
Index  ,
newVal   
)
PHIDGET21_API int CCONV CPhidgetServo_setServoParameters ( CPhidgetServoHandle  phid,
int  Index,
double  min_us,
double  max_us,
double  degrees 
)

Definition at line 492 of file cphidgetservo.c.

for ( )

Definition at line 17 of file cphidgetservo.c.

for ( i  = 0; i<phid->phid.attr.servo.numMotors; i++)

Definition at line 82 of file cphidgetservo.c.

if ( phid->  fullStateEcho)

Definition at line 97 of file cphidgetservo.c.

if ( )

Definition at line 118 of file cphidgetservo.c.

TESTATTACHED TESTATTACHED if ( phid->motorEngagedStateEcho!  [Index] = PTRUE)

Definition at line 349 of file cphidgetservo.c.

Definition at line 431 of file cphidgetservo.c.

TESTATTACHED TESTATTACHED setupNewServoParams ( phid  ,
Index  ,
Phid_Servo_Types  [getServoParameterIndex(newVal)] 
)
switch ( phid->phid.  deviceIDSpec)

Definition at line 42 of file cphidgetservo.c.

TESTPTR ( phid  )
TESTPTRS ( phid  ,
buffer   
)

Definition at line 359 of file cphidgetservo.c.


Variable Documentation

return EPHIDGET_OK

Definition at line 28 of file cphidgetservo.c.

Definition at line 15 of file cphidgetservo.c.

int i = 0

Definition at line 11 of file cphidgetservo.c.

Definition at line 116 of file cphidgetservo.c.

Definition at line 13 of file cphidgetservo.c.

Definition at line 14 of file cphidgetservo.c.

Definition at line 39 of file cphidgetservo.c.

Definition at line 115 of file cphidgetservo.c.

TESTATTACHED* pVal = servo_us_to_degrees(phid->servoParams[Index], phid->motorPositionEcho[Index], PTRUE)

Definition at line 351 of file cphidgetservo.c.



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