DJI Mobile SDK Documentation

      class MobileRemoteController

      class MobileRemoteController extends BaseComponent
      Package:dji.sdk.mobilerc
      Inherits From:BaseComponent
      Description:

      A simulated remote controller on the mobile device to control the aircraft when the physical remote controller is absent. The mobile remote controller only supports Mode 2 control style and flight mode P. It is supported by Mavic Pro using WiFi. This object is available from the Aircraft subclass off BaseProduct.

      Class Members:
      Left Stick Vertical
      method
      method setLeftStickVertical
      void setLeftStickVertical(float data)
      Package:dji.sdk.mobilerc
      Description:

      Simulates the vertical movement of the left stick, which changes the aircraft's thrust causing it to raise or lower in elevation. The valid range is [-1, 1].

      Input Parameters:
      float dataA float value of the left stick vertical movement.
      method getLeftStickVertical
      float getLeftStickVertical()
      Package:dji.sdk.mobilerc
      Description:

      Gets the vertical movement value of the left stick.

      Return:
      floatA float value.
      Left Stick Horizontal
      method
      method setLeftStickHorizontal
      void setLeftStickHorizontal(float data)
      Package:dji.sdk.mobilerc
      Description:

      Simulates the horizontal movement of the left stick, which changes the yaw of the aircraft causing it to rotate horizontally. The valid range is [-1, 1].

      Input Parameters:
      float dataA float value of the left stick horizontal movement.
      method getLeftStickHorizontal
      float getLeftStickHorizontal()
      Package:dji.sdk.mobilerc
      Description:

      Gets the horizontal movement value of the left stick.

      Return:
      floatA float value.
      Right Stick Vertical
      method
      method setRightStickVertical
      void setRightStickVertical(float data)
      Package:dji.sdk.mobilerc
      Description:

      Simulates the vertical movement of the right stick, which changes the the aircraft's pitch causing it to fly forward or backward. The valid range is [-1, 1].

      Input Parameters:
      float dataA float value of the right stick vertical movement.
      method getRightStickVertical
      float getRightStickVertical()
      Package:dji.sdk.mobilerc
      Description:

      Gets the vertical movement value of the right stick.

      Return:
      floatA float value.
      Right Stick Horizontal
      method
      method setRightStickHorizontal
      void setRightStickHorizontal(float data)
      Package:dji.sdk.mobilerc
      Description:

      Simulates the horizontal movement of the right stick, which changes the the aircraft's roll causing it to fly left or right. The valid range is [-1, 1].

      Input Parameters:
      float dataA float value of the left stick horizontal movement.
      method getRightStickHorizontal
      float getRightStickHorizontal()
      Package:dji.sdk.mobilerc
      Description:

      Gets the horizontal movement value of the right stick.

      Return:
      floatA float value.
      Inherited Methods:
      dji.sdk.base.BaseComponent
      method
      method setComponentListener
      void setComponentListener(ComponentListener listener)
      Package:dji.sdk.base
      Description:

      Sets the listener for the DJI component.

      Input Parameters:
      ComponentListener listenerThe callback of ComponentListener.
      method
      method getIndex
      int getIndex()
      Package:dji.sdk.base
      Description:

      Returns the component index. Index is zero based. A component will have an index greater than zero when there are multiple components of the same type on the DJI product, and one of the components already has the index 0. For instance, M210 can have two gimbal mounted cameras, and will therefore have two gimbal components with indices 0 and 1, and two camera components with indices 0 and 1. For Matrice 600, there are printed numbers on the battery boxes. The Battery component instance with index 0 corresponds to battery compartment number 1. For Inspire 2 and M200 series, Battery with index 0 corresponds to the battery on the port (left hand) side of the aircraft. For M210 and M210 RTK, Camera and Gimbal with index 0 corresponds to the camera and gimbal on the port (left hand) side of the aircraft.

      Return:
      intAn int value of index.
      method isConnected
      boolean isConnected()
      Package:dji.sdk.base
      Description:

      true if the component is connected.

      Return:
      booleantrue if the component is connected.
      method getSerialNumber
      void getSerialNumber(@NonNull CompletionCallbackWith<String> callback)
      Package:dji.sdk.base
      Description:

      Gets the serial number of the component. Depending on the component, this serial number might not match the serial number found on the physical component.

      Input Parameters:
      @NonNull CompletionCallbackWith<String> callbackThe execution callback with the value returned.
      method getFirmwareVersion
      void getFirmwareVersion(@NonNull CompletionCallbackWith<String> callback)
      Package:dji.sdk.base
      Description:

      Returns the firmware version of the component. Each component will have a different firmware version, the combination of which will form the package firmware version getFirmwarePackageVersion found in BaseProduct.

      Input Parameters:
      @NonNull CompletionCallbackWith<String> callbackThe execution callback with the value(s) returned.