Please select Into the mobile phone version | Continue to access the computer ver.
Aircraft lands at incorrect location
65 2 10-16 12:09
Uploading and Loding Picture ...(0/1)
o(^-^)o
fernando_s971
lvl.1

Brazil
Offline

Context

I'm building a mission planner that will get waypoints from a user click on the map. After completing an area, he'll load and start the mission.

Expected/current behavior

When I start the mission, it goes through all the waypoints, and after arrives at the last one, it comes back to the home point and lands.

The problem is: it doesn't return home, instead it lands on the last waypoint.

Details

The code below is just a part of a POJO class

public WaypointMission toDjiMission() {
  final WaypointMission.Builder waypointMissionBuilder = new WaypointMission.Builder();

  final int waypointsSize = waypoints.size();
  for (int i = 0; i < waypointsSize; i++) {
    waypointMissionBuilder.addWaypoint(Waypoint.toDjiWaypoint(waypoints.get(i)));
  }

  return waypointMissionBuilder
    .setMissionID(id)
    .maxFlightSpeed(maxSpeedInMetersPerSecond.floatValue()) // 15
    .autoFlightSpeed(autoFlightSpeedInMetersPerSecond.floatValue()) // 8.5
    .flightPathMode(flightPathTurnMode.toDjiEnum()) // curved
    .headingMode(uavHeadingMode.toDjiEnum()) // auto
    .finishedAction(missionFinishedAction.toDjiEnum()) // Go home
    .build();
}

Environment

  • Android 9
  • MSDK 4.13.1
  • Phantom 4 Pro



10-16 12:09
Use props
fernando_s971
lvl.1

Brazil
Offline

I got an answer in stackoverflow: https://stackoverflow.com/questions/64380276/dji-phantom-4-pro-lands-at-incorrect-location
10-19 21:56
Use props
kv886
lvl.4

South Africa
Offline

I think the answer in StackOverflow is right
10-20 01:26
Use props
Advanced
You need to log in before you can reply Login | Register now

Credit Rules