指点飞行优化

This commit is contained in:
sdy 2026-06-04 14:47:36 +08:00
parent 30c4ae5eb7
commit 0a8313d30e
2 changed files with 2 additions and 1 deletions

View File

@ -524,7 +524,7 @@ public class EventsHandler implements MessageHandler {
msg.append("进度: ").append("\n");
msg.append("\t执行步骤: ").append(stepStr).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");
}
if (ext.containsKey("break_point")) {

View File

@ -150,6 +150,7 @@ public class CommandServiceImpl implements CommandService {
for (FlyToPoint.Point point : points) {
point.setHeight(Float.parseFloat(dockEllipsoidHeight + point.getHeight() + ""));
}
flyToPoint.setFlyToId(IdUtil.fastUUID());
return djiBaseService.executeAndReturnResult(dockSn, "fly_to_point", Utils.beanToSnakeJson(flyToPoint));
}