You are running an older browser. Please upgrade your browser for better experience. Consumer Drones Comparison Osmo Comparison. Shot on DJI. Short Film. DJI Pro. Public Safety.
Flight Controllers Increased reliability and precision A3 N3. Repair Services One-stop aftersales service for worry-free repairs. Services Plans Comprehensive care services providing peace of mind. More Services Master your product with these guides. Proceed to Checkout. Login Register.
Top Downloads. DJI Apps. DJI Assistant 2 Series. DJI Assistant Series. Other Software. Mavic Series. Spark Series. Phantom Series. Matrice Series. Zenmuse Series. Osmo Series. Ronin Series.
DJI Developer Technologies
Inspire Series.You are running an older browser. Please upgrade your browser for better experience. Capture the world from above. Compatible with the Mavic Series, Spark, Phantom 4, and more. As an app dedicatedly designed for DJI handheld gimbals, DJI Mimo offers HD live video view, intelligent modes that hardly found on other handheld stabilizers, empowering you to shoot, edit and share at your fingertips.
The DJI Fly app interface was designed to be simplified and ultra-intuitive. Compatible for Mavic Mini. Consumer Drones Comparison Osmo Comparison. Shot on DJI. Short Film. DJI Pro. Public Safety. Flight Controllers Increased reliability and precision A3 N3. Repair Services One-stop aftersales service for worry-free repairs.
Services Plans Comprehensive care services providing peace of mind. More Services Master your product with these guides. Proceed to Checkout. Login Register. Top Downloads. DJI Apps. DJI Assistant 2 Series. DJI Assistant Series.
The dark mode beta is finally here. Change your preferences any time. Stack Overflow for Teams is a private, secure spot for you and your coworkers to find and share information. Is it possible with the Mobile SDK to write an application that receives way points from a web service and then starts the drone and monitors its operation?
Is it possible to simulate my code in the DJI Simulator and then when I know everything works use a Spark or Mavic for a real-life demonstration? As for simulation, once the drone is in simulator mode, the execution will work and show how it executes. If you want to take things further, you can even stream back from the mobile app data to your destkop app to superpose actual path against planned path.
Learn more. Asked 1 year, 5 months ago. Active 1 year, 5 months ago. Viewed times. Tobias Tobias 2 2 silver badges 12 12 bronze badges. Active Oldest Votes. I can't drop a code source for this as it's extensive, but hopefully this helps. Arnaud Thiercelin Arnaud Thiercelin 4 4 silver badges 14 14 bronze badges.
So I would need a tablet with cellular or a laptop with a second internet connection to be able to connect to the web service and the drone at the same time, correct?
How do they connect to each other? Do I need to have a drone connected via USB to actually run my code in the simulator or does this work without a drone? Not necessarily, most of our drones actually connect the remote controller or mobile device using our proprietary tech OcuSync. Some also offer wifi though but you'd want to leverage OcuSync for its performance. In this case, your mobile device connects to the remote controller using USB, leaving your wifi free to use.
Thank you, I understand now which connections are being used after reading up on OcuSync. Still not clear is where the simulator is being used. How would I be able to simulate my code?
In this setup, you have two simulators in place: the iOS simulator, which runs on macOS, and the DJI simulator, which is a mode the aircraft goes into to execute commands without actually using the motors.
Ok, thank you very much, Arnaud! So, a done is required in order to test the code. There is no pure software-in-the-loop approach possible as far as I understood.
Sign up or log in Sign up using Google.
Sign up using Facebook. Sign up using Email and Password. Post as a guest Name.
Email Required, but never shown. The Overflow Blog.If you come across any mistakes or bugs in this tutorial, please let us know by sending emails to dev dji. Please feel free to send us Github pull request and help us fix any issues. With the help of Virtual Stick control, you can input Virtual Stick flight control data and check the changes of simulator state in real time.
You can download the tutorial's final sample project from this Github Page. DJISimulator is used to control the aircraft in a simulated environment based on the virtual stick input. The simulated aircraft state information will also be displayed on the screen. You can use the Simulator class in FlightController to control the simulation.
It allows both manual and automated flights to be simulated without actually flying the aircraft. Additionally, simulator initialization, monitoring and termination can be controlled directly through the SDK allowing for application development in continuous integration environments.
To learn how to implement this feature, please check this tutorial Application Activation and Aircraft Binding. Enter the company domain and package name Here we use "com. Then select "Empty Activity" and press Next. If you haven't read that previously, please take a look at it and implement the related features. Once you've done that, continue to implement the next features. In order to input some simulated data, like pitchrollyaw and verticalThrottleyou may need a joystick control.
Let's work on the implementation of it. We implement the joystick control base on an open source Github project OnScreenJoystick. You can download the Github project to get the OnScreenJoystick. Now, copy and paste these two java files to the folder of "com. When you touch on the OnScreenJoystick view, the onTouch method in OnScreenJoystickListener will be called and you can get the "OnScreenJoystick" joystick object, and the x and y coordinate of the knob parameters from this method as shown below:.
Note: The values for x coordinate of the knob are between -1 left and 1 rightthe values for y coordinate of the knob are between -1 down and 1 up. Next, copy and paste the joystick. Then invoke the initUI method to initialize UI variables and their listeners.
In the initUI method, we first initialize the UI elements variables, then set the click listener of the four buttons to "this".Credit Rules Jump to the last page. Login Register. Why can't the simulator work without turning drone on? Uploading and Loding Picture Its probably a 'security feature' to ensure you really own said drone so there are no free riders downloading a free game. Then again you need to have a controller on hand But seriously, why can't the simulator work without turning the drone on?
What a waste of batteries. If it weren't for the fact you have to leave the drone on, I can be practicing on it via virtual reality willy nilly to improve my skills and reduce the odds I mess up.
But since it requires leaving the drone on, hence requiring more charging and discharging of a battery with limited life, I am hessitant in using the simulator. Can't they make an app upgrade so it only requires you to have the remote on instead of the drone as well? Twitter Facebook Favorite Like 2. Use props. Geebax Offline. The reason is that the simulator needs to mimic the action of the drone, and if the drone has a version of firmware that changes its operation in some manner, then by connecting with the drone, the simulator can obtain the details of that function.
First Officer. Geebax Posted at The reason is that the simulator needs to mimic the action of the drone, and if the drone has a vers Is that inform Second Officer. I agree. No reason for this other than a marketing ploy to sell more batteries.
DJI FLIGHT SIMULATOR
I think it uses the internal electronics of the drone while using the simulator function. Its just a physics simulator mimicking response to joystick command That's about it. Its a moot point though. They can make a simulator without nee Geebax Posted at 'Its not done for any other reason I think but as their way of making sure you're an actual DJI cus Makes sense. And your reason is wrong and makes no sense at all. You're just being a defensive fanboy right now. Cliche, but you're acting "like a drone".
The main reason why the drone needs to be on to use the simulator is because it is a product security feature. To make sure you're an actual owner.
Its not to 'load settings'.Application development requires extensive testing, profiling and debugging. DJI provides tools including an aircraft simulator, a wireless bridge application and remote logging functionality to make development faster and more convenient. DJI aircraft products include a simulator that resides in the aircraft Flight Controller that can:.DJI Pilot, Inspire 1 Flight Simulator Demo
This allows both manual and automated flights to be simulated without actually flying the aircraft. DJI provides tools for Windows and Mac which can be used to initialize the simulator, and visualize the aircraft behavior based on the state information provided by the simulator:. Additionally, simulator initialization, monitoring and termination can be controlled directly through the SDK allowing for application development in continuous integration environments.
Turn on the remote controller and then turn on the aircraft. After a few seconds, the application will detect the aircraft. Select "Mavic Pro" in the connected devices page, and select the Simulator tab on the left side. The following screen should be seen:. Press the Open button and enter the desired starting latitude and longitude and wind speed desired. Press the Start Emulating button.
The connected product will be shown, as well as some of the position and speed state information. The view angle can be changed by left-clicking and dragging in the visualization window. Scrolling within the window will zoom in and out. While flying, the flight path can be traced by right clicking on the visualization and selecting Setup.
Then select show trace under the simulator UI Config tab to display the flight trace, as shown below:. Set latitude and longitude for simulation. Note: The aircraft will not take off if the latitude and longitude is too close to or inside a GEO Zone.
The dark mode beta is finally here. Change your preferences any time. Stack Overflow for Teams is a private, secure spot for you and your coworkers to find and share information.
Its always return: lat I need the returned position on my subscriber to be at the one I put in the simulator. The reason is I am testing with waypoint mission, and if I put positions way further than the the returned position, it won't start. I know the question is old, but getValue returns the lat and lo in Radians, while you put it in Degrees. Learn more. Asked 2 years ago. Active 1 year, 2 months ago. Viewed times. Trung Nguyen Trung Nguyen 11 11 bronze badges.
Active Oldest Votes. Sean Sean 4 4 silver badges 20 20 bronze badges. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog.