code/WPILib/CInterfaces/CServo.cpp
/**
 * Free the resources associated with this Servo object.
 * The underlying Servo object and the allocated ports are freed.
 *
 * @param slot The slot the digital module is plugged into
 * @param channel The PWM port in the module the servo is plugged into
 */
Free the resources associated with this Servo object.
The underlying Servo object and the allocated ports are freed.

@param slot The slot the digital module is plugged into
@param channel The PWM port in the module the servo is plugged into
Free the resources associated with this Servo object . The underlying Servo object and the allocated ports are freed . @param slot The slot the digital module is plugged into @param channel The PWM port in the module the servo is plugged into
void DeleteServo(UINT32 slot, UINT32 channel)
{
	Servo *servo = (Servo *) AllocatePWM(slot, channel, CreateServoStatic);
	DeletePWM(slot, channel);
	delete servo;
}
void DeleteServo ( UINT32 slot , UINT32 channel ) { Servo * servo = ( Servo * ) AllocatePWM ( slot , channel , CreateServoStatic ) ; DeletePWM ( slot , channel ) ; delete servo ; }
Free the resources associated with this Servo object.
Free the resources associated with this Servo object .