Package 

Class PositionManager

  • 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.

    • 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
      • 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.

      • enableBins

         void enableBins()

        Enable Hemisphere Bin satellite data message flow

      • disableBins

         void disableBins()

        Disable Hemisphere Bin satellite data message flow

      • snoozeFaults

         void snoozeFaults(int snoozeMs)

        Used to temporarily disable heads-up error messages regarding position.