DJI MSDK Can't take off

Completed

Comments

11 comments

  • BRIAN DAVID MORENO CARDONA

    Have you noticed which the error was or the solution? I'm having the same problem

    0
    Comment actions Permalink
  • DJI Developer Support
    Our engineers will be on holiday for the Chinese New Year(2-06~ 2-17), which may cause some delays in responding to your ticket. We appreciate your patience and apologize for the inconvenience this may cause you. You can first search for related articles in our knowledge base https://djisdksupport.zendesk.com/hc/en-us We will answer your ticket as quickly as possible when the holiday is over.
    0
    Comment actions Permalink
  • DJI Developer Support
    Have you tried our sample code? We have tested the sample code and have not been able to reproduce this issue. The link of sample code: https://github.com/dji-sdk/Mobile-SDK-Android-V5
    0
    Comment actions Permalink
  • Saviero Garcia

    Hello

    Yes, I have looked at them, that is how i came to the codes above.

    could you provide me a code snippet to take of the aircraft , that I can call in a fragment, at a button click? Thank you.

    0
    Comment actions Permalink
  • DJI Developer Support
    I am unsure if the issue lies within your code. Have you tried our sample code? Is it possible to command the aircraft to take off by calling _KeyStartTakeoff_ with the sample code?
    0
    Comment actions Permalink
  • Saviero Garcia

    yes, i tried your code. However using the same code in my app leads to this issue.

     

    Please paste a relevant sample code here.

    Do I need to set the remote controller in a specific mode?

    Please advice

     

     

    0
    Comment actions Permalink
  • DJI Developer Support
    Your meaning is that running our sample code is normal, but there is an issue with the app you developed yourself?
    0
    Comment actions Permalink
  • Hugo Arnaudeau

    i have the same issue i can run the app but i cannot use the controller and i don't understand why. Can you explain me if there is something to be modified in the program? 

     

    0
    Comment actions Permalink
  • abdullah zayyat

    plz let me know if you have figured the problem out im having a similiar issue 

    trying to use the uxsd take off widget yet the buttons are not apearing for some reason xD

    lets connect mb we can help eachother ,hope you are having a great one 

    good luck

     

    1
    Comment actions Permalink
  • Hugo Arnaudeau

    Did you check the connectivity to the drone? It's probably disable when the drone is not connected.

    0
    Comment actions Permalink
  • Saviero Garcia

    This is my final solution:

    private fun takeOff(id: String) {
    
    
            Log.d("Monsoon Command Execution :", "Takeoff")
    
            val callback = object :
                    CommonCallbacks.CompletionCallbackWithParam<EmptyMsg> {
                override fun onSuccess(t: EmptyMsg?) {
                    Log.d("Monsoon Command Execution :","start takeOff onSuccess.")
                    
    
                }
    
                override fun onFailure(error: IDJIError) {
                    Log.e("Monsoon Command Execution :", "start takeOff onFailure,$error")
                    var e = error.description()
                    if (e == "null") e = "unknown"
    
                }
            }
    
            FlightControllerKey.KeyStartTakeoff.create().action({
                callback.onSuccess(it)
            }, { e: IDJIError ->
                callback.onFailure(e)
            })
    
        }
    
    1
    Comment actions Permalink

Please sign in to leave a comment.