xieb
2024-04-01 b5f294729bca484a4ce726f4d2a1c096166bc9f2
生成航线文件
4 files modified
2 files renamed
3 files deleted
950 ■■■■■ changed files
src/main/java/com/dji/sample/patches/xml/controller/XMLController.java 4 ●●●● patch | view | raw | blame | history
src/main/java/com/dji/sample/patches/xml/mode/MissionConfig.java 2 ●●● patch | view | raw | blame | history
src/main/java/com/dji/sample/patches/xml/mode/XMLTemplateModel.java 2 ●●● patch | view | raw | blame | history
src/main/java/com/dji/sample/patches/xml/mode/share/action/utils/MissionConfigUtils.java 4 ●●● patch | view | raw | blame | history
src/main/resources/template/template.kml 868 ●●●●● patch | view | raw | blame | history
src/main/resources/template/wpmz/template.kml 8 ●●●● patch | view | raw | blame | history
src/main/resources/template/wpmz/waylines.wpml patch | view | raw | blame | history
src/main/resources/template2/newTemplate.xml 48 ●●●●● patch | view | raw | blame | history
src/main/resources/template2/template.xml 14 ●●●●● patch | view | raw | blame | history
src/main/java/com/dji/sample/patches/xml/controller/XMLController.java
@@ -51,8 +51,8 @@
        xml2XmlDoc(xmlModel, "src\\main\\resources\\template\\template.xml", "src\\main\\resources\\template\\newtemplate.xml");
        xml2XmlDoc(xmlModel, "src\\main\\resources\\template\\waylines.xml", "src\\main\\resources\\template\\newwaylines.xml");
        xml2XmlDoc(xmlModel, "src\\main\\resources\\template\\template.xml", "src\\main\\resources\\template\\wpmz\\template.kml");
        xml2XmlDoc(xmlModel, "src\\main\\resources\\template\\waylines.xml", "src\\main\\resources\\template\\wpmz\\waylines.wpml");
    }
    /**
src/main/java/com/dji/sample/patches/xml/mode/MissionConfig.java
@@ -41,7 +41,7 @@
    /**
     * 参考起飞点海拔高度
     */
    private String takeOffRefPointAGLHeight = "0";
    private Double takeOffRefPointAGLHeight = 0D;
    /**
     * 全局航线过渡速度
     */
src/main/java/com/dji/sample/patches/xml/mode/XMLTemplateModel.java
@@ -88,7 +88,7 @@
                .author("Aix")
                .createTime(String.valueOf(System.currentTimeMillis()))
                .updateTime(String.valueOf(System.currentTimeMillis()))
                .missionConfig(MissionConfigUtils.setMissionConfig())
                .missionConfig(MissionConfigUtils.setMissionConfig(coordinates[0].y + "," + coordinates[0].x + ",0"))
                .folder(folder)
                .build();
src/main/java/com/dji/sample/patches/xml/mode/share/action/utils/MissionConfigUtils.java
@@ -12,7 +12,7 @@
 */
public class MissionConfigUtils {
    public static MissionConfig setMissionConfig() {
    public static MissionConfig setMissionConfig(String xyz) {
        MissionConfig mc = MissionConfig.builder()
                .flyToWaylineMode("safely")//安全模式
                .finishAction("goHome")
@@ -21,6 +21,8 @@
                .takeOffSecurityHeight(20D)//安全起飞高度
                .globalTransitionalSpeed(10D)
                .globalRTHHeight(100D)
                .takeOffRefPoint(xyz)
                .takeOffRefPointAGLHeight(0D)
                .droneInfo(new DroneInfo())
                .payloadInfo(new PayloadInfo())
                .build();
src/main/resources/template/template.kml
File was deleted
src/main/resources/template/wpmz/template.kml
File was renamed from src/main/resources/template/newtemplate.xml
@@ -3,8 +3,8 @@
  <Document>
    <!-- 步骤1:实现文件创建信息 -->
    <wpml:author>Aix</wpml:author>
    <wpml:createTime>1711938126849</wpml:createTime>
    <wpml:updateTime>1711938126849</wpml:updateTime>
    <wpml:createTime>1711960016175</wpml:createTime>
    <wpml:updateTime>1711960016175</wpml:updateTime>
    <!-- 步骤2:设置任务配置 -->
    <wpml:missionConfig>
      <wpml:flyToWaylineMode>safely</wpml:flyToWaylineMode>
@@ -12,8 +12,8 @@
      <wpml:exitOnRCLost>executeLostAction</wpml:exitOnRCLost>
      <wpml:executeRCLostAction>goBack</wpml:executeRCLostAction>
      <wpml:takeOffSecurityHeight>20</wpml:takeOffSecurityHeight>
      <wpml:takeOffRefPoint></wpml:takeOffRefPoint>
      <wpml:takeOffRefPointAGLHeight></wpml:takeOffRefPointAGLHeight>
      <wpml:takeOffRefPoint>28.624514734,115.856725497,0</wpml:takeOffRefPoint>
      <wpml:takeOffRefPointAGLHeight>0</wpml:takeOffRefPointAGLHeight>
      <wpml:globalTransitionalSpeed>10</wpml:globalTransitionalSpeed>
      <wpml:globalRTHHeight>100</wpml:globalRTHHeight>
      <wpml:droneInfo>
src/main/resources/template/wpmz/waylines.wpml
src/main/resources/template2/newTemplate.xml
File was deleted
src/main/resources/template2/template.xml
File was deleted