| aServo_SetLimits | Index |
Definition:
| aErr aServo_SetLimits( | aStemLib stemRef, const unsigned char module, const unsigned char nServoIndex, const unsigned char pLimitBytes); |
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 receive new limits for one of its servo pins. This need not be the router. |
| nServoIndex | - | The index of the servo. |
| pLimitBytes | - | Pointer to an array of bytes that contain the new limit settings. |
Return Value:
Description:
This routine manages the BrainStem packets needed to update the limit settings of a servo output. The following defined bit masks may be used to configure servo outputs. The new limit settings are passed as 2 bytes. The first byte is a centering offset. It may range from 0 to 255. The second byte is a range or resolution parameter. It determines how far the servo moves per position increment. It may range from 1 to 70.
Related: