export const airPointActions = {
    
    "rotateYaw":{     // 设置无人机偏航角
        "name":"飞行器偏航角",
        "value":"rotateYaw",
        "type":"action",
        "config":{
            "actionId": null,
            "actionActuatorFunc": "rotateYaw",
            "actionActuatorFuncParam": {
                "aircraftHeading": 0,
                "aircraftPathMode": "counterClockwise"
            }
        },
    },

    "gimbalRotate":{     // 设置旋转云台俯仰角
        "name":"云台俯仰角",
        "value":"gimbalRotate",
        "type":"action",
        "config":{
            "actionId": 3,
            "actionActuatorFunc": "gimbalRotate",
            "actionActuatorFuncParam": {
                "gimbalHeadingYawBase": "north",
                "gimbalRotateMode": "absoluteAngle",
                "gimbalPitchRotateEnable": 1,
                "gimbalPitchRotateAngle": -65.7,
                "gimbalRollRotateEnable": 0,
                "gimbalRollRotateAngle": 0,
                "gimbalYawRotateEnable": 0,
                "gimbalYawRotateAngle": 0,
                "gimbalRotateTimeEnable": 0,
                "gimbalRotateTime": 0,
                "payloadPositionIndex": 0
            }
        }
    },

    "zoom":{            // 调整相机焦距
        "name":"相机焦距",
        "value":"zoom",
        "type":"action",
        "config":{
            "actionId": null,
            "actionActuatorFunc": "zoom",
            "actionActuatorFuncParam": {
                "focalLength": 24,
                "isUseFocalFactor": 0,
                "payloadPositionIndex": 0
            }
        }
    },
    
    "hover":{                // 悬停
        "name":"悬停",
        "value":"hover",
        "type":"action",
        "config":{
            "actionId":null,
            "actionActuatorFunc": "hover",
            "actionActuatorFuncParam": {
                "hoverTime": 10
            }
        }
    },

    "orientedShoot":{       // 定向拍照
        "name":"定向拍照",
        "value":"orientedShoot",
        "type":"action",
        "config":{
            "actionId": null,
            "actionActuatorFunc": "orientedShoot",
            "actionActuatorFuncParam": {
                "gimbalPitchRotateAngle": 0,
                "gimbalRollRotateAngle": 0,
                "gimbalYawRotateAngle": 0,
                "focusX": 0,
                "focusY": 0,
                "focusRegionWidth": 0,
                "focusRegionHeight": 0,
                "focalLength": 24,
                "aircraftHeading": 0,
                "accurateFrameValid": 0,
                "payloadPositionIndex": 0,
                "useGlobalPayloadLensIndex": 1,
                "payloadLensIndex": "visable,ir",
                "targetAngle": 0,
                "actionUUID": "beb19eb4-84ff-4a5e-8544-47646d63a361",
                "imageWidth": 0,
                "imageHeight": 0,
                "AFPos": 0,
                "gimbalPort": 0,
                "orientedCameraType": 99,
                "orientedFilePath": "fa7781b7-665a-4d78-a9da-250d202a1522",
                "orientedFileMD5": "",
                "orientedFileSize": 0,
                "orientedPhotoMode": "normalPhoto"
            }
        }
    },

    "panoShot":{         // 全景拍照
        "name":"全景拍照",
        "value":"panoShot",
        "type":"action",
        "config":{
            "actionId": null,
            "actionActuatorFunc": "panoShot",
            "actionActuatorFuncParam": {
                "payloadPositionIndex": 0,
                "useGlobalPayloadLensIndex": 0,
                "payloadLensIndex": "visable,ir",
                "actionUUID": "c35840c5-c16c-431b-a005-27c225088c93",
                "panoShotSubMode": "panoShot_360"
            }
        }
    },

    "takePhoto":{      //  普通拍照
        "name":"拍照",
        "value":"takePhoto",
        "type":"action",
        "config":{
            "actionId": null,
            "actionActuatorFunc": "takePhoto",
            "actionActuatorFuncParam": {
                "payloadPositionIndex": 0,
                "useGlobalPayloadLensIndex": 1,
                "payloadLensIndex": "visable,ir"
            }
        }
    },

    "focus":{      // 聚焦
        "name":"相机聚焦",
        "value":"focus",
        "type":"action",
        "config":{
            "actionId": null,
            "actionActuatorFunc": "focus",
            "actionActuatorFuncParam": {
                "focusX": 0.25,
                "focusY": 0.25,
                "focusRegionWidth": 0.5,
                "focusRegionHeight": 0.5,
                "isPointFocus": 0,
                "isInfiniteFocus": 0,
                "payloadPositionIndex": 0,
                "isCalibrationFocus": 0
            }
        }
    },

    "startRecord":{    // 开始录像
        "name":"开始录像",
        "value":"startRecord",
        "type":"action",
        "config":{
            "actionId": null,
            "actionActuatorFunc": "startRecord",
            "actionActuatorFuncParam": {
                "payloadPositionIndex": 0,
                "useGlobalPayloadLensIndex": 1,
                "payloadLensIndex": "visable,ir"
            }
        }
    },

    "stopRecord":{    // 结束录像
        "name":"结束录像",
        "value":"stopRecord",
        "type":"action",
        "config":{
            "actionId": null,
            "actionActuatorFunc": "stopRecord",
            "actionActuatorFuncParam": {
                "payloadPositionIndex": 0
            }
        }
    },


    "multipleTiming":{    // 开始等时间间隔拍照
        "name":"开始等时间间隔拍照",
        "value":"multipleTiming",
        "type":"actionGroup",
        "config":{
            "actionGroupId": null,
            "actionGroupStartIndex": null,
            "actionGroupEndIndex": null,
            "actionGroupMode": "sequence",
            "actionTrigger": {
                "actionTriggerType": "multipleTiming",
                "actionTriggerParam": 3
            },
            "action": {
                "actionId": null,
                "actionActuatorFunc": "takePhoto",
                "actionActuatorFuncParam": {
                    "payloadPositionIndex": 0,
                    "useGlobalPayloadLensIndex": 1,
                    "payloadLensIndex": "visable,ir"
                }
            }
        }
    },

    "multipleDistance":{        // 开始等距离间隔拍照
        "name":"开始等距离间隔拍照",
        "value":"multipleDistance",
        "type":"actionGroup",
        "config":{
            "actionGroupId": null,
            "actionGroupStartIndex": null,
            "actionGroupEndIndex": null,
            "actionGroupMode": "sequence",
            "actionTrigger": {
                "actionTriggerType": "multipleDistance",
                "actionTriggerParam": 10
            },
            "action": {
                "actionId": null,
                "actionActuatorFunc": "takePhoto",
                "actionActuatorFuncParam": {
                        "payloadPositionIndex": 0,
                        "useGlobalPayloadLensIndex": 1,
                        "payloadLensIndex": "visable,ir"
                }
            }
        }
    },

    "multipleStop":{
        "name":"停止间隔拍照",
        "value":"multipleStop",
    }
}
