|
@@ -254,7 +254,8 @@ interface State {
|
|
|
task_periods: any[],
|
|
task_periods: any[],
|
|
|
min_battery_capacity: number,
|
|
min_battery_capacity: number,
|
|
|
rth_altitude: number,
|
|
rth_altitude: number,
|
|
|
- breakpoint_continuation: boolean;
|
|
|
|
|
|
|
+ breakpoint_continuation: boolean,
|
|
|
|
|
+ out_of_control_action: number,
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -263,7 +264,7 @@ const state: State = reactive({
|
|
|
formModel: {
|
|
formModel: {
|
|
|
name: '',// 任务名称
|
|
name: '',// 任务名称
|
|
|
file_id: '',// 执行航线
|
|
file_id: '',// 执行航线
|
|
|
- wayline_type: undefined,
|
|
|
|
|
|
|
+ wayline_type: undefined,// 航线类型
|
|
|
dock_sn: '',// 执行设备
|
|
dock_sn: '',// 执行设备
|
|
|
wayline_precision_type: 1,// 任务精度
|
|
wayline_precision_type: 1,// 任务精度
|
|
|
task_type: 0,// 任务策略
|
|
task_type: 0,// 任务策略
|
|
@@ -273,6 +274,7 @@ const state: State = reactive({
|
|
|
min_battery_capacity: 90,// 循环-任务开始执行的电量
|
|
min_battery_capacity: 90,// 循环-任务开始执行的电量
|
|
|
rth_altitude: 20,// 返航高度
|
|
rth_altitude: 20,// 返航高度
|
|
|
breakpoint_continuation: true,// 自动断点续飞
|
|
breakpoint_continuation: true,// 自动断点续飞
|
|
|
|
|
+ out_of_control_action: 0,// 失控动作-返航
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
|
|
|
|
@@ -460,6 +462,7 @@ const handleClickConfirm = async () => {
|
|
|
const data = {
|
|
const data = {
|
|
|
...values,
|
|
...values,
|
|
|
wayline_type: state.formModel.wayline_type,
|
|
wayline_type: state.formModel.wayline_type,
|
|
|
|
|
+ out_of_control_action: state.formModel.out_of_control_action,
|
|
|
};
|
|
};
|
|
|
if (values.task_time) {
|
|
if (values.task_time) {
|
|
|
data.task_time = moment(values.task_time).valueOf();
|
|
data.task_time = moment(values.task_time).valueOf();
|