public class

DJIMobileRemoteController

extends DJIBaseComponent
java.lang.Object
   ↳ dji.sdk.base.DJIBaseComponent
     ↳ dji.sdk.mobilerc.DJIMobileRemoteController

Class Overview

A simulated remote controller on the mobile device to control the aircraft when the physical remote controller is absent. The mobile remote controller uses the american style. only supports Mode 2 control style and flight mode P. It is supported by Mavic Pro using WiFi.

Summary

Public Constructors
DJIMobileRemoteController()
Public Methods
float getLeftStickHorizontal()
Gets the horizontal movement value of the left stick.
float getLeftStickVertical()
Gets the vertical movement value of the left stick.
float getRightStickHorizontal()
Gets the horizontal movement value of the right stick.
float getRightStickVertical()
Gets the vertical movement value of the right stick.
boolean isConnected()
This is the method for detecting whether the component is connected.
void setLeftStickHorizontal(float data)
Simulates the horizontal movement of the left stick, which changes the yaw of the aircraft causing it to rotate horizontally.
void setLeftStickVertical(float data)
Simulates the vertical movement of the left stick, which changes the aircraft's thrust causing it to raise or lower in elevation.
void setRightStickHorizontal(float data)
Simulates the horizontal movement of the right stick, which changes the aircraft's roll causing it to fly left or right.
void setRightStickVertical(float data)
Simulates the vertical movement of the right stick, which changes the the aircraft's pitch causing it to fly forward or backward.
[Expand]
Inherited Methods
From class dji.sdk.base.DJIBaseComponent
From class java.lang.Object

Public Constructors

public DJIMobileRemoteController ()

Public Methods

public float getLeftStickHorizontal ()

Gets the horizontal movement value of the left stick.

Returns
  • Horizontal movement value of the left stick

public float getLeftStickVertical ()

Gets the vertical movement value of the left stick.

Returns
  • Vertical movement value of the left stick

public float getRightStickHorizontal ()

Gets the horizontal movement value of the right stick.

Returns
  • Horizontal movement value of the right stick

public float getRightStickVertical ()

Gets the vertical movement value of the right stick.

Returns
  • Vertical movement value of the right stick

public boolean isConnected ()

This is the method for detecting whether the component is connected.

public void setLeftStickHorizontal (float data)

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

public void setLeftStickVertical (float data)

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

public void setRightStickHorizontal (float data)

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

public void setRightStickVertical (float data)

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