Call: UpdateServo (String Tag, int Angle )
Input: Tagname
Output: boolean
The selected servo associated with the Tagname is set to the given angle (0-180). At the end of the main loop, all requests for updating the pin are processed and the pin value is modified. Important: Servo output pins (PWM) without a new request keep their old value. The function is called with the Tagname name of the servo. When the Tagname is not found in the set of servo pins, the function returns false, otherwise true.
Example:
Status = UpdateServo(“SERVO-003”,PIDOutput003);