feat:航线编辑接口新的航点动作保存
This commit is contained in:
parent
c794a06e7a
commit
7d3d36eb0f
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Reference in New Issue