设置DJI时间轴任务

时间:2018-09-04 03:48:50

标签: dji-sdk

我想更改DJI示例代码的时间轴代码。

//Step 10: start a hotpoint mission

    setTimelinePlanToText("Step 10: start a hotpoint mission to surround 360 degree");
    HotpointMission hotpointMission = new HotpointMission();
    hotpointMission.setHotpoint(new LocationCoordinate2D(homeLatitude, homeLongitude));
    hotpointMission.setAltitude(10);
    hotpointMission.setRadius(10);
    hotpointMission.setAngularVelocity(10);
    HotpointStartPoint startPoint = HotpointStartPoint.NEAREST;
    hotpointMission.setStartPoint(startPoint);
    HotpointHeading heading = HotpointHeading.TOWARDS_HOT_POINT;
    hotpointMission.setHeading(heading);
    elements.add(new HotpointAction(hotpointMission, 360));

我要调整Altitude, Radius, Angular Velocity 但是,如果我将10的数字更改为另一个数字,则会出现以下错误。

  

任务半径超出可接受范围,请尝试登录并检查航路点半径

是否有必要对其他部分进行其他修改?我不知道在哪里修复它。 dji sample code照原样使用。

0 个答案:

没有答案