feat:航线编辑接口新的航点动作保存

This commit is contained in:
gyb 2026-03-11 10:15:40 +08:00
parent c794a06e7a
commit 7d3d36eb0f
1 changed files with 5 additions and 5 deletions

View File

@ -167,26 +167,26 @@ public class WayPointUitls {
case 4000: // 飞行器偏航角
return String.format(Locale.US,
"%d\t0\t3\t531\t0\t%s\t0\t0\t0\t0\t0.000000\t1",
"%d\t0\t3\t4000\t0\t%s\t0\t0\t0\t0\t0.000000\t1",
index, point.getDroneYaw());
case 5000: // 开始等时间隔拍照
return String.format(Locale.US,
"%d\t0\t3\t205\t%s\t0\t%s\t0\t0\t0\t0.000000\t1",
"%d\t0\t3\t5000\t%s\t0\t%s\t0\t0\t0\t0.000000\t1",
index, point.getPhotoTime(), point.getPhotoType());
case 6000: // 开始等间距隔拍照
return String.format(Locale.US,
"%d\t0\t3\t205\t%s\t0\t%s\t0\t0\t0\t0.000000\t1",
"%d\t0\t3\t6000\t%s\t0\t%s\t0\t0\t0\t0.000000\t1",
index, point.getPhotoDistance(), point.getPhotoType());
case 7000: // 结束间隔拍照
return String.format(Locale.US,
"%d\t0\t3\t2501\t0\t0\t0\t0\t0\t0\t0.000000\t1", index);
"%d\t0\t3\t7000\t0\t0\t0\t0\t0\t0\t0.000000\t1", index);
case 8000: // 全景拍照
return String.format(Locale.US,
"%d\t0\t3\t2501\t0\t0\t0\t0\t0\t0\t0.000000\t1", index);
"%d\t0\t3\t8000\t0\t0\t0\t0\t0\t0\t0.000000\t1", index);
default:
throw new IllegalArgumentException("未知命令: " + point.getCommand());