I have my drone set up to run a mavlink file. Everything works great, up to and including take-off. Then the drone starts randomly drifting around for an extended period of time.
All I want to do is send it to a couple locations and back again.
This is my Java code (lat and lng are the GPS coordinates returned by the drone on connect):
list = new ArrayList<>();
list.add(ARMavlinkMissionItem.CreateMavlinkTakeoffMissionItem(lat,lng, alt,(float)1.5, 0));
list.add(ARMavlinkMissionItem.CreateMavlinkNavWaypointMissionItem((float)35.0093, (float)-101.595,(float)1.5, 0));
list.add(ARMavlinkMissionItem.CreateMavlinkLandMissionItem(lat,lng, 0, 0));
I assume there's something wrong here, but I have no idea what. Does anybody know why this thing isn't working? Are there any online examples of a simple Mavlink mission?