code/WPILib/CInterfaces/CUltrasonic.cpp
/**
 * Get the range in inches from the ultrasonic sensor.
 * @return double Range in inches of the target returned from the ultrasonic sensor. If there is
 * no valid value yet, i.e. at least one measurement hasn't completed, then return 0.
 *
 * @param pingChannel The channel on the digital module for the ping connection
 * @param echoChannel The channel on the digital module for the echo connection
 */
Get the range in inches from the ultrasonic sensor.
@return double Range in inches of the target returned from the ultrasonic sensor. If there is
no valid value yet, i.e. at least one measurement hasn't completed, then return 0.

@param pingChannel The channel on the digital module for the ping connection
@param echoChannel The channel on the digital module for the echo connection
Get the range in inches from the ultrasonic sensor . @return double Range in inches of the target returned from the ultrasonic sensor . If there is no valid value yet i . e . at least one measurement hasn ' t completed then return 0 . @param pingChannel The channel on the digital module for the ping connection @param echoChannel The channel on the digital module for the echo connection
double GetUltrasonicInches(UINT32 pingChannel, UINT32 echoChannel)
{
	return GetUltrasonicInches(SensorBase::GetDefaultDigitalModule(), pingChannel,
								SensorBase::GetDefaultDigitalModule(), echoChannel);
}
double GetUltrasonicInches ( UINT32 pingChannel , UINT32 echoChannel ) { return GetUltrasonicInches ( SensorBase :: GetDefaultDigitalModule ( ) , pingChannel , SensorBase :: GetDefaultDigitalModule ( ) , echoChannel ) ; }
Get the range in inches from the ultrasonic sensor.
Get the range in inches from the ultrasonic sensor .