|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface RMBSentence
Recommended minimum navigation information. This sentence is transmitted by a GPS receiver when a destination waypoint is active (GOTO mode).
Example:
$GPRMB,A,0.00,R,,RUSKI,5536.200,N,01436.500,E,432.3,234.9,,V*58
| Field Summary |
|---|
| Fields inherited from interface net.sf.marineapi.nmea.sentence.Sentence |
|---|
ALTERNATIVE_BEGIN_CHAR, BEGIN_CHAR, CHECKSUM_DELIMITER, FIELD_DELIMITER, MAX_LENGTH, TERMINATOR |
| Method Summary | |
|---|---|
DataStatus |
getArrivalStatus()
Get the arrival to waypoint status. |
double |
getBearing()
Get true bearing to destination. |
double |
getCrossTrackError()
Get cross track error (XTE). |
Waypoint |
getDestination()
Get the destination waypoint. |
String |
getOriginId()
Get the ID of origin waypoint. |
double |
getRange()
Get range to destination waypoint. |
DataStatus |
getStatus()
Get the sentence data status, valid or invalid. |
Direction |
getSteerTo()
Get the direction to steer to correct error (left/right). |
double |
getVelocity()
Get velocity towards destination. |
boolean |
hasArrived()
Tells if the destination waypoint has been reached or not. |
void |
setArrivalStatus(DataStatus status)
Set the arrival to waypoint status. |
void |
setBearing(double bearing)
Set true bearing to destination, in degrees. |
void |
setCrossTrackError(double xte)
Set cross track error (XTE), in nautical miles. |
void |
setDestination(Waypoint dest)
Set the destination waypoint. |
void |
setOriginId(String id)
Set the ID of origin waypoint. |
void |
setRange(double range)
Set range to destination waypoint. |
void |
setStatus(DataStatus status)
Set status of sentence data, valid or invalid. |
void |
setSteerTo(Direction steerTo)
Set the direction to steer to correct error (left/right). |
void |
setVelocity(double velocity)
Set velocity towards destination. |
| Methods inherited from interface net.sf.marineapi.nmea.sentence.Sentence |
|---|
getBeginChar, getFieldCount, getSentenceId, getTalkerId, isProprietary, isValid, reset, setBeginChar, setTalkerId, toSentence, toSentence, toString |
| Method Detail |
|---|
DataStatus getArrivalStatus()
DataStatus.VOID
(false) while not arrived at destination, otherwise
DataStatus.ACTIVE (true).
DataStatus.ACTIVE or DataStatus.VOID
DataNotAvailableException - If the data is
not available.
ParseException - If the field contains
unexpected or illegal value.hasArrived()double getBearing()
DataNotAvailableException - If the data is
not available.
ParseException - If the field contains
unexpected or illegal value.double getCrossTrackError()
DataNotAvailableException - If the data is
not available.
ParseException - If the field contains
unexpected or illegal value.Waypoint getDestination()
DataNotAvailableException - If the data is
not available.
ParseException - If the field contains
unexpected or illegal value.String getOriginId()
DataNotAvailableException - If the data is
not available.
ParseException - If the field contains
unexpected or illegal value.double getRange()
DataNotAvailableException - If the data is
not available.
ParseException - If the field contains
unexpected or illegal value.DataStatus getStatus()
DataStatus.ACTIVE or DataStatus.VOID
DataNotAvailableException - If the data is
not available.
ParseException - If the field contains
unexpected or illegal value.Direction getSteerTo()
DataNotAvailableException - If the data is
not available.
ParseException - If the field contains
unexpected or illegal value.double getVelocity()
DataNotAvailableException - If the data is
not available.
ParseException - If the field contains
unexpected or illegal value.boolean hasArrived()
DataNotAvailableException - If arrival
status is not available.
ParseException - If the field contains
unexpected or illegal value.void setArrivalStatus(DataStatus status)
DataStatus.VOID if not
arrived at destination, otherwise DataStatus.ACTIVE.
status - DataStatus.VOID or DataStatus.ACTIVE.
IllegalArgumentException - If status is null.void setBearing(double bearing)
bearing - Bearing value, will be rounded to one decimal.
IllegalArgumentException - If bearing value is out of bounds 0..360
degrees.void setCrossTrackError(double xte)
xte - Cross track error value, will be rounded to one decimal.setSteerTo(Direction)void setDestination(Waypoint dest)
dest - Waypoint to setvoid setOriginId(String id)
id - ID to setvoid setRange(double range)
range - Range value, in nautical miles.void setStatus(DataStatus status)
status - DataStatus.ACTIVE or DataStatus.VOIDvoid setSteerTo(Direction steerTo)
steerTo - Direction.LEFT or Direction.RIGHT
IllegalArgumentException - If specified direction is any other than
defined valid for param steer.void setVelocity(double velocity)
velocity - Velocity, in knots (nautical miles per hour).
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||