| | |
| | | import com.ard.tianyu.model.dto.BoxHistoryDTO; |
| | | import com.ard.tianyu.model.dto.BoxPhotosDTO; |
| | | import com.ard.tianyu.model.dto.BoxSettingsDTO; |
| | | import com.ard.tianyu.model.dto.camera.CapturePicDTO; |
| | | import com.ard.tianyu.model.dto.camera.RecordDTO; |
| | | import com.ard.tianyu.model.dto.camera.*; |
| | | import com.ard.tianyu.model.dto.control.AbsAngleControlDTO; |
| | | import com.ard.tianyu.model.dto.control.AngleControlDTO; |
| | | import com.ard.tianyu.model.dto.control.SpeedControlDTO; |
| | |
| | | return AjaxResult.success(); |
| | | } |
| | | |
| | | @ApiOperation(value = "变倍", notes = "actionCode值:10变倍加 | 11变倍减 | 15复位 | 255停止") |
| | | @ApiOperationSupport(order = 6) |
| | | @PostMapping("/zoom") |
| | | public AjaxResult zoom(@RequestBody ZoomDTO zoomDTO) { |
| | | tyService.zoom(zoomDTO); |
| | | return AjaxResult.success(); |
| | | } |
| | | @ApiOperation("变倍指定倍数") |
| | | @ApiOperationSupport(order = 7) |
| | | @PostMapping("/zoomToLevel") |
| | | public AjaxResult zoomToLevel(@RequestBody ZoomToLevelDTO zoomToLevelDTO) { |
| | | tyService.zoomToLevel(zoomToLevelDTO); |
| | | return AjaxResult.success(); |
| | | } |
| | | |
| | | @ApiOperation(value = "切换摄像头", notes = "actionParam值:0切换到FPV摄像头 | 1切换到载荷摄像头") |
| | | @ApiOperationSupport(order = 8) |
| | | @PostMapping("/switchCamera") |
| | | public AjaxResult switchCamera(@RequestBody SwitchCameraDTO switchCameraDTO) { |
| | | tyService.switchCamera(switchCameraDTO); |
| | | return AjaxResult.success(); |
| | | } |
| | | @ApiOperation(value = "切换视频源", notes = "相机在主相机镜头时有效,FPV镜头时无效 actionParam值:0-可见 1-变焦 2-红外") |
| | | @ApiOperationSupport(order = 8) |
| | | @PostMapping("/switchSource") |
| | | public AjaxResult switchSource(@RequestBody SwitchSourceDTO switchSourceDTO) { |
| | | tyService.switchSource(switchSourceDTO); |
| | | return AjaxResult.success(); |
| | | } |
| | | |
| | | @ApiOperation(value = "打开或关闭照片回传", notes = "actionParam值:0-关闭,1-打开") |
| | | @ApiOperationSupport(order = 8) |
| | | @PostMapping("/photoReturnToggle") |
| | | public AjaxResult photoReturnToggle(@RequestBody PhotoReturnToggleDTO photoReturnToggleDTO) { |
| | | tyService.photoReturnToggle(photoReturnToggleDTO); |
| | | return AjaxResult.success(); |
| | | } |
| | | |
| | | @ApiOperation("获取无人机状态") |
| | | @GetMapping("/getUavState") |
| | | public AjaxResult getUavState(String boxSn) { |