resources/libtiny/Servo.cpp
//=============================================================================
// FUNCTION:    bool deregisterServo(uint8_t servoSlotNumber)
//
// DESCRIPTION: Frees up a slot in the pulse sequence.
//
// INPUT:       servoSlotNumber - The slot number to deallocate.
//
// RETURNS:     Nothing
//=============================================================================
bool deregisterServo(uint8_t servoSlotNumber)
DESCRIPTION: Frees up a slot in the pulse sequence.

The slot number to deallocate.

Nothing
bool deregisterServo ( uint8_t servoSlotNumber ) DESCRIPTION : Frees up a slot in the pulse sequence . The slot number to deallocate . Nothing
void ServoSequencer::deregisterServo(uint8_t servoSlotNumber)
{
    if(servoSlotNumber < MAX_SERVOS)
    {
        servoRegistry[servoSlotNumber].enabled      = false;
        servoRegistry[servoSlotNumber].slotOccupied = false;
    servoRegistry[servoSlotNumber].pulseLengthInTicks = 128; 
    }
    else
    {
    }
}
void ServoSequencer :: deregisterServo ( uint8_t servoSlotNumber ) { if ( servoSlotNumber < MAX_SERVOS ) { servoRegistry [ servoSlotNumber ] . enabled = false ; servoRegistry [ servoSlotNumber ] . slotOccupied = false ; servoRegistry [ servoSlotNumber ] . pulseLengthInTicks = 128 ; } else { } }
FUNCTION:    bool deregisterServo(uint8_t servoSlotNumber)
DESCRIPTION: Frees up a slot in the pulse sequence.
FUNCTION : bool deregisterServo ( uint8_t servoSlotNumber ) DESCRIPTION : Frees up a slot in the pulse sequence .
//make sure we got a valid slot number //restore the pulse length to the default setting. //we got a slot number that is out of range. Do nothing.