| | |
| | | import startRecordImg from '@/assets/images/aiNowFly/event/startRecord.png' |
| | | import takePhotoImg from '@/assets/images/aiNowFly/event/takePhoto.png' |
| | | // import TakePhoto from '@/views/RoutePlan/PointAirLine/EventEdit/TakePhoto.vue' |
| | | // import TakePhotoOrientedShoot from '@/views/RoutePlan/PointAirLine/EventEdit/TakePhotoOrientedShoot.vue' |
| | | // import CameraZoom from '@/views/RoutePlan/PointAirLine/EventEdit/CameraZoom.vue' |
| | | // import RotateYaw from '@/views/RoutePlan/PointAirLine/EventEdit/RotateYaw.vue' |
| | | // import GimbalYawRotate from '@/views/RoutePlan/PointAirLine/EventEdit/GimbalYawRotate.vue' |
| | | // import GimbalPitchRotate from '@/views/RoutePlan/PointAirLine/EventEdit/GimbalPitchRotate.vue' |
| | | // import HoverTime from '@/views/RoutePlan/PointAirLine/EventEdit/HoverTime.vue' |
| | | import _ from 'lodash' |
| | |
| | | return _.cloneDeep(params) |
| | | } |
| | | |
| | | // export const pointEventList = [ |
| | | // { |
| | | // label: '单拍', |
| | | // key: 'takePhoto', |
| | | // component: TakePhoto, |
| | | // imgUrl: getImageUrl('takePhoto.png'), |
| | | // params: [ |
| | | // { name: '拍摄照片文件后缀', key: 'file_suffix', value: '' }, |
| | | // { name: '拍摄照片存储类型', key: 'payload_lens_index', value: '' }, |
| | | // { name: '是否使用全局存储类型', key: 'use_global_payload_lens_index', value: 1 }, |
| | | // ], |
| | | // }, |
| | | // { |
| | | // label: '开始录像', |
| | | // key: 'startRecord', |
| | | // component: TakePhoto, |
| | | // imgUrl: getImageUrl('startRecord.png'), |
| | | // params: [ |
| | | // { name: '拍摄照片文件后缀', key: 'file_suffix', value: '' }, |
| | | // { |
| | | // name: '拍摄照片存储类型', |
| | | // key: 'payload_lens_index', |
| | | // value: 'wide', |
| | | // }, |
| | | // { name: '是否使用全局存储类型', key: 'use_global_payload_lens_index', value: '1' }, |
| | | // ], |
| | | // }, |
| | | // { |
| | | // label: '结束录像', |
| | | // key: 'stopRecord', |
| | | // imgUrl: getImageUrl('stopRecord.png'), |
| | | // params: [], |
| | | // }, |
| | | // { |
| | | // label: '相机变焦', |
| | | // component: CameraZoom, |
| | | // key: 'zoom', |
| | | // imgUrl: getImageUrl('zoom.png'), |
| | | // params: [{ name: '变焦焦距', key: 'focal_length', value: 5 }], |
| | | // }, |
| | | // |
| | | // { |
| | | // label: '云台偏航角', |
| | | // key: 'gimbalRotate', |
| | | // component: GimbalYawRotate, |
| | | // imgUrl: getImageUrl('gimbalRotate.png'), |
| | | // params: [ |
| | | // { name: '云台偏航角转动坐标系', key: 'gimbal_heading_yaw_base', value: 'north' }, |
| | | // { name: '云台转动模式', key: 'gimbal_rotate_mode', value: 'absoluteAngle' }, |
| | | // { name: '是否使能云台Pitch转动', key: 'gimbal_pitch_rotate_enable', value: 0 }, |
| | | // { name: '云台Pitch转动角度', key: 'gimbal_pitch_rotate_angle', value: 0 }, |
| | | // { name: '是否使能云台Roll转动 ', key: 'gimbal_roll_rotate_enable', value: 0 }, |
| | | // { name: '云台Roll转动角度', key: 'gimbal_roll_rotate_angle', value: 0 }, |
| | | // { name: '是否使能云台Yaw转动', key: 'gimbal_yaw_rotate_enable', value: 1 }, |
| | | // { name: '云台Yaw转动角度', key: 'gimbal_yaw_rotate_angle', value: 0 }, |
| | | // ], |
| | | // }, |
| | | // { |
| | | // label: '云台俯仰角', |
| | | // key: 'gimbalPitchRotate', |
| | | // component: GimbalPitchRotate, |
| | | // imgUrl: getImageUrl('gimbalPitchRotate.png'), |
| | | // params: [ |
| | | // { name: '云台偏航角转动坐标系', key: 'gimbal_heading_yaw_base', value: 'north' }, |
| | | // { name: '云台转动模式', key: 'gimbal_rotate_mode', value: 'absoluteAngle' }, |
| | | // { name: '是否使能云台Pitch转动', key: 'gimbal_pitch_rotate_enable', value: 1 }, |
| | | // { name: '云台Pitch转动角度', key: 'gimbal_pitch_rotate_angle', value: 0 }, |
| | | // { name: '是否使能云台Roll转动 ', key: 'gimbal_roll_rotate_enable', value: 0 }, |
| | | // { name: '云台Roll转动角度', key: 'gimbal_roll_rotate_angle', value: 0 }, |
| | | // { name: '是否使能云台Yaw转动', key: 'gimbal_yaw_rotate_enable', value: 0 }, |
| | | // { name: '云台Yaw转动角度', key: 'gimbal_yaw_rotate_angle', value: 0 }, |
| | | // ], |
| | | // }, |
| | | // { |
| | | // label: '飞行器偏航角', |
| | | // key: 'rotateYaw', |
| | | // component: RotateYaw, |
| | | // imgUrl: getImageUrl('rotateYaw.png'), |
| | | // params: [ |
| | | // { |
| | | // name: '飞行器目标偏航角', |
| | | // key: 'aircraft_heading', |
| | | // value: 0, |
| | | // }, |
| | | // ], |
| | | // }, |
| | | // { |
| | | // label: '悬停等待', |
| | | // key: 'hover', |
| | | // imgUrl: getImageUrl('hover.png'), |
| | | // component: HoverTime, |
| | | // params: [{ name: '飞行器悬停等待时间', key: 'hover_time', value: 10 }], |
| | | // }, |
| | | // { |
| | | // label: '全景拍照', |
| | | // key: 'panoShot', |
| | | // imgUrl: getImageUrl('panoShot.png'), |
| | | // }, |
| | | // { |
| | | // label: '喊话器', |
| | | // key: 'megaphone', |
| | | // hide: hideEventMegaphone, |
| | | // imgUrl: getImageUrl('megaphone0.png'), |
| | | // children: [ |
| | | // { |
| | | // label: '开始喊话', |
| | | // key: 'megaphone', |
| | | // component: Megaphone, |
| | | // imgUrl: getImageUrl('megaphone1.png'), |
| | | // params: getMegaphoneParams(0), |
| | | // }, |
| | | // { |
| | | // label: '结束喊话', |
| | | // key: 'megaphone', |
| | | // imgUrl: getImageUrl('megaphone2.png'), |
| | | // params: getMegaphoneParams(1), |
| | | // }, |
| | | // ], |
| | | // }, |
| | | // { |
| | | // label: '探照灯', |
| | | // key: 'searchlight', |
| | | // hide: hideEventSearchlight, |
| | | // imgUrl: getImageUrl('deng4.png'), |
| | | // children: [ |
| | | // { |
| | | // label: '照明', |
| | | // key: 'searchlight', |
| | | // component: Searchlight, |
| | | // imgUrl: getImageUrl('deng1.png'), |
| | | // params: getSearchlightParams(1), |
| | | // }, |
| | | // { |
| | | // label: '爆闪', |
| | | // key: 'searchlight', |
| | | // component: Searchlight, |
| | | // imgUrl: getImageUrl('deng2.png'), |
| | | // params: getSearchlightParams(2), |
| | | // }, |
| | | // { |
| | | // label: '关闭探照灯', |
| | | // key: 'searchlight', |
| | | // imgUrl: getImageUrl('deng0.png'), |
| | | // params: getSearchlightParams(0), |
| | | // }, |
| | | // ], |
| | | // }, |
| | | // ] |
| | | // 点事件列表 |
| | | export const pointEventList = [ |
| | | { |
| | | label: '单拍', |
| | | key: 'takePhoto', |
| | | keyboardKey:'KeyJ', |
| | | component: '', |
| | | imgUrl: getImageUrl('takePhoto.svg'), |
| | | params: [ |
| | | { name: '拍摄照片文件后缀', key: 'file_suffix', value: '' }, |
| | | { name: '拍摄照片存储类型', key: 'payload_lens_index', value: '' }, |
| | | { name: '是否使用全局存储类型', key: 'use_global_payload_lens_index', value: 1 }, |
| | | ], |
| | | }, |
| | | { |
| | | label: '定向拍照', |
| | | key: 'orientedShoot', |
| | | keyboardKey:'KeyJ', |
| | | component: '', |
| | | imgUrl: getImageUrl('takePhotoOrientation.svg'), |
| | | params: [ |
| | | { name: '俯仰角', key: 'gimbal_pitch_rotate_angle', value: '' }, |
| | | { name: '偏航角', key: 'gimbal_yaw_rotate_angle', value: '' }, |
| | | { name: '偏航角', key: 'aircraft_heading', value: '' }, |
| | | { name: '变焦焦距', key: 'focal_length', value: '' }, |
| | | { name: '是否使用全局存储类型', key: 'use_global_payload_lens_index', value: 1 }, |
| | | { name: '存储类型', key: 'payload_lens_index', value: '' }, |
| | | { name: '定向相机类型', key: 'oriented_camera_type', value: '' }, |
| | | ], |
| | | }, |
| | | { |
| | | label: '开始录像', |
| | | key: 'startRecord', |
| | | keyboardKey:'KeyK', |
| | | component: '', |
| | | imgUrl: getImageUrl('startRecord.svg'), |
| | | params: [ |
| | | { name: '拍摄照片文件后缀', key: 'file_suffix', value: '' }, |
| | | { |
| | | name: '拍摄照片存储类型', |
| | | key: 'payload_lens_index', |
| | | value: 'wide', |
| | | }, |
| | | { name: '是否使用全局存储类型', key: 'use_global_payload_lens_index', value: '1' }, |
| | | ], |
| | | }, |
| | | { |
| | | label: '结束录像', |
| | | key: 'stopRecord', |
| | | keyboardKey:'KeyL', |
| | | imgUrl: getImageUrl('stopRecord.svg'), |
| | | params: [], |
| | | }, |
| | | { |
| | | label: '相机变焦', |
| | | component: '', |
| | | key: 'zoom', |
| | | keyboardKey:'KeyI', |
| | | imgUrl: getImageUrl('zoom.svg'), |
| | | params: [{ name: '变焦焦距', key: 'focal_length', value: 5 }], |
| | | }, |
| | | { |
| | | label: '云台俯仰角', |
| | | key: 'gimbalRotate', |
| | | keyboardKey:'KeyO', |
| | | component: '', |
| | | imgUrl: getImageUrl('gimbalPitchRotate.svg'), |
| | | params: [ |
| | | { name: '云台偏航角转动坐标系', key: 'gimbal_heading_yaw_base', value: 'north' }, |
| | | { name: '云台转动模式', key: 'gimbal_rotate_mode', value: 'absoluteAngle' }, |
| | | { name: '是否使能云台Pitch转动', key: 'gimbal_pitch_rotate_enable', value: 1 }, |
| | | { name: '云台Pitch转动角度', key: 'gimbal_pitch_rotate_angle', value: 0 }, |
| | | { name: '是否使能云台Roll转动 ', key: 'gimbal_roll_rotate_enable', value: 0 }, |
| | | { name: '云台Roll转动角度', key: 'gimbal_roll_rotate_angle', value: 0 }, |
| | | { name: '是否使能云台Yaw转动', key: 'gimbal_yaw_rotate_enable', value: 0 }, |
| | | { name: '云台Yaw转动角度', key: 'gimbal_yaw_rotate_angle', value: 0 }, |
| | | ], |
| | | }, |
| | | { |
| | | label: '飞行器偏航角', |
| | | key: 'rotateYaw', |
| | | keyboardKey:'KeyU', |
| | | component: '', |
| | | imgUrl: getImageUrl('rotateYaw.svg'), |
| | | params: [ |
| | | { |
| | | name: '飞行器目标偏航角', |
| | | key: 'aircraft_heading', |
| | | value: 0, |
| | | }, |
| | | ], |
| | | }, |
| | | { |
| | | label: '悬停等待', |
| | | key: 'hover', |
| | | keyboardKey:'KeyH', |
| | | imgUrl: getImageUrl('hover.svg'), |
| | | component: '', |
| | | params: [{ name: '飞行器悬停等待时间', key: 'hover_time', value: 10 }], |
| | | }, |
| | | { |
| | | label: '全景拍照', |
| | | key: 'panoShot', |
| | | keyboardKey:'KeyY', |
| | | imgUrl: getImageUrl('panoShot.svg'), |
| | | }, |
| | | { |
| | | label: '喊话器', |
| | | key: 'megaphone', |
| | | hide: hideEventMegaphone, |
| | | imgUrl: getImageUrl('megaphone0.svg'), |
| | | children: [ |
| | | { |
| | | label: '开始喊话', |
| | | key: 'megaphone', |
| | | keyboardKey: 'KeyM', |
| | | component: '', |
| | | imgUrl: getImageUrl('megaphone1.svg'), |
| | | params: getMegaphoneParams(0), |
| | | }, |
| | | { |
| | | label: '结束喊话', |
| | | key: 'megaphone', |
| | | keyboardKey: 'KeyN', |
| | | imgUrl: getImageUrl('megaphone2.svg'), |
| | | params: getMegaphoneParams(1), |
| | | }, |
| | | ], |
| | | }, |
| | | { |
| | | label: '探照灯', |
| | | key: 'searchlight', |
| | | hide: hideEventSearchlight, |
| | | imgUrl: getImageUrl('deng4.svg'), |
| | | children: [ |
| | | { |
| | | label: '照明', |
| | | key: 'searchlight', |
| | | keyboardKey: 'KeyT', |
| | | component: '', |
| | | imgUrl: getImageUrl('deng1.svg'), |
| | | params: getSearchlightParams(1), |
| | | }, |
| | | { |
| | | label: '爆闪', |
| | | key: 'searchlight', |
| | | keyboardKey: 'KeyG', |
| | | component: '', |
| | | imgUrl: getImageUrl('deng2.svg'), |
| | | params: getSearchlightParams(2), |
| | | }, |
| | | { |
| | | label: '关闭探照灯', |
| | | key: 'searchlight', |
| | | keyboardKey: 'KeyB', |
| | | imgUrl: getImageUrl('deng0.svg'), |
| | | params: getSearchlightParams(0), |
| | | }, |
| | | ], |
| | | }, |
| | | ] |
| | | |
| | | export const cameraModeList = [ |
| | | { |