| aServo_GetPosition | Index |
Definition:
| aErr aServo_GetPosition( | aStemLib stemRef, const unsigned char module, const unsigned char nServoIndex, unsigned char* pServoPosition); |
Parameters:
| stemRef | - | An opaque library reference representing the aStem library which manages the communication with the BrainStem modules. |
| module | - | The IIC address of the module that will return the current position for one of its servo outputs. This need not be the router. |
| nServoIndex | - | The index of the servo. |
| pServoPosition | - | Address of unsigned char where the result will be stored. |
Return Value:
Description:
This routine manages the BrainStem packets needed to request the current position of a servo output pin and receive the reply.
Related: