-
- All Implemented Interfaces:
-
se.cpacsystems.assist.position.CorrectionType
public class PositionManager implements CorrectionType
Manager class for position.
Usage: Create object PositionManager and connect to underlying service connect.
Note! The connection towards the underlying service is asynchronous. This means that data is not ready immediately after connect, or the service is not able to serve commands. Usually the sensor data is polled and the SQI indicates SQI_INIT until ready. To know if underlying service is ready use isReady. Another way is to poll the data in onDataChanged callback.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public @interfacePositionManager.PositionAccuracy
-
Field Summary
Fields Modifier and Type Field Description private Positionpositionprivate PositionStatisticspositionStatisticsprivate PositionExtrapositionExtraprivate GnssDiagnosticsgnssDiagnostics
-
Constructor Summary
Constructors Constructor Description PositionManager(Context appC)
-
Method Summary
Modifier and Type Method Description PositiongetPosition()Returns the machine GNSS position as a Position objectThe following permissions are required: - se.cpacsystems.permission.POSITION
PositionStatisticsgetPositionStatistics()Returns the accuracy of the GNSS position as a PositionStatistics object PositionExtragetPositionExtra()Get additional position information GnssDiagnosticsgetGnssDiagnostics()Retrieve GNSS diagnostic information from RTKM10/20 unit voidconnect()voiddisconnect()booleanisReady()booleanenableInfoDiagnostics()Enables the information (blue messages). booleanenableIns(Array<float> imu2primaryAntennaTrans, Array<float> imuAngleOffsetDeg, int imuSourceAddress, int rateMs)Enables the INS functionality booleandisableIns()Disables the INS functionality booleanisInsEnabled()Check if INS is enabled. intgetCorrectionType()Returns the GNSS correction method as an intThe correction method is defined with the following values - CT_UNKNOWN = 0 - unknown correction
- CT_NONE = 1 - no correction
- CT_RTK = 2 - RTK correction with a base station
- CT_NTRIP = 3 - RTK correction with Ntrip (Networked Transport of RTCM via Internet Protocol)
- CT_LBAND = 4 - correction over L-band radio
- CT_SBAS = 5 - SBAS correction, satellite based augmentation system
intgetCorrectionStatus()Retrieve the current correction status. intgetPositionAccuracy()Retrieve GNSS position accuracy voidenableBins()Enable Hemisphere Bin satellite data message flow voiddisableBins()Disable Hemisphere Bin satellite data message flow List<Bin209>getBin209s(Array<int> sqi)Retrieve Hemisphere Bin209 satellite data List<Bin309>getBin309s(Array<int> sqi)Retrieve Hemisphere Bin309 satellite data voidsnoozeFaults(int snoozeMs)Used to temporarily disable heads-up error messages regarding position. Array<int>getDecodedRtcm()Retrieve decoded RTCM messages received from NTRIP. -
-
Constructor Detail
-
PositionManager
PositionManager(Context appC)
-
-
Method Detail
-
getPosition
Position getPosition()
Returns the machine GNSS position as a Position object
The following permissions are required:
- se.cpacsystems.permission.POSITION
-
getPositionStatistics
PositionStatistics getPositionStatistics()
Returns the accuracy of the GNSS position as a PositionStatistics object
-
getPositionExtra
PositionExtra getPositionExtra()
Get additional position information
-
getGnssDiagnostics
GnssDiagnostics getGnssDiagnostics()
Retrieve GNSS diagnostic information from RTKM10/20 unit
-
connect
void connect()
-
disconnect
void disconnect()
-
isReady
boolean isReady()
-
enableInfoDiagnostics
boolean enableInfoDiagnostics()
Enables the information (blue messages).
-
enableIns
boolean enableIns(Array<float> imu2primaryAntennaTrans, Array<float> imuAngleOffsetDeg, int imuSourceAddress, int rateMs)
Enables the INS functionality
-
disableIns
boolean disableIns()
Disables the INS functionality
-
isInsEnabled
boolean isInsEnabled()
Check if INS is enabled.
-
getCorrectionType
int getCorrectionType()
Returns the GNSS correction method as an int
The correction method is defined with the following values
- CT_UNKNOWN = 0 - unknown correction
- CT_NONE = 1 - no correction
- CT_RTK = 2 - RTK correction with a base station
- CT_NTRIP = 3 - RTK correction with Ntrip (Networked Transport of RTCM via Internet Protocol)
- CT_LBAND = 4 - correction over L-band radio
- CT_SBAS = 5 - SBAS correction, satellite based augmentation system
-
getCorrectionStatus
int getCorrectionStatus()
Retrieve the current correction status. Internal usage.
-
getPositionAccuracy
int getPositionAccuracy()
Retrieve GNSS position accuracy
-
enableBins
void enableBins()
Enable Hemisphere Bin satellite data message flow
-
disableBins
void disableBins()
Disable Hemisphere Bin satellite data message flow
-
getBin209s
List<Bin209> getBin209s(Array<int> sqi)
Retrieve Hemisphere Bin209 satellite data
-
getBin309s
List<Bin309> getBin309s(Array<int> sqi)
Retrieve Hemisphere Bin309 satellite data
-
snoozeFaults
void snoozeFaults(int snoozeMs)
Used to temporarily disable heads-up error messages regarding position.
-
getDecodedRtcm
Array<int> getDecodedRtcm()
Retrieve decoded RTCM messages received from NTRIP.
-
-
-