code/WPILib/CInterfaces/CServo.cpp
/**
 * Set the servo angle.
 *
 * Assume that the servo angle is linear with respect to the PWM value (big assumption, need to test).
 *
 * Servo angles that are out of the supported range of the servo simply "saturate" in that direction
 * In other words, if the servo has a range of (X degrees to Y degrees) than angles of less than X
 * result in an angle of X being set and angles of more than Y degrees result in an angle of Y being set.
 *
 * @param slot The slot the digital module is plugged into
 * @param channel The PWM channel in the module the servo is plugged into
 * @param angle The angle in degrees to set the servo.
 */
Set the servo angle.
Assume that the servo angle is linear with respect to the PWM value (big assumption, need to test).

Servo angles that are out of the supported range of the servo simply "saturate" in that direction
In other words, if the servo has a range of (X degrees to Y degrees) than angles of less than X
result in an angle of X being set and angles of more than Y degrees result in an angle of Y being set.

@param slot The slot the digital module is plugged into
@param channel The PWM channel in the module the servo is plugged into
@param angle The angle in degrees to set the servo.
Set the servo angle . Assume that the servo angle is linear with respect to the PWM value ( big assumption need to test ) . Servo angles that are out of the supported range of the servo simply " saturate " in that direction In other words if the servo has a range of ( X degrees to Y degrees ) than angles of less than X result in an angle of X being set and angles of more than Y degrees result in an angle of Y being set . @param slot The slot the digital module is plugged into @param channel The PWM channel in the module the servo is plugged into @param angle The angle in degrees to set the servo .
void SetServoAngle(UINT32 slot, UINT32 channel, float angle)
{
	Servo *servo = (Servo *) AllocatePWM(slot, channel, CreateServoStatic);
	servo->SetAngle(angle);
}
void SetServoAngle ( UINT32 slot , UINT32 channel , float angle ) { Servo * servo = ( Servo * ) AllocatePWM ( slot , channel , CreateServoStatic ) ; servo -> SetAngle ( angle ) ; }
Set the servo angle.
Set the servo angle .