code/WPILib/CInterfaces/CServo.cpp
/**
 * Get the servo angle.
 *
 * Assume that the servo angle is linear with respect to the PWM value (big assumption, need to test).
 *
 * @param channel The slot the digital module is plugged into
 * @return The angle in degrees to which the servo is set.
 */
Get the servo angle.
Assume that the servo angle is linear with respect to the PWM value (big assumption, need to test).

@param channel The slot the digital module is plugged into
@return The angle in degrees to which the servo is set.
Get the servo angle . Assume that the servo angle is linear with respect to the PWM value ( big assumption need to test ) . @param channel The slot the digital module is plugged into @return The angle in degrees to which the servo is set .
float GetServoAngle(UINT32 channel)
{
	Servo *servo = (Servo *) AllocatePWM(channel, CreateServoStatic);
	return servo->GetAngle();
}
float GetServoAngle ( UINT32 channel ) { Servo * servo = ( Servo * ) AllocatePWM ( channel , CreateServoStatic ) ; return servo -> GetAngle ( ) ; }
Get the servo angle.
Get the servo angle .