Ping ultrasonic ranging modules.
Namespace:
AForge.Robotics.SurveyorAssembly: AForge.Robotics.Surveyor (in AForge.Robotics.Surveyor.dll) Version: 2.2.3.0 (2.2.3.0)
Syntax
| C# |
|---|
public float[] UltrasonicPing( SVS..::.Camera camera ) |
Parameters
- camera
- Type: AForge.Robotics.Surveyor..::.SVS..::.Camera
SRV-1 Blackfin camera to check ultrasonic modules values.
Return Value
Returns array of ranges (distances) obtained from ultrasonic sensors. The ranges are measured in inches.
Remarks
The method calls UltrasonicPing()()() for the specified SRV-1 Blackfin camera.
Exceptions
| Exception | Condition |
|---|---|
| AForge..::.NotConnectedException | Not connected to SVS. Connect to SVS board before using this method. |
| AForge..::.ConnectionLostException | Connection lost or communicaton failure. Try to reconnect. |
| System..::.ApplicationException | Failed parsing response from SVS. |