All the possible connection state of DJIRTKConnectionStateWithBaseStationReferenceSource when ReferenceStationSource is BASE_STATION. It is only supported by Matrice 300 RTK.
Enum Members:
IDLE
Aircraft RTK is in idle state.
SCANNING
Aircraft is scanning all base stations that are possible to be connected.
CONNECTING
The aircraft is connecting with the base station.
CONNECTED
The aircraft is connected with the base station.
DISCONNECTED
The aircraft is disconnected from the base station.
RTK is using the D-RTK 2 base station as the reference station. It is supported by Phantom 4 RTK, P4 Multispectral and Matrice 300 RTK.
CUSTOM_NETWORK_SERVICE
RTK is using third-party network service as the reference station. The network service should use NTRIP(Networked Transport of RTCM via Internet Protocol). It is supported by Phantom 4 RTK, P4 Multispectral, Matrice 210 RTK V2 and Matrice 300 RTK.
NETWORK_RTK
Default virtual reference station solution to provide cm level accurate position. The frame can be either WGS84 or CGCS 2000. Please note that this default solution can only be used in China. Please add the "djinetworkrtkhelper" to the project via gradle: implementation 'com.dji:library-networkrtk-helper:2.0.2'. It is only supported by Matrice 300 RTK and Matrice 350 RTK.
NTRIP_NETWORK_SERVICE
Ntrip network service which is used for CMCC network RTK service. It is only supported Matrice 300 RTK and Matrice 350 RTK.
This enum defines the Heading solution currently being used. The heading solution describes the method used to determine heading. And Indicates the accuracy of the getHeading. It is supported by Phantom 4 RTK and Matrice 200 Series V2.
Enum Members:
NONE
No heading solution. This can be caused by an insufficient number of satellites in view, insufficient time to lock onto the satellites, or a loss in communication link between the mobile station and base station.
voidsetPPKModeEnabled(boolean enable, @Nullable final CompletionCallback callback)
Package:
dji.sdk.flightcontroller
Description:
In PPK mode, the camera will automatically create a folder before the next photo taking, and start to record PPK data. The camera will not store the data in the created folder until PPK mode disabled. To use this interface, you must insert SD card and set camera mode to photo mode. Only supported by Phantom 4 RTK.
Input Parameters:
SOURCE_DIFFERENT enabled
true to enable PPK mode.
@Nullable final CompletionCallback callback
The execution callback with the execution result returned.
Enables RTK positioning. Disable RTK when in poor signal environments, where incorrect positioning information might make controlling the aircraft difficult. Can only be set when the motors are off.
Input Parameters:
boolean enabled
true to enable RTK positioning.
@Nullable final CompletionCallback callback
The execution callback with the execution result returned.
voidgetRtkEnabled(@NonNull final CommonCallbacks.CompletionCallbackWith<Boolean> callback)
Package:
dji.sdk.flightcontroller
Description:
Determines if RTK is enabled. Phantom 4 RTK has different behavior from the other products that supports RTK: - For aircrafts except Phantom 4 RTK, disabling RTK will stop RTK from pushing valid position. - For Phantom 4 RTK, RTK will continue to push latest RTK coordinate if there is strong satellite signal after disabling RTK. However, the flight controller will not use the RTK coordinate for navigation.
Input Parameters:
@NonNull final CommonCallbacks.CompletionCallbackWith<Boolean> callback
voidsetReferenceStationSource(@NonNull final ReferenceStationSource source, @Nullable final CompletionCallback callback)
Package:
dji.sdk.flightcontroller
Description:
Sets the reference station source that provides real-time corrections for the RTK air system. It is only supported by Phantom 4 RTK. For Matrice 210 RTK, Matrice 600 series and Mavic 2 Enterprise Advanced, the reference station is always the physical base station.
voidstartSearchBaseStation(@Nullable final CompletionCallback callback)
Package:
dji.sdk.flightcontroller
Description:
Used to start searching for DJI base station that can be controlled with the Mobile SDK. Searching will automatically stop after a base station is connected. Only can be used when current ReferenceStationSource is BASE_STATION. It is supported only by Matrice 300 RTK.
voidstopSearchBaseStation(@Nullable final CompletionCallback callback)
Package:
dji.sdk.flightcontroller
Description:
Used to stop searching for DJI base station that can be controlled with the Mobile SDK. If searching is stopped without selecting a base station, the last connected base station will be reconnected. Only can be used when current ReferenceStationSource is BASE_STATION. It is supported only by Matrice 300 RTK.
voidconnectToBaseStation(long baseStationID, @Nullable final CompletionCallback callback)
Package:
dji.sdk.flightcontroller
Description:
Choose a base station to connect by base station's ID. Only can be used when current ReferenceStationSource is BASE_STATION. It is supported only by Matrice 300 RTK.
Input Parameters:
long baseStationID
The base station's ID that chosen to be connected.
voidsetRTKMaintainPositioningAccuracyModeEnabled(boolean enabled, @Nullable final CompletionCallback callback)
Package:
dji.sdk.flightcontroller
Description:
Sets RTK maintain position accuracy mode enable. When enabled is TRUE`, the aircraft will maintain position accuracy about 10 minutes after losing RTK signal. Only supported by Phantom 4 RTK. When the aircraft is in Maintain Positioning Accuracy mode: 1. The aircraft positioning accuracy will decrease gradually. Be sure to fly with caution. Stop the flight or reconnect to the RTK signal source immediately to avoid flight hazards. 2. Flying the aircraft for a long distance (for example, automatically performing operations alongside the planned flight route), or controlling the aircraft with a large stick movement will lead to faster positioning accuracy decrease. 3. The RtkFlag of the images the aircraft captured is 16(Point Positioning), which cannot meet the requirements for mapping. It is not recommended to use Maintain Positioning Accuracy mode in flight route operations, especially in operations with an absolute altitude. This mode is more suitable for inspection or waypoint operations.
Input Parameters:
boolean enabled
true to enable RTK maintain positioning accuracy mode.
@Nullable final CompletionCallback callback
The execution callback with the returned execution result.