public class SteerableSonar extends Object
| Modifier and Type | Field and Description |
|---|---|
protected double |
beamHeight
height of sonar beam (degrees)
|
protected double |
beamWidth
width of sonar beam (degrees)
|
protected double |
maxRange
maximum sonar range
|
protected int |
model
type of sonar
|
protected double |
stepSize
steering step for each increment (degrees)
|
| Constructor and Description |
|---|
SteerableSonar(UuvExecution execution,
double width,
double height,
double step,
double range,
int type)
Creates a new instance of SteerableSonar
|
| Modifier and Type | Method and Description |
|---|---|
protected double |
getBearing()
Returns the current sonar bearing
|
protected double |
getRange()
Returns the current sonar range
|
protected double |
getStrength()
Returns the current sonar strength
|
protected double |
ping()
Pings the sonar and returns the range
|
protected void |
step(int direction)
Steps the sonar right or left
|
protected double beamWidth
protected double beamHeight
protected double stepSize
protected double maxRange
protected int model
public SteerableSonar(UuvExecution execution, double width, double height, double step, double range, int type)
execution - UuvExecution reference to main class of auv executionwidth - of sonar beamheight - of sonar beamstep - size of sonar steeringrange - maximum range of sonartype - model of sonarprotected void step(int direction)
direction - the sonar is to be steppedprotected double ping()
protected double getRange()
protected double getBearing()
protected double getStrength()