指点飞行优化
This commit is contained in:
parent
30c4ae5eb7
commit
0a8313d30e
|
|
@ -524,7 +524,7 @@ public class EventsHandler implements MessageHandler {
|
||||||
msg.append("进度: ").append("\n");
|
msg.append("进度: ").append("\n");
|
||||||
msg.append("\t执行步骤: ").append(stepStr).append("\n");
|
msg.append("\t执行步骤: ").append(stepStr).append("\n");
|
||||||
msg.append("\t进度值: ").append(percent).append("%\n");
|
msg.append("\t进度值: ").append(percent).append("%\n");
|
||||||
if ("ok".equals(status)) {
|
if (!"in_progress".equals(status)) {
|
||||||
msg.append("媒体文件数: ").append(ext.getInt("media_count", 0)).append("\n");
|
msg.append("媒体文件数: ").append(ext.getInt("media_count", 0)).append("\n");
|
||||||
}
|
}
|
||||||
if (ext.containsKey("break_point")) {
|
if (ext.containsKey("break_point")) {
|
||||||
|
|
|
||||||
|
|
@ -150,6 +150,7 @@ public class CommandServiceImpl implements CommandService {
|
||||||
for (FlyToPoint.Point point : points) {
|
for (FlyToPoint.Point point : points) {
|
||||||
point.setHeight(Float.parseFloat(dockEllipsoidHeight + point.getHeight() + ""));
|
point.setHeight(Float.parseFloat(dockEllipsoidHeight + point.getHeight() + ""));
|
||||||
}
|
}
|
||||||
|
flyToPoint.setFlyToId(IdUtil.fastUUID());
|
||||||
return djiBaseService.executeAndReturnResult(dockSn, "fly_to_point", Utils.beanToSnakeJson(flyToPoint));
|
return djiBaseService.executeAndReturnResult(dockSn, "fly_to_point", Utils.beanToSnakeJson(flyToPoint));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue