public class SonarController extends Object
| Modifier and Type | Field and Description | 
|---|---|
| int | bearingTypebearing basis (true, magnetic, relative) | 
| double | commandedBearingcurrently commanded bearing | 
| int | controlModecurrent control mode for this sonar | 
| static double | DEFAULTSONARSCANSECTORsonar scan sweep width | 
| static double | DEFAULTSONARSTEPSIZEdefault steerable sonar step size | 
| static int | MAGNETICBEARINGenumeration for magnetic bearing | 
| static int | OTHERSONARenumeration for other sonar | 
| static int | RELATIVEBEARINGenumeration for relative bearing | 
| int | scanDirectiondirection that the sonar is currently being scanned | 
| double | scanSectorwidth (degrees) of the normal forward scan | 
| static int | SONARNOSCANenumeration for sonar to remain in same position | 
| static int | SONARSCANEDGEenumeration for sonar tracking the edge of a target | 
| static int | SONARSCANLEFTenumeration for left used in the step method | 
| static int | SONARSCANLOCATEenumeration for sonar searching for a target | 
| static int | SONARSCANMANUALenumeration for sonar being directly positioned | 
| static int | SONARSCANRIGHTenumeration for left used in the step method | 
| static int | SONARSCANSWATHenumeration for normal forward scan | 
| static int | SONARSCANTRACKenumeration for sonar tracking a target | 
| static int | ST1000SONARenumeration for ST1000 sonar type | 
| static int | ST725SONARenumeration for ST725 sonar type | 
| static int | TRUEBEARINGenumeration for true bearing | 
| Constructor and Description | 
|---|
| SonarController(UuvExecution execution,
               SteerableSonar sonar)Creates a new instance of SonarController | 
| SonarController(UuvExecution execution,
               SteerableSonar sonar,
               int direction)Creates a new instance of SonarController | 
| Modifier and Type | Method and Description | 
|---|---|
| double | getBearing()Returns the current bearing of the sonar | 
| double | getRange()Returns the current range of the sonar | 
| double | getStrength()Returns the current strength of the sonar return | 
| double | ping()Pings the controlled sonar and returns the range | 
| void | step()Steps the controlled sonar in the direction specified by the scanDirection variable | 
| void | updateStep()Conducts one iteration of sonar control based on the type of control that is current
 NOTE: This method does not ping the sonar. | 
public static final int SONARSCANRIGHT
public static final int SONARNOSCAN
public static final int SONARSCANLEFT
public static final int ST725SONAR
public static final int ST1000SONAR
public static final int OTHERSONAR
public static final int SONARSCANSWATH
public static final int SONARSCANEDGE
public static final int SONARSCANTRACK
public static final int SONARSCANLOCATE
public static final int SONARSCANMANUAL
public static final int RELATIVEBEARING
public static final int TRUEBEARING
public static final int MAGNETICBEARING
public static double DEFAULTSONARSCANSECTOR
public static double DEFAULTSONARSTEPSIZE
public int controlMode
public double scanSector
public int scanDirection
public double commandedBearing
public int bearingType
public SonarController(UuvExecution execution, SteerableSonar sonar)
execution - UuvExecution reference to main class of AUVsonar - SteerableSonar to be controlled by this controllerpublic SonarController(UuvExecution execution, SteerableSonar sonar, int direction)
execution - UuvExecution reference to main class of AUVsonar - SteerableSonar to be controlled by this controllerdirection - initial scan directionpublic void updateStep()
public double getBearing()
public double getRange()
public double getStrength()
public void step()
public double ping()