I'm trying to create simple mission:
Mission myMission = new Mission();
Takeoff to = new Takeoff();
ReturnToLaunch rtl = new ReturnToLaunch();
//set Altitude in meters
The problem is that sometimes it works, and sometimes it doesn't...
I don't know why it not working... I'm not getting any errors in the code.
I'm listening to the
but only the
AttributeEvent.MISSION_UPDATED is fired when I run the code.
I just don't understand why it is working sometimes and sometimes not.
I did make sure that the drone connected to the app.
Also I made sure that the drone is ok, and arm-able.
I really stuck here... and any help will be appreciated.