resources/libtiny/Servo.cpp
//=============================================================================
// FUNCTION:    void getServoPulseLength(uint8_t servoNumber)
//
// DESCRIPTION: Gets the pulse length of a servo slot.
//              Only works on allocated slots.
//
// INPUT:       servoNumber - which slot to get the pulse length from
//
// RETURNS:     The pulse length in microseconds
//=============================================================================
void getServoPulseLength(uint8_t servoNumber)
DESCRIPTION: Gets the pulse length of a servo slot.
Only works on allocated slots.

which slot to get the pulse length from

The pulse length in microseconds
void getServoPulseLength ( uint8_t servoNumber ) DESCRIPTION : Gets the pulse length of a servo slot . Only works on allocated slots . which slot to get the pulse length from The pulse length in microseconds
uint16_t ServoSequencer::getServoPulseLength(uint8_t servoNumber)
{
    uint16_t pulseLength = 0;
    if( (servoNumber < MAX_SERVOS      ) &&
        (servoRegistry[servoNumber].slotOccupied == true)   )
    {
        pulseLength = (servoRegistry[servoNumber].pulseLengthInTicks * 8) + 64;
    }
    else
    {
    }
    return pulseLength;
}
uint16_t ServoSequencer :: getServoPulseLength ( uint8_t servoNumber ) { uint16_t pulseLength = 0 ; if ( ( servoNumber < MAX_SERVOS ) && ( servoRegistry [ servoNumber ] . slotOccupied == true ) ) { pulseLength = ( servoRegistry [ servoNumber ] . pulseLengthInTicks * 8 ) + 64 ; } else { } return pulseLength ; }
FUNCTION:    void getServoPulseLength(uint8_t servoNumber)
DESCRIPTION: Gets the pulse length of a servo slot.
FUNCTION : void getServoPulseLength ( uint8_t servoNumber ) DESCRIPTION : Gets the pulse length of a servo slot .
//make sure we got a valid slot number and the slot is registered to a servo //Servo number is out of range or is not allocate to a servo. Do nothing.