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

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



2020-10-16
Use props
fernando_s971
lvl.2

Brazil
Offline

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

Hong Kong
Offline

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

Credit Rules