OSDK4.x: Can you use DJI Assistant 2 for Matrice with payload actions? - dji-sdk

Is it possible with OSDK4.x to command payload and flight actions and use the DJI Assistant 2 for Matrice concurrently?
Previously, we have been using the M210V1 with OSDK3.9. Using the DJI Assistant 2 for Matrice to simulate the drone flight is key to our ability to develop our system.
However, the M210V2 and OSDK4.x require the USB port of the drone to be connected to the Linux device running the OSDK, otherwise any payload (GimbalManager, CameraManager) actions throw an error - such as GimbalManager::resetSync.
This is not ideal for development since we cannot use the simulator (on MacOS) and connect the USB to the Linux device (there is only one USB port on the drone). Has anyone solved this problem?

Yes and no.
For 210, There is only one USB2 port and it is either for connecting to PC side assitant2 or connecting to onboard PC to get osdk stream. You can think it as a bug in design phases.
Yes, you can run part of osdk and run the simulator without the payload camera-related function. If I recall correctly, I can still "rostopic echo" the Gimbal orientation topic from the drone. Its only image topic that is disabled. You can simulate the GPS based flight in simulator and try to set gimbal direction. I remember this was achievable.
There is no way for you to run both simulators and get payload functions such as images from OSDK. so to get both image running and drone running in simulator that's not achievable.
If you really wants both at same time. I suggest you move to M300 which they have dual USB C interface for both camera stream and for simulation.

Related

How can I get a shutter signl of the Matrice 600 (PRO) A3?

I have an M600 PRO (A3) and I need to connect an Arduino to it to receive a drone shutter.
In fact, I would like to use Drone Deploy with a photo of each waypoint and at the time of each photo I would like my arduino to receive this signal to perform a specific task. I have no camera attached to the drone.
Could someone help me with this task? I've already been able to connect A3 to the Arduino. I still can not understand the data bus fault.
i already connect one Arduino to the DJI MAtrice 600 Pro, but I do not found the hexa-Code related with shutter sign
I would like to receive the shutter sign from Matrice 600 in my Arduino, in order to program a special task related with this sign.
Since you say you want to use Drone Deploy, you won't be able to use the Mobile SDK and will need to build something with the Onboard SDK. It's unclear what you want since you say you have no camera but want to trigger something every time a picture is taken.
If you just want to detect when Drone Deploy tries to take a picture, you may get an error depending on if the sdk thinks there is a camera detected or not. I haven't tried the Onboard SDK much or especially tried without a camera attached so I don't know if an error will result or if you can set the trigger in the take picture callback.
Either way the best place to start is probably the Camera sample onboard sdk app.

Can I test my DJI SDK for Windows 10 application with a DJI Drone simulator without the risk of running a real DJI Drone?

Can I test my DJI SDK for Windows 10 application with a DJI Drone simulator without the risk of running a real DJI Drone?
I am asking since it is cumbersome to have developers run a real drone in their office to test what they are building.
There are 2 ways to test applications but both require a physical drone.
1) Download and install the PC Simulator; this is a game-engine that connects the PC (USB) to a drone and displays the flight operations. It is available online under the developer downloads.
2) Using the API, you can enable simulator. This method is not as good because you cannot see in real-time what the aircraft is doing unless you receive and display flight details within your app.
Both act the same to the PC simulator can be easier to evaluate and observe the flight operation.
You can set your drone in a simulator mode using the APIs.
This will make your drone respond as if it was flying, but the motors won't turn on.
After that, you can use the DJI Assistant to visualize the aircraft moving in a simulated 3D environment.

Questions about phantom 4 pro, connection and programming method of inspire 2

이후선
11月7日 CST14:30
Can Phantom 4 and Inspire 2 be programmed on a PC?
I wonder if I can program the drones directly through the PC and acquire the images.
Phantom 4 has a smart device attached. I wonder if I can use the other smart device (iPhone, iPad) to control the dron without using the smart device which is basically installed.
In case of Inspire 2, I use smart device and controller with USB connection. I wonder if smart device and controller can be connected wirelessly without using USB.
I am curious about the communication method of Phantom 4 and Inspire 2.
I wonder what communication frequency should be used to directly control the drone via PC.
I wonder if I can program Phantom 4, Inspire 2 using the DJI Developer-ONBOARD SDK.
thank you..
No, you would need to use the mobile SDK as a bridge (PC talks to the mobile app, mobile app controls the aircraft)
I'm not sure which smart device you mention. If you mention the Phantom 4 Pro remote controller with attached screen, you can just swap to a regular remote without and use an iOS or Android device. In case of the Crystal Sky, you can simply remove it and use another device.
Unfortunately no.
PC control see #1, frequency, 2.4 and 5.8 GHz are commonly used and configurable using DJI Go.
Unfortunately no, for OnBoardSDK supported products see at the bottom of this page.
I can not comment yet. So this is rather additional option how to get video/images from Phantom 4 to PC directly.
1.In the menu of DJI GO app you can setup video streaming, trough RTMP. So video in resolution 720p will be stream.See this tutorial https://afsyaw.wordpress.com/2017/07/06/processing-images-from-the-dji-matrice-100-and-zenmuse-x3-without-the-manifold/
2.While on your Linux machine you can setup video stream server such as NGINX.Tutorial here https://obsproject.com/forum/resources/how-to-set-up-your-own-private-rtmp-server-using-nginx.50/
3.Than you can use OpenCV usb-video lib for ROS to process video or images.
If you have Matrice 100. There is also existing HDMI port on the controller. If you will use USB-HDMI grabber such as Immilet or Magwel - both support Mac,Windows,Linux drivers.You can skip step 1, also video stream is better.

How can i imitate DJI's Lightbridge system

I would like to know all of Lightbridge, Phantom 4 Pro, Inspiron 2's controller and drones communication method.
I have many drones from DJI including Phantom 4 Pro, Inspire 2, and Matrice 100.
I want to create a Lightbridge system that is mounted inside the controller through PC programming.
Because the DJI drones I purchased connect the mobile device and the controller with USB cable, and the controller and the drone communicate with the Lightbridge, so the controller must be in the middle of the communication system, but I just want to control the drones directly through my PC.
As a result, how can I imitate the Lightbridge system to communicate with my PC, control (takeoff,landing etc.) , and capture live images.
So I'd like to know about the Lightbridge that helps.
Lightbride is a proprietary protocol. That means we (I work at DJI) do not disclose or document the details of its implementation.
On another hand, removing the remote controller would mean you create/provide your own transmitter which add quite a lot of complexity.
The best way for you to control the aircraft from the PC at this point is to write a mobile app as a bridge and control the app through your PC.
Now, this can be done in a wired manner:
You could write an Android app with the mobile SDK on a device with ethernet such as Odroid and chain it all together.

Does DJI mavic-pro supports Follow me on wifi mode

I am developing an Android app for Mavic-pro drone in which I need to use the follow me APIs. But in DJI Go app when we connected to the drone by wifi it doesn't shows the follow me feature. Can somebody please confirm whether the drone supports Follow me on wifi mode?
Nope, DJI Mavic Pro doesn't support Follow Me Mission on WiFi mode. You can check the SDK API Doc of DJIFollowMeMission on DJI Developer Website: http://developer.dji.com/api-reference/ios-api/Components/Missions/DJIFollowMeMission.html#djifollowmemission
Description:
The class represents a Follow Me mission. In a Follow Me mission, the aircraft is programmed to track and maintain a constant distant relative to some object, such as a person or a moving vehicle. You can use it to make the aircraft follow a GPS device, such as a remote controller with a GPS signal or a mobile device. It is not supported by Mavic Pro when using WiFi connection. It is not supported by Spark.

Resources