diff --git a/src/api/drone-control/drone.ts b/src/api/drone-control/drone.ts index 7539a4d..82734ab 100644 --- a/src/api/drone-control/drone.ts +++ b/src/api/drone-control/drone.ts @@ -18,6 +18,18 @@ export enum LostControlActionInCommandFLight { Land = 1, // 着陆 RETURN_HOME = 2, // 返航 } +export enum ERthMode { + SMART = 0, + SETTING = 1 +} +export enum ECommanderModeLostAction { + CONTINUE = 0, + EXEC_LOST_ACTION = 1 +} +export enum ECommanderFlightMode { + SMART = 0, + SETTING = 1 +} export interface PointBody { latitude: number; longitude: number; @@ -48,7 +60,11 @@ export interface PostTakeoffToPointBody{ max_speed: number; // flyto过程中能达到的最大速度, 单位m/s 跟飞机档位有关 rc_lost_action: LostControlActionInCommandFLight; // 失控行为 rth_altitude: number; // 返航高度 - exit_wayline_when_rc_lost: WaylineLostControlActionInCommandFlight + exit_wayline_when_rc_lost: WaylineLostControlActionInCommandFlight; + rth_mode: ERthMode; + commander_mode_lost_action: ECommanderModeLostAction; + commander_flight_mode: ECommanderFlightMode; + commander_flight_height: number; } // 一键起飞 diff --git a/src/api/http/config.ts b/src/api/http/config.ts index 75cbc92..d124291 100644 --- a/src/api/http/config.ts +++ b/src/api/http/config.ts @@ -1,17 +1,17 @@ export const CURRENT_CONFIG = { // license - appId: 'Please enter the app id.', // You need to go to the development website to apply. - appKey: 'Please enter the app key.', // You need to go to the development website to apply. + appId: 'Please enter the app id.', // You need to go to the development website to apply. + appKey: 'Please enter the app key.', // You need to go to the development website to apply. appLicense: 'Please enter the app license.', // You need to go to the development website to apply. - + // http baseURL: 'Please enter the backend access address prefix.', // This url must end with "/". Example: 'http://192.168.1.1:6789/' - websocketURL: 'Please enter the WebSocket access address.', // Example: 'ws://192.168.1.1:6789/api/v1/ws' + websocketURL: 'Please enter the WebSocket access address.', // Example: 'ws://192.168.1.1:6789/api/v1/ws' // livestreaming // RTMP Note: This IP is the address of the streaming server. If you want to see livestream on web page, you need to convert the RTMP stream to WebRTC stream. - rtmpURL: 'Please enter the rtmp access address.', // Example: 'rtmp://192.168.1.1/live/' + rtmpURL: 'Please enter the rtmp access address.', // Example: 'rtmp://192.168.1.1/live/' // GB28181 Note:If you don't know what these parameters mean, you can go to Pilot2 and select the GB28181 page in the cloud platform. Where the parameters same as these parameters. gbServerIp: 'Please enter the server ip.', gbServerPort: 'Please enter the server port.', @@ -29,7 +29,7 @@ export const CURRENT_CONFIG = { agoraToken: 'Please enter the agora temporary token.', agoraChannel: 'Please enter the agora channel.', - // map + // map // You can apply on the AMap website. amapKey: 'Please enter the amap key.', diff --git a/src/api/wayline.ts b/src/api/wayline.ts index a917804..18be49c 100644 --- a/src/api/wayline.ts +++ b/src/api/wayline.ts @@ -42,10 +42,12 @@ export interface CreatePlan { dock_sn: string, task_type: TaskType, // 任务类型 wayline_type: WaylineType, // 航线类型 - task_days?: number[] // 执行任务的日期(秒) - task_periods?: number[][] // 执行任务的时间点(秒) + task_days: number[] // 执行任务的日期(秒) + task_periods: number[][] // 执行任务的时间点(秒) rth_altitude: number // 相对机场返航高度 20 - 500 out_of_control_action: OutOfControlAction // 失控动作 + min_battery_capacity?: number, // The minimum battery capacity of aircraft. + min_storage_capacity?: number, // The minimum storage capacity of dock and aircraft. } // Create Wayline Job diff --git a/src/components/GMap.vue b/src/components/GMap.vue index 1a99fcc..25485ff 100644 --- a/src/components/GMap.vue +++ b/src/components/GMap.vue @@ -21,8 +21,8 @@ -
Live streaming source selection