public enum FaaMode extends Enum<FaaMode>
FAA operating modes reported by APB, BWC, BWR, GLL, RMA, RMB, RMC, VTG, WCV and XTE sentences since NMEA 2.3. Also, the mode field in GGA was extended to contain these statuses.
Notice that FAA mode dominates the DataStatus
fields. Status field
will be set to DataStatus.ACTIVE
for modes AUTOMATIC
and
DGPS
, and DataStatus.VOID
for all other modes.
GpsFixQuality
,
GpsFixStatus
,
DataStatus
Enum Constant and Description |
---|
AUTOMATIC
Operating in autonomous mode (automatic 2D/3D).
|
DGPS
Operating in differential mode (DGPS).
|
ESTIMATED
Operating in estimating mode (dead-reckoning).
|
MANUAL
Operating in manual mode (forced 2D or 3D).
|
NONE
No valid GPS data available.
|
PRECISE
Operating in precise mode, no degradation like Selective Availability (NMEA 4.00 and later).
|
SIMULATED
Simulated data (running in simulator/demo mode)
|
Modifier and Type | Method and Description |
---|---|
char |
toChar()
Returns the corresponding char indicator of GPS mode.
|
static FaaMode |
valueOf(char ch)
Returns the FaaMode enum corresponding the actual char indicator used in
the sentencess.
|
static FaaMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FaaMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FaaMode AUTOMATIC
public static final FaaMode MANUAL
public static final FaaMode DGPS
public static final FaaMode ESTIMATED
public static final FaaMode PRECISE
public static final FaaMode SIMULATED
public static final FaaMode NONE
public static FaaMode[] values()
for (FaaMode c : FaaMode.values()) System.out.println(c);
public static FaaMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic char toChar()
public static FaaMode valueOf(char ch)
ch
- Char mode indicatorCopyright (C) 2010-2017 Java Marine API authors. All Rights Reserved.