|
|
|
@ -1074,7 +1074,7 @@ const handelrAirPoint = () => {
|
|
|
|
|
{
|
|
|
|
|
"actionGroupId": 0,
|
|
|
|
|
"actionGroupStartIndex": item.id,
|
|
|
|
|
"actionGroupEndIndex": props.airPoints.length - 3,
|
|
|
|
|
"actionGroupEndIndex": props.airPoints.length - 2,
|
|
|
|
|
"actionGroupMode": "sequence",
|
|
|
|
|
"actionTrigger": {
|
|
|
|
|
"actionTriggerType": "betweenAdjacentPoints"
|
|
|
|
@ -1116,7 +1116,7 @@ const handelrAirPoint = () => {
|
|
|
|
|
{
|
|
|
|
|
"actionGroupId": 1,
|
|
|
|
|
"actionGroupStartIndex": item.id,
|
|
|
|
|
"actionGroupEndIndex": props.airPoints.length - 3,
|
|
|
|
|
"actionGroupEndIndex": props.airPoints.length - 2,
|
|
|
|
|
"actionGroupMode": "sequence",
|
|
|
|
|
"actionTrigger": {
|
|
|
|
|
"actionTriggerType": "multipleTiming",
|
|
|
|
@ -1395,6 +1395,33 @@ const handelrAirPoint = () => {
|
|
|
|
|
"actionGroupStartIndex": item.id,
|
|
|
|
|
"actionGroupEndIndex": item.id+1,
|
|
|
|
|
"actionGroupMode": "sequence",
|
|
|
|
|
"actionTrigger": {
|
|
|
|
|
"actionTriggerType": "multipleTiming",
|
|
|
|
|
"actionTriggerParam": 2
|
|
|
|
|
},
|
|
|
|
|
"action": {
|
|
|
|
|
"actionId": 0,
|
|
|
|
|
"actionActuatorFunc": "gimbalRotate",
|
|
|
|
|
"actionActuatorFuncParam": {
|
|
|
|
|
"gimbalHeadingYawBase": "aircraft",
|
|
|
|
|
"gimbalRotateMode": "absoluteAngle",
|
|
|
|
|
"gimbalPitchRotateEnable": 1,
|
|
|
|
|
"gimbalPitchRotateAngle": -45,
|
|
|
|
|
"gimbalRollRotateEnable": 0,
|
|
|
|
|
"gimbalRollRotateAngle": 0,
|
|
|
|
|
"gimbalYawRotateEnable": 0,
|
|
|
|
|
"gimbalYawRotateAngle": 0,
|
|
|
|
|
"gimbalRotateTimeEnable": 0,
|
|
|
|
|
"gimbalRotateTime": 10,
|
|
|
|
|
"payloadPositionIndex": 0
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"actionGroupId":5,
|
|
|
|
|
"actionGroupStartIndex": item.id,
|
|
|
|
|
"actionGroupEndIndex": item.id+1,
|
|
|
|
|
"actionGroupMode": "sequence",
|
|
|
|
|
"actionTrigger": {
|
|
|
|
|
"actionTriggerType": "betweenAdjacentPoints"
|
|
|
|
|
},
|
|
|
|
@ -1432,33 +1459,7 @@ const handelrAirPoint = () => {
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"actionGroupId": 5,
|
|
|
|
|
"actionGroupStartIndex": item.id,
|
|
|
|
|
"actionGroupEndIndex": item.id+1,
|
|
|
|
|
"actionGroupMode": "sequence",
|
|
|
|
|
"actionTrigger": {
|
|
|
|
|
"actionTriggerType": "multipleTiming",
|
|
|
|
|
"actionTriggerParam": 2
|
|
|
|
|
},
|
|
|
|
|
"action": {
|
|
|
|
|
"actionId": 0,
|
|
|
|
|
"actionActuatorFunc": "gimbalRotate",
|
|
|
|
|
"actionActuatorFuncParam": {
|
|
|
|
|
"gimbalHeadingYawBase": "aircraft",
|
|
|
|
|
"gimbalRotateMode": "absoluteAngle",
|
|
|
|
|
"gimbalPitchRotateEnable": 1,
|
|
|
|
|
"gimbalPitchRotateAngle": -45,
|
|
|
|
|
"gimbalRollRotateEnable": 0,
|
|
|
|
|
"gimbalRollRotateAngle": 0,
|
|
|
|
|
"gimbalYawRotateEnable": 0,
|
|
|
|
|
"gimbalYawRotateAngle": 0,
|
|
|
|
|
"gimbalRotateTimeEnable": 0,
|
|
|
|
|
"gimbalRotateTime": 10,
|
|
|
|
|
"payloadPositionIndex": 0
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
],
|
|
|
|
|
"waypointGimbalHeadingParam": {
|
|
|
|
|
"waypointGimbalPitchAngle": 0,
|
|
|
|
@ -1467,6 +1468,60 @@ const handelrAirPoint = () => {
|
|
|
|
|
"isRisky": 0,
|
|
|
|
|
"waypointWorkType": 0
|
|
|
|
|
}
|
|
|
|
|
}else if(index == props.airPoints.length -3){
|
|
|
|
|
point = {
|
|
|
|
|
"Placemark": {
|
|
|
|
|
"Point": {
|
|
|
|
|
"coordinates":"\n"+item.lng+","+item.lat+"\n"
|
|
|
|
|
},
|
|
|
|
|
"index": item.id,
|
|
|
|
|
"executeHeight": item.alt - height,
|
|
|
|
|
"waypointSpeed": props.templateKmlConfig.Folder.autoFlightSpeed,
|
|
|
|
|
"waypointHeadingParam": {
|
|
|
|
|
"waypointHeadingMode": "followWayline",
|
|
|
|
|
"waypointHeadingAngle": -90.9999957673264,
|
|
|
|
|
"waypointPoiPoint": "0.000000,0.000000,0.000000",
|
|
|
|
|
"waypointHeadingAngleEnable": 1,
|
|
|
|
|
"waypointHeadingPathMode": "followBadArc",
|
|
|
|
|
"waypointHeadingPoiIndex": 0
|
|
|
|
|
},
|
|
|
|
|
"waypointTurnParam": {
|
|
|
|
|
"waypointTurnMode": "toPointAndStopWithDiscontinuityCurvature",
|
|
|
|
|
"waypointTurnDampingDist": 0
|
|
|
|
|
},
|
|
|
|
|
"useStraightLine": 1,
|
|
|
|
|
"actionGroup": {
|
|
|
|
|
"actionGroupId": 2,
|
|
|
|
|
"actionGroupStartIndex": item.id,
|
|
|
|
|
"actionGroupEndIndex": item.id,
|
|
|
|
|
"actionGroupMode": "sequence",
|
|
|
|
|
"actionTrigger": {
|
|
|
|
|
"actionTriggerType": "reachPoint"
|
|
|
|
|
},
|
|
|
|
|
"action": [
|
|
|
|
|
{
|
|
|
|
|
"actionId": 0,
|
|
|
|
|
"actionActuatorFunc": "stopTimeLapse",
|
|
|
|
|
"actionActuatorFuncParam": {
|
|
|
|
|
"payloadPositionIndex": 0,
|
|
|
|
|
"payloadLensIndex": "visable"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"actionId": 1,
|
|
|
|
|
"actionActuatorFunc": "gimbalAngleUnlock"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"waypointGimbalHeadingParam": {
|
|
|
|
|
"waypointGimbalPitchAngle": 0,
|
|
|
|
|
"waypointGimbalYawAngle": 0
|
|
|
|
|
},
|
|
|
|
|
"isRisky": 0,
|
|
|
|
|
"waypointWorkType": 0
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}else{ // 处理中间航点
|
|
|
|
|
point = {
|
|
|
|
|
"Point": {
|
|
|
|
|