dronekit-android

DroneKit mission not sent to drone

早过忘川 提交于 2020-01-07 04:37:05
问题 I'm trying to create simple mission using Drone-Kit android. Mission myMission = new Mission(); myMission.clear(); Takeoff to = new Takeoff(); ReturnToLaunch rtl = new ReturnToLaunch(); //set Altitude in meters rtl.setReturnAltitude(2); to.setTakeoffAltitude(2); myMission.addMissionItem(to); myMission.addMissionItem(rtl); MissionApi.getApi(this.drone).setMission(myMission,true); The problem is that sometimes it works, and sometimes it's doesn't... I don't know why it not working... I'm not