Mavic Air 2 capabilities, the MobileRemoteController class and Mobile SDK for Android 4.16.4
CompletedI am planning to buy a DJI Mavic Air 2 for a project, but before that I would like to confirm its capabilities. According to DJI, the Air 2 supports the Mobile SDK for Android 4.16.4. In the SDK documentation, I am interested in the class MobileRemoteController, which allows the use of joystick commands to control the drone in the form setLeftStickHorizontal (float data). Thinking of using a virtual stick to control the vehicle I have the following questions:
- Does the Mavic Air 2 truly supports the MobileRemoteController class?
- Besides this class, is there a better way to control the Air 2?
case yes:
- Can I utilize the MobileRemoteController with the roll pitch control mode set to angle, and the yaw control mode to angular velocity? I ask because of the comment "The mobile remote controller only supports Mode 2 control style and flight mode P." in the class.
- When calling setLeftStickHorizontal and setRightStickVertical, these are sent one by one to the vehicle or are collected and sent at once?
- Is the mapping of the stick linear/proportional? For instance, if stick is set to 0.5, it will demand half of the maximum angle (or velocity/rate) allowed by the Air 2.
case no:
- How could I control the Mavic Air 2?
Best regards,
-
I hope this message finds you well. I would like to inform you that the Air2 does not provide support for the MobileRemoteController class. This particular class is only compatible with certain models that offer wifi control capabilities. However, the Air2 is capable of achieving similar functionalities through the virtual stick method provided by the FlightController class. -
I will thus use the FlightController class with the sendVirtualStickFlightControlData method.
I also noticed that I can set the modes to angle or velocity from the documentation as needed.
About the VirtualStick mapping, could you confirm that this is linear?
One last question: would you rather use the Mavic Air 2 or the Mavic 2 Pro for better response?
-
I hope this message finds you well. I would like to inform you that there is currently no mapping available for the virtualstick functionality. To clarify, if you wish to control the drone's speed using this feature, the set virtual stick value should correspond to the desired speed. For instance, setting the value to 10 would mean that the flight speed is 10m/s. It is worth noting that both the Air2 and Mavic 2 Pro models support this function, and there is minimal difference between the two.
Please sign in to leave a comment.
Comments
3 comments