<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2" xmlns:wpml="http://www.dji.com/wpmz/1.0.2">
    <Document>
        <wpml:missionConfig>
            <wpml:flyToWaylineMode>safely</wpml:flyToWaylineMode>
            <wpml:finishAction>goHome</wpml:finishAction>
            <wpml:exitOnRCLost>executeLostAction</wpml:exitOnRCLost>
            <wpml:executeRCLostAction>goBack</wpml:executeRCLostAction>
            <!-- 安全起飞高度 -->
            <wpml:takeOffSecurityHeight>?</wpml:takeOffSecurityHeight>
            <!-- 全局航线过渡速度[飞向首航点速度] -->
            <wpml:globalTransitionalSpeed>?</wpml:globalTransitionalSpeed>
            <!-- 飞行器信息 -->
            <wpml:droneInfo>
                <wpml:droneEnumValue>?</wpml:droneEnumValue>
                <wpml:droneSubEnumValue>?</wpml:droneSubEnumValue>
            </wpml:droneInfo>
            <!-- 负载信息 -->
            <wpml:payloadInfo>
                <wpml:payloadEnumValue>?</wpml:payloadEnumValue>
                <wpml:payloadSubEnumValue>?</wpml:payloadSubEnumValue>
                <wpml:payloadPositionIndex>?</wpml:payloadPositionIndex>
            </wpml:payloadInfo>
        </wpml:missionConfig>
        <Folder>
            <!-- 模板ID -->
            <wpml:templateId>?</wpml:templateId>
            <wpml:waylineId>0</wpml:waylineId>
            <!-- 全局航线飞行速度 -->
            <wpml:autoFlightSpeed>?</wpml:autoFlightSpeed>
            <wpml:executeHeightMode>relativeToStartPoint</wpml:executeHeightMode>
            <Placemark>
                <Point>
                    <!-- 经度,纬度 -->
                    <coordinates>?</coordinates>
                </Point>
                <!-- 递增的 index -->
                <wpml:index>?</wpml:index>
                <!-- 航点执行高度 -->
                <wpml:executeHeight>?</wpml:executeHeight>
                <!-- 航点飞行速度,当前航点飞向下一个航点的速度 -->
                <wpml:waypointSpeed>?</wpml:waypointSpeed>
                <wpml:waypointHeadingParam>
                    <wpml:waypointHeadingMode>followWayline</wpml:waypointHeadingMode>
                    <wpml:waypointHeadingAngle>0</wpml:waypointHeadingAngle>
                    <wpml:waypointHeadingPathMode>followBadArc</wpml:waypointHeadingPathMode>
                </wpml:waypointHeadingParam>
                <wpml:waypointTurnParam>
                    <wpml:waypointTurnMode>toPointAndStopWithDiscontinuityCurvature</wpml:waypointTurnMode>
                    <wpml:waypointTurnDampingDist>0.0</wpml:waypointTurnDampingDist>
                </wpml:waypointTurnParam>
                <wpml:waypointGimbalHeadingParam>
                    <wpml:waypointGimbalPitchAngle>0.0</wpml:waypointGimbalPitchAngle>
                </wpml:waypointGimbalHeadingParam>
                <wpml:useStraightLine>1</wpml:useStraightLine>
                <wpml:actionGroup>
                    <wpml:actionGroupId>0</wpml:actionGroupId>
                    <wpml:actionGroupStartIndex>0</wpml:actionGroupStartIndex>
                    <wpml:actionGroupEndIndex>0</wpml:actionGroupEndIndex>
                    <wpml:actionGroupMode>sequence</wpml:actionGroupMode>
                    <wpml:actionTrigger>
                        <wpml:actionTriggerType>reachPoint</wpml:actionTriggerType>
                    </wpml:actionTrigger>
                    <wpml:action>
                        <wpml:actionId>0</wpml:actionId>
                        <wpml:actionActuatorFunc>gimbalRotate</wpml:actionActuatorFunc>
                        <wpml:actionActuatorFuncParam>
                            <wpml:payloadPositionIndex>0</wpml:payloadPositionIndex>
                            <wpml:gimbalPitchRotateEnable>1</wpml:gimbalPitchRotateEnable>
                            <wpml:gimbalPitchRotateAngle>-90.0</wpml:gimbalPitchRotateAngle>
                            <wpml:gimbalRollRotateEnable>0</wpml:gimbalRollRotateEnable>
                            <wpml:gimbalRollRotateAngle>0.0</wpml:gimbalRollRotateAngle>
                            <wpml:gimbalYawRotateEnable>0</wpml:gimbalYawRotateEnable>
                            <wpml:gimbalYawRotateAngle>0.0</wpml:gimbalYawRotateAngle>
                            <wpml:gimbalRotateTimeEnable>0</wpml:gimbalRotateTimeEnable>
                            <wpml:gimbalRotateTime>0.0</wpml:gimbalRotateTime>
                        </wpml:actionActuatorFuncParam>
                    </wpml:action>
                    <wpml:action>
                        <wpml:actionId>1</wpml:actionId>
                        <wpml:actionActuatorFunc>takePhoto</wpml:actionActuatorFunc>
                        <wpml:actionActuatorFuncParam>
                            <wpml:payloadPositionIndex>0</wpml:payloadPositionIndex>
                            <!-- 图片格式列表 -->
                            <wpml:payloadLensIndex>?</wpml:payloadLensIndex>
                            <wpml:useGlobalPayloadLensIndex>1</wpml:useGlobalPayloadLensIndex>
                        </wpml:actionActuatorFuncParam>
                    </wpml:action>
                </wpml:actionGroup>
            </Placemark>
        </Folder>
    </Document>
</kml>
