code/WPILib/CInterfaces/CServo.cpp
/**
 * Get the servo position.
 *
 * Servo values range from 0.0 to 1.0 corresponding to the range of full left to full right.
 *
 * @param channel The PWM port in the module the servo is plugged into
 * @returns Position from 0.0 to 1.0.
 */
Get the servo position.
Servo values range from 0.0 to 1.0 corresponding to the range of full left to full right.

@param channel The PWM port in the module the servo is plugged into
@returns Position from 0.0 to 1.0.
Get the servo position . Servo values range from 0 . 0 to 1 . 0 corresponding to the range of full left to full right . @param channel The PWM port in the module the servo is plugged into @returns Position from 0 . 0 to 1 . 0 .
float GetServo(UINT32 channel)
{
	Servo *servo = (Servo *) AllocatePWM(channel, CreateServoStatic);
	return servo->Get();
}
float GetServo ( UINT32 channel ) { Servo * servo = ( Servo * ) AllocatePWM ( channel , CreateServoStatic ) ; return servo -> Get ( ) ; }
Get the servo position.
Get the servo position .