DJI Mavic Air 2 Camera can't set mode? - dji-sdk

I'm trying to see why our DJI-enabled app isn't working correctly with the Mavic Air 2 on iOS or Android. Here I'm debugging with iOS but I've seen the same failures when briefly testing on our Android app.
When calling setMode:completion: on the single camera belonging to the Mavic Air 2, I consistently get "Current product does not support this feature.(code:-1013)"
isMediaDownloadModeSupported returns true for the camera, and yet I can't set the camera mode to media download mode at all (or any other mode).
I've found that setFlatMode:completion: seems to work ok to set photo and video modes as a sort of alternative, however this is only for photo/video modes, and won't help me with downloading media from the SD card. (right?)
Any help out there?

From my DJI Developer Support ticket for the same issue:
For the Mavic Air 2 drone, should use the setFlatMode to switch the photo, video mode, and use the enterPlayback, exitPlayback to enter/ exit the download mode.

Related

Is DJI Windows SDK compatible with RC1B remote controller and Mavic 2 Pro?

I'm trying to run the FPV demo application of the DJI Windows SDK tutorials, as shown here, I'm able to launch it but it doesn't show the image of the mavic's camera, I'm using the mavic 2 pro with a controller model RC1B. I followed the guidelines described here but it still doesn't work.
I have read in some posts that this kind of controller is not compatible with DJI Mobile SDK, does anyone know if it is the same for the DJI Windows SDK? If so, is there a way to develop an application to control the mavic 2 pro programmatically?
Thanks in advance.

PanoramaMissionOperator compatibility with DJI Mavic Pro and Phantom 4 Pro

Has anyone used PanoramaMissionOperator on the mobile SDK for android or iOS? I can't see any example code online. Also it seems to be unclear which products support the use of PanoramaMissionOperator from the documentation. When I attempt to get the state of the PanoramaMissionOperator with a Mavic Pro and Phantom 4 Pro, I get a PanoramaMissionState of DISCONNECTED.
I know the DJI documentation describes how to achieve the same with a Waypoint Mission but some drones miss photos during waypoint missions.
PanoramaMissionOperator operator = MissionControl.getInstance().getPanoramaMissionOperator();
PanoramaMissionState missionState = operator.getCurrentState();
The PanoramaMissions are only supported for OSMO devices, source:
https://developer.dji.com/mobile-sdk/documentation/introduction/component-guide-missions.html -> scroll to the bottom.
Unfortunately the SDK documentation doesn't mention this and the only hint I got there is the description of the DISCONNECTED state: "The connection between the mobile device and Osmo is broken."
https://developer.dji.com/api-reference/android-api/Components/Missions/DJIPanoramaMissionState.html#djipanoramamissionstate_disconnected_inline

How to control the Mavic 2 pro using the Virtual Controller from Windows SDK

I developed an application using DJI Windows SDK to control a Mavic 2 Pro. I manged to get all the data from the drone but when I tried to send commands to the drone through the VirtualRemoteController nothing happens
The set up is the following. I first send the command to auto-take off from my Windows app, which does it without out problems. Then, I give a position to move on my app. All the calculations are done as I expected but the drone continues hovering despite the values that I am sending are different of 0 and are on the range [-1,1].
I am getting an instance of the virtual remote controller as it follows:
VirtualRemoteController virtualController = DJISDKManager.Instance.VirtualRemoteController;
Then, I use the following command to send the movement that I want to execute:
virtualController.UpdateJoystickValue(throttle,roll,pitch,yaw);
throttle, roll, pitch and yaw are values between [-1,1]
This API is only supported for DJI aircraft that have a "WIFI-only" capability.
It is available for the Mavic Air for the Windows SDK.
The Mavic Pro supports Wifi but the Windows SDK does not support the Mavic Pro.
None of the Mavic 2 models support wifi.

How to "disable" HD screens for Windows Phone app Store?

When I started working on our company's Windows Phone app project there was no full HD resolution for WP. But now there is and I'm supposed to disable the app for full HD devices in the WP Store. How do I exactly do that?
The main reason for this is that the app has a thick black ribbon on top of the screen when used with a full HD device.
I have noticed that when you update or upload .xap file, the Store recognizes the requirements of the app. The Store says the app works on all screens. How do I set the requirements so that the app is disabled HD resolution screens?
The app is made to support WP versions 7.1 through 8. I eyed the Internet for help but it seems that because the app is WP 7 compatible I can't describe the resolutions in the WMAppManifest where the Store would easily to find it. Or can I?
It would be so great if I could do this some easy way instead of going through the whole app to make it work "better" on HD screens.
There is no way how you can prevent users with certain display resolutions from installing your app. A similar question was asked here, it was about installation prevention of apps for specific device types. What you can do is to do the check in code.
You could check the device's display resolution when starting the application. If the size exceeds your limit, you could inform the user about that and exit the application.
How can I get a screen resolution of Device (Windows Phone)
However, I don't know how this would affect the app certification.
Windows Phone 7.1 only supports 800 x 480 resolution and Windows Phone 8 supports multiple resolution.
The scaling used for Windows Phone 7x apps on Windows Phone 8 means that one 720p and 1080p devices, you will get a black band. There is nothing you can do.
You could recompile the app as Windows Phone 8 app and have both WP7x and WP8 xaps available and this will ensure that the space is consumed correctly and the black band isn't shown.

Error with Windows Phone Emulator

I am trying to get my windows phone development up and running again.
I am having serious issues with the emulator where it looks like this http://imgur.com/qM4uj
Here is my info. Running windows 8 on a computer with quad core proc and good video card.
Any ideas?
Thanks!
This page might help:
http://social.msdn.microsoft.com/Forums/en-US/wptools/thread/5b659eea-9a4f-45ce-8418-b9097d586197/
Emulator Video appears corrupted running XNA or Silverlight + XNA
game. The emulator images included in Windows Phone SDK 7.1.1 have a
compatability problem with some video cards or video card drivers. The
problem appears as corrupted display when using the XNA graphics
rendering engine in landscape orientation when system tray is visible.
To work around this problem: XNA games should either set the
orientation to portrait:
graphicsDeviceManager.SupportedOrientations = DisplayOrientation.Portrait;
-or- enable full screen mode:
graphicsDeviceManager.IsFullScreen = true;
Silverlight + XNA games which use landscape page orientation should
disable the system tray:
<phone:PhoneApplicationPage
SupportedOrientations="Landscape" Orientation="LandscapeLeft"
shell:SystemTray.IsVisible="False"

Resources