| | |
| | | return result.data |
| | | } |
| | | } |
| | | // get Wayline File |
| | | export const getWayLineFile = async function (workspaceId: string, waylineId: string) { |
| | | const url = `${HTTP_PREFIX}/workspaces/${workspaceId}/waylines/${waylineId}/urlData` |
| | | const result = await request.get(url) |
| | | return result.data |
| | | } |
| | | |
| | | // Delete Wayline File |
| | | export const deleteWaylineFile = async function (workspaceId: string, waylineId: string): Promise<IWorkspaceResponse<any>> { |
| | |
| | | task_periods?: number[][] // 执行任务的时间点(秒) |
| | | rth_altitude: number // 相对机场返航高度 20 - 500 |
| | | out_of_control_action: OutOfControlAction // 失控动作 |
| | | |
| | | |
| | | //重复频率类型 |
| | | rep_fre_type?:number |
| | | //重复频率值 |
| | | rep_fre_val?:number |
| | | // 重复规则值 |
| | | rep_rule_val?:[] |
| | | rep_rule_type?:number |
| | | } |
| | | // 新增计划 |
| | | export const createPlan = async function (workspaceId: string, plan: CreatePlan): Promise<IWorkspaceResponse<any>> { |