DJI MSDK Can't take off

已完成

评论

11 条评论

  • BRIAN DAVID MORENO CARDONA

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

    0
    评论操作 固定链接
  • 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
    评论操作 固定链接
  • 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
    评论操作 固定链接
  • 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
    评论操作 固定链接
  • 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
    评论操作 固定链接
  • 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
    评论操作 固定链接
  • 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
    评论操作 固定链接
  • 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
    评论操作 固定链接
  • 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
    评论操作 固定链接
  • Hugo Arnaudeau

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

    0
    评论操作 固定链接
  • 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
    评论操作 固定链接

请先登录再写评论。