code/WPILib/CInterfaces/CUltrasonic.cpp
/**
 * Initialize and Ultrasonic sensor.
 *
 * Initialize an Ultrasonic sensor to start it pinging in round robin mode with other allocated
 * sensors. There is no need to explicitly start the sensor pinging.
 *
 * @param pingSlot The slot for the digital module for the ping connection
 * @param pingChannel The channel on the digital module for the ping connection
 * @param echoSlot The slot for the digital module for the echo connection
 * @param echoChannel The channel on the digital module for the echo connection
 */
Initialize and Ultrasonic sensor.
Initialize an Ultrasonic sensor to start it pinging in round robin mode with other allocated
sensors. There is no need to explicitly start the sensor pinging.

@param pingSlot The slot for the digital module for the ping connection
@param pingChannel The channel on the digital module for the ping connection
@param echoSlot The slot for the digital module for the echo connection
@param echoChannel The channel on the digital module for the echo connection
Initialize and Ultrasonic sensor . Initialize an Ultrasonic sensor to start it pinging in round robin mode with other allocated sensors . There is no need to explicitly start the sensor pinging . @param pingSlot The slot for the digital module for the ping connection @param pingChannel The channel on the digital module for the ping connection @param echoSlot The slot for the digital module for the echo connection @param echoChannel The channel on the digital module for the echo connection
void InitUltrasonic(UINT32 pingSlot, UINT32 pingChannel, UINT32 echoSlot, UINT32 echoChannel)
{
	Ultrasonic *us = USptr(pingSlot, pingChannel);
	if (!us) USinit(pingSlot, pingChannel, echoSlot, echoChannel);
}
void InitUltrasonic ( UINT32 pingSlot , UINT32 pingChannel , UINT32 echoSlot , UINT32 echoChannel ) { Ultrasonic * us = USptr ( pingSlot , pingChannel ) ; if ( ! us ) USinit ( pingSlot , pingChannel , echoSlot , echoChannel ) ; }
Initialize and Ultrasonic sensor.
Initialize and Ultrasonic sensor .