net.sf.marineapi.nmea.sentence
Interface VDRSentence

All Superinterfaces:
Sentence

public interface VDRSentence
extends Sentence

Set and drift, true/magnetic direction and speed of current.

Example:

Author:
Kimmo Tuukkanen

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 getMagneticDirection()
          Returns the magnetic current direction.
 double getSpeed()
          Returns the current flow speed.
 double getTrueDirection()
          Returns the true direction of current.
 void setMagneticDirection(double direction)
          Sets the magnetic direction of current.
 void setSpeed(double speed)
          Sets the current flow speed.
 void setTrueDirection(double direction)
          Sets the true direction of current.
 
Methods inherited from interface net.sf.marineapi.nmea.sentence.Sentence
getBeginChar, getFieldCount, getSentenceId, getTalkerId, isProprietary, isValid, reset, setBeginChar, setTalkerId, toSentence, toSentence, toString
 

Method Detail

getMagneticDirection

double getMagneticDirection()
Returns the magnetic current direction.

Returns:
Direction in degrees
See Also:
getTrueDirection()

getSpeed

double getSpeed()
Returns the current flow speed.

Returns:
Speed in knots

getTrueDirection

double getTrueDirection()
Returns the true direction of current.

Returns:
Direction in degrees
See Also:
getMagneticDirection()

setMagneticDirection

void setMagneticDirection(double direction)
Sets the magnetic direction of current.

Parameters:
direction -

setSpeed

void setSpeed(double speed)
Sets the current flow speed.

Parameters:
speed - Speed in knots

setTrueDirection

void setTrueDirection(double direction)
Sets the true direction of current.

Parameters:
direction - Direction in degrees
See Also:
setMagneticDirection(double)


Copyright (C) 2010-2014 Java Marine API authors. All Rights Reserved.