public interface APBSentence extends Sentence
Autopilot sentence "type B", cross-track error, bearings and heading towards destination waypoint. This is a fixed form of the APA sentence with some ambiguities removed.
Note: Some autopilots, Robertson in particular, misinterpret "bearing from origin to destination" as "bearing from present position to destination".
Example:
$GPAPB,A,A,0.10,R,N,V,V,011,M,DEST,011,M,011,M*82
Modifier and Type | Field and Description |
---|---|
static char |
KM
Kilometers
|
static char |
NM
Nautical miles
|
ALTERNATIVE_BEGIN_CHAR, BEGIN_CHAR, CHECKSUM_DELIMITER, FIELD_DELIMITER, MAX_LENGTH, TERMINATOR
Modifier and Type | Method and Description |
---|---|
double |
getBearingOriginToDestination()
Returns bearing from origin to destination.
|
double |
getBearingPositionToDestination()
Returns the bearing from current position to destination waypoint.
|
double |
getCrossTrackError()
Returns the cross-track error magnitude/distance.
|
char |
getCrossTrackUnits()
Returns the unit of cross-track error.
|
DataStatus |
getCycleLockStatus()
Returns the Loran-C cycle lock status, not used for GPS.
|
String |
getDestionationWaypointId()
Returns the destination waypoint id/name.
|
double |
getHeadingToDestionation()
Returns the heading to steer to destination waypoint.
|
DataStatus |
getStatus()
Returns the signal/fix status, LORAN-C Blink or SNR warning.
|
Direction |
getSteerTo()
Returns the direction in which to steer in order to get back on route.
|
boolean |
isArrivalCircleEntered()
Tells if vessel has entered the arrival circle.
|
boolean |
isBearingOriginToDestionationTrue()
Tells if the bearing from origin to destination is true or magnetic.
|
boolean |
isBearingPositionToDestinationTrue()
Tells if the bearing from current position to destionation is true or
magnetic.
|
boolean |
isHeadingToDestinationTrue()
Tells if the heading to destionation is true or magnetic.
|
boolean |
isPerpendicularPassed()
Tells if vessel has passed perpendicular at waypoint.
|
void |
setArrivalCircleEntered(boolean isEntered)
Sets the arrival circle enter status.
|
void |
setBearingOriginToDestination(double bearing)
Sets the bearing from origin to destination.
|
void |
setBearingOriginToDestionationTrue(boolean isTrue)
Sets the bearing from origin to destination true or magnetic.
|
void |
setBearingPositionToDestination(double bearing)
Sets the bearing from current position to destination waypoint.
|
void |
setBearingPositionToDestinationTrue(boolean isTrue)
Sets the bearing from current position to destination true or magnetic.
|
void |
setCrossTrackError(double distance)
Sets the cross-track error magnitude/distance.
|
void |
setCrossTrackUnits(char unit)
Sets the unit of cross-track error.
|
void |
setCycleLockStatus(DataStatus status)
Sets the Loran-C cycle lock status.
|
void |
setDestinationWaypointId(String id)
Returns the destination waypoint id/name.
|
void |
setHeadingToDestination(double heading)
Sets the heading to destination waypoint.
|
void |
setHeadingToDestinationTrue(boolean isTrue)
Sets the heading to destionation true or magnetic.
|
void |
setPerpendicularPassed(boolean isPassed)
Sets the perpendicular to waypoint pass status.
|
void |
setStatus(DataStatus status)
Sets the signal/fix status, LORAN-C Blink or SNR warning.
|
void |
setSteerTo(Direction direction)
Set direction in which to steer in order to get back on route.
|
getBeginChar, getFieldCount, getSentenceId, getTalkerId, isAISSentence, isProprietary, isValid, reset, setBeginChar, setTalkerId, toSentence, toSentence, toString
static final char KM
static final char NM
double getBearingPositionToDestination()
double getBearingOriginToDestination()
double getCrossTrackError()
char getCrossTrackUnits()
DataStatus getCycleLockStatus()
String getDestionationWaypointId()
double getHeadingToDestionation()
DataStatus getStatus()
Direction getSteerTo()
Direction.LEFT
or Direction.RIGHT
boolean isArrivalCircleEntered()
boolean isBearingOriginToDestionationTrue()
boolean isBearingPositionToDestinationTrue()
boolean isHeadingToDestinationTrue()
boolean isPerpendicularPassed()
void setArrivalCircleEntered(boolean isEntered)
isEntered
- True if entered, otherwise false.void setBearingOriginToDestination(double bearing)
bearing
- bearing in degreesvoid setBearingOriginToDestionationTrue(boolean isTrue)
isTrue
- True if true bearing, false for magnetic.void setBearingPositionToDestination(double bearing)
bearing
- bearing in degreesvoid setBearingPositionToDestinationTrue(boolean isTrue)
isTrue
- True if true bearing, false for magnetic.void setCrossTrackError(double distance)
distance
- Cross-track error distance in nautical milesvoid setCrossTrackUnits(char unit)
unit
- Unit char to setvoid setCycleLockStatus(DataStatus status)
DataStatus.VOID
.status
- DataStatus to setvoid setDestinationWaypointId(String id)
id
- Waypoint ID to set.void setHeadingToDestination(double heading)
heading
- heading in degreesvoid setHeadingToDestinationTrue(boolean isTrue)
isTrue
- True if true heading, false for magnetic.void setPerpendicularPassed(boolean isPassed)
isPassed
- True if passed, otherwise false.void setStatus(DataStatus status)
status
- DataStatus to set.void setSteerTo(Direction direction)
direction
- Direction.RIGHT
or Direction.LEFT
Copyright (C) 2010-2017 Java Marine API authors. All Rights Reserved.