|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface VHWSentence
Water speed and heading in respect to true and magnetic north.
Example:$IIVHW,,,213,M,0.00,N,,K*2F
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 | |
---|---|
double |
getMagneticHeading()
Returns the current magnetic heading. |
double |
getSpeedKmh()
Returns the current water speed. |
double |
getSpeedKnots()
Returns the current water speed. |
void |
setMagneticHeading(double hdg)
Sets the magnetic heading. |
void |
setSpeedKmh(double kmh)
Sets the water speed in km/h. |
void |
setSpeedKnots(double knots)
Sets the water speed in knots. |
Methods inherited from interface net.sf.marineapi.nmea.sentence.HeadingSentence |
---|
getHeading, isTrue, setHeading |
Methods inherited from interface net.sf.marineapi.nmea.sentence.Sentence |
---|
getBeginChar, getFieldCount, getSentenceId, getTalkerId, isProprietary, isValid, reset, setBeginChar, setTalkerId, toSentence, toSentence, toString |
Method Detail |
---|
double getMagneticHeading()
double getSpeedKmh()
double getSpeedKnots()
void setMagneticHeading(double hdg)
hdg
- Heading in degrees magnetic.
IllegalArgumentException
- If value is out of bounds [0..360]void setSpeedKmh(double kmh)
kmh
- Speed in kilmetres per hour.void setSpeedKnots(double knots)
knots
- Speed in knots (nautical miles per hour)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |