public class PositioningMethodSource extends Object implements IUasDatalinkValue
From ST:
Source of the navigation positioning information. (e.g., NAVSAT-GPS, NAVSAT-Galileo, INS).The Positioning Method Source is an integer interpreted as a set of bit flags. Bit zero is the Least Significant Bit (LSB).A set of flags specifying the source(s) of positioning information
A value with all bits set to zero does not have meaning and is not allowed
Map 1..(2^8-1) to 1..255.
Resolution: N/A.
Bit 0. INS (On-board Inertial Navigation System)
Bit 1. GPS
Bit 2. Galileo
Bit 3. QZSS
Bit 4. NAVIC
Bit 5. GLONASS
Bit 6. BeiDou-1
Bit 7. BeiDou-2
Modifier and Type | Field and Description |
---|---|
static int |
BEIDOU1 |
static int |
BIEDOU2 |
static int |
GALILEO |
static int |
GLONASS |
static int |
GPS |
static int |
INS |
static int |
NAVIC |
static int |
QZSS |
Constructor and Description |
---|
PositioningMethodSource(byte[] bytes)
Create from encoded bytes.
|
PositioningMethodSource(int flags)
Create from value.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getBytes()
Get the encoded bytes.
|
String |
getDisplayableValue()
Return a string of the displayable value.
|
String |
getDisplayName()
Get the human-readable name for the value.
|
int |
getPositioningSource()
Get the positioning source or sources.
|
public static final int INS
public static final int GPS
public static final int GALILEO
public static final int QZSS
public static final int NAVIC
public static final int GLONASS
public static final int BEIDOU1
public static final int BIEDOU2
public PositioningMethodSource(int flags)
flags
- The positioning source flags. Legal values are in [0, 255].public PositioningMethodSource(byte[] bytes)
bytes
- The byte array of length 1public int getPositioningSource()
public byte[] getBytes()
IUasDatalinkValue
getBytes
in interface IUasDatalinkValue
public String getDisplayableValue()
IKlvValue
getDisplayableValue
in interface IKlvValue
public final String getDisplayName()
IKlvValue
getDisplayName
in interface IKlvValue
Copyright © 2022 West Ridge Systems. All rights reserved.