Please select Into the mobile phone version | Continue to access the computer ver.
Waypoint Mission Fails Android SDK
2240 6 2016-5-20
Uploading and Loding Picture ...(0/1)
o(^-^)o
jordrone
lvl.1

United States
Offline

I try to upload a simple waypoint mission with 3 waypoints to the Matrice-100, and the mission fails to execute.

Android SDK: 3.0.1

Log:
...
05-19 14:28:37.478 21117-23332/com.a.matricecontroller D/Upload: upload t3,0
05-19 14:28:37.478 21117-23332/com.a.matricecontroller D/Upload: upload t3,0
05-19 14:28:37.478 21117-23333/com.a.matricecontroller D/Upload: upload t1,getResult=234,idx=0,count=3
05-19 14:28:37.478 21117-23332/com.a.matricecontroller D/Upload: upload t3,0
05-19 14:28:37.478 21117-23333/com.a.matricecontroller D/DJIWaypointMission: UPload wp msg by index failed result: 234

...

My DJICompletionCallback method gets the DJIError:
"The info of waypoint mission is not completely uploaded"


Code:

public void setWaypointMission(Iterable<Vector3> points, float speed) {
                DJIWaypointMission mission = new DJIWaypointMission();
                for (Vector3 point : points) {
                        DJIWaypoint wp = new DJIWaypoint(point.lat, point.lng, point.alt);
                        mission.addWaypoint(wp);
                       
                }
                speed = Math.max(MIN_SPEED, Math.min(speed, MAX_SPEED));

                mission.autoFlightSpeed = speed;
                mission.flightPathMode = DJIWaypointMission.DJIWaypointMissionFlightPathMode.Normal;
                setNewMission(mission);
        }
                       
                       
private void setNewMission(DJIMission mission)
{
        DJIMissionManager missionManager = aircraft.getMissionManager();
        if(missionManager != null) {
            DJIMission currentMission = missionManager.getCurrentExecutingMission();
            if (currentMission != null) {
                aircraft.getMissionManager().stopMissionExecution(noOpCompletionCallback);
            }
            aircraft.getMissionManager().prepareMission(mission, missionProgressHandler, missionCompletionHandler);
        }
}

2016-5-20
Use props
DJI-Adela
DJI team

Hong Kong
Offline

Hello.
About any issue about SDK, please contact dev@dji.com.

Thanks.
2016-5-23
Use props
jordrone
lvl.1

United States
Offline

DJI-Adela Posted at 2016-5-23 06:57
Hello.
About any issue about SDK, please contact .

Wouldn't a solution to the problem be best made publicly here in the forums?
2016-5-23
Use props
CruxisX
lvl.3
Flight distance : 2146 ft
  • >>>
United States
Offline

Hey jordrone, even if what you said is true, the forum people don't do any development work so they wont know. You need to contact dev@dji.com to get help from people that actually know anything about the programming and then post your findings here to help the rest of us ;)  
2016-5-24
Use props
jordrone
lvl.1

United States
Offline

CruxisX Posted at 2016-5-24 19:17
Hey jordrone, even if what you said is true, the forum people don't do any development work so they  ...

If the forum people don't do programming, then my findings may be of little use to them, however IF I do get a solution from dev@dji.com I will post it here. I have two current questions, and have yet to even get an acknowledgment email. I'm not very hopeful that dev@dji.com will help.  
2016-5-25
Use props
DJI-Jamie
DJI team
Flight distance : 112405 ft
United States
Offline

The Developer site also has its own forum with members and moderators that do work specifically with Mobile and Onboard SDK. You can see that forum in full at http://forum.dev.dji.com/en.
2016-5-27
Use props
jordrone
lvl.1

United States
Offline

DJI-Jamie Posted at 2016-5-27 14:40
The Developer site also has its own forum with members and moderators that do work specifically with ...

Thank you DJI-Jamie. I didn't know those forums existed. I will try posting my questions there.
2016-5-31
Use props
Advanced
You need to log in before you can reply Login | Register now

Credit Rules