I'm developing an Android Application that uses the DJI SDK. The drone I'm using right now is the Mavic Pro 1. This application wants to use the predefined classes for waypoints inside the DJI SDK to create missions for the drone, but when performing the configuration of the Waypoint mission and correctly loading the mission inisde the Mission Operator (current state is set to: READY_TO_UPLOAD after calling the MissionOperator.loadMission), when trying to perform the "uploadMission" predefined function the app crashes and the Drone automatically disconects of the Application.
I think the waypoints are correctly created and saved inside the builder, otherwise it would fail in the loadMission function. Also the parameters are correct since the checkParameters function is used.
I have seen that some people in previous posts say that you need first to set the application to Ground station mode. But I don't find any indications of this existing inside the DJI SDK documentation, so I think it is deprecated and not needed anymore for current versions of the SDK.
Is the Upload of the mission inside the Operator failing because I am using a Mavic Pro 1 maybe?
If anyone has the correct steps to setup Waypoint missions or knows the error it would be of great help for all the DJI SDK users.
Best regards,
Thanks in advance
Take a look at the example project for the sdk on github. It's all in there.
https://github.com/dji-sdk/Mobile-SDK-Android
Mavic 1 should work with waypoints.
If you include your logcat we might help you, without that and your code, it's almost impossible to tell what you doing wrong.
Related
I was wondering if anyone had a relatively simple solution for us.
We created an app to be used by our clients on android devices that we give them.
We would like the client to only be able to use our app and have limited access to everything else (i.e. settings, email etc.) What is the best way to achieve this without using 3rd party apps.
Thank you in advance!
This may not help but the L preview has a task locking feature included that may be of some insight, I'm not aware of how it functions as yet
Task locking
The L Developer Preview introduces a new task locking API that lets you temporarily restrict users from leaving your app or being interrupted by notifications. This could be used, for example, if you are developing an education app to support high stakes assessment requirements on Android. Once your app activates this mode, users will not be able to see notifications, access other apps, or return to the Home screen, until your app exits the mode.
http://developer.android.com/preview/api-overview.html
Hope this helped
Suppress the Title Bar & Make Your App a Launcher
Root Your Tablet
Modify System Files and Settings to hide the soft keys
On the next link you can find the complete solution for the Nexus 7 (2012)
http://thebitplague.wordpress.com/2013/04/05/kiosk-mode-on-the-nexus-7/
simple Answer is:
Lock Install button with modify system settings.
Create your own customized-ROM and apply your requirement to that ROM.
more info, visit XDADavelopers
Im working on a project that I should be controlling the DJI drone with via a computer. Therefore, first of all I need to implement a code that works on the mobile SDK. However, the virtual sticks on DJI Sample APK does not work, any suggestions?
Best.
The Virtual RC Protocol (virtual sticks) does work on the QT/Windows version of the Onboard SDK. It might help you to look into the messages that get passed there.
Yeah, after completing the project I can actually answer my own question.
The problem was the sending rate of the DJI Sample SDK when I changed it to 10Hz and it actually worked.
PS: If you think it's too hard to control as in the controller, you can change the control system, which is the flight controller settings.
https://developer.dji.com/mobile-sdk/documentation/introduction/flightController_concepts.html#coordinate-systems
I changed it to the Course Lock orientation which can be controlled in the sample SDK as well.(angle/velocity)
To see what I did you can check the link below;
https://www.youtube.com/watch?v=5sQ5uMXWnPU&list=PLWuZdcP_lwyr_GSLl9yzC_Li_q2421o2t&index=5
Love
When I develop my application with citymaps service to load a base map, I have serval questions as follows:
When I sync the project with grade file,android studio prompt that mini-sdk version no smaller than 15,so I must change mini-sdk to 15,why?
Atfer I sync your gradle file in my project,the software does not prompt the error,but when I run the application,the library is not found and the
software give me tips to add the library to the classpath,why is it so?
I want to locate the current position,Whether or not I need to get my position's latitude and longitude set to the method that you provider in your api reference? Does any method directly to locate the current position? Please tell me where is it? thanks!
When I load the map with the newest method like this:
CitymapsMapFragment fragment = (CitymapsMapFragment)fragmentManager.findFragmentById(R.id.map);
the map is loading very well but does't show an arrow in my current position,if I create my map with additional options,setContentView(mapView). When the map is loading out I can find an arrow in that position. Why is it so?
I am a developer on the Citymaps SDK. I will do my best to answer all your questions
1) Yes, the Citymaps SDK does require a minimum SDK version of 15 (a.k.a Ice Cream Sandwich). We made this decision based off of the APIs we wanted to use as well as the usage statistics of various Android versions (roughly 95% of Android users worldwide are running SDK 15 and higher).
2) If you are including the Citymaps project using gradle's sync, you shoud have no problems building and running our library. Make sure to double check your gradle string. If you still receive and error, it would be helpful to see the stack trace.
3) If the location services are not being triggered on startup, you can try calling fragment.getMapView().startUpdatingLocation(). This should force the system to start tracking your GPS position.
4) Answer to #3 should solve this
Let me know if you have any follow ups. Thank you for trying our SDK, and we hope you can make great use of it.
I created an Android app which communicates via USART with a µC in order to evaluate data. My co-workers and customers should use the tablet for only this purpose now. Is there any possibility to "hide" the Android OS or making it inaccessible?
Devices are rooted and I am willing to build custom ROMs (even though I do not have any experience with that yet). Are there any approaches available that I do not have to start from scratch?
Many thanks for your help.
Well. That what I'm trying to do !
The first thing I tried was to start the app just after the boot of the device (Quite easy with this).
Then, I get Android source code, and I hide the bottom bar using this code
The problem is, if your application is not stable ... you'll have some problem.
If you want to modify Android source code, the developper doc contains a very good tutorial to start !
I want to make an application that allow the user to take a picture of text either from android device Gallery or from android Camera application in a Panorama mode .But i can not find any source or tutorial to do this.How can i do this in my application? how to make an application that take picture from android camera application in a panaroma mode?
Thanks in advance.
I don't know if it's still actual for you, but hope it will be helpful for someone.
Panorama feature is already implemented in standard android camera at least since Android 4.0 (perhaps it was available in even earlier versions but I'm not sure, you can check it), so since source code is open for everyone, it might be the easiest way just to copy required functionality.
Although you can download source of apps from https://android.googlesource.com/ (you want LegacyCamera or Camera), you can't just open project of any standard app in Eclipse or other IDE. For example, LegacyCamera depends on Gallery2 and other dependences that might be hard to be resolved.
I spent several days trying to move panorama feature to separate project. You can download it from here: https://github.com/yankeppey/PanoramaSample . Several remarks:
Functional core (creating one panorama image from several ones, progress notices, etc) is on native part.
I used java code from from LegacyCamera which was used in Android 4.0-4.1, not 4.2, because it was significantly easier for me. Native part is taken from 4.2, it has only minor changes inside and almost the same JNI interfaces.
This project is just to help you move panorama feature to your own app, it's not like kind of library, don't expect clean code without bugs, it's just pretty dirty and buggy project. If I have time I'll try to make it cleaner, but there is no warranty :)