You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

49 lines
1.2 KiB

"use strict";
const { Controller } = require("egg");
class HaikangweishiController extends Controller {
//旋转
async continuous() {
let { ctx, service } = this;
let res = await service.haikangweishi.continuous(ctx.query);
ctx.body = res;
}
//到达预置点
async goto() {
let { ctx, service } = this;
let res = await service.haikangweishi.goto(ctx.query);
ctx.body = res;
}
//设置预置点
async presets() {
let { ctx, service } = this;
let res = await service.haikangweishi.presets(ctx.query);
ctx.body = res;
}
//删除预置点
async delPresets() {
let { ctx, service } = this;
let res = await service.haikangweishi.delPresets(ctx.query);
ctx.body = res;
}
//调焦
async zoom() {
let { ctx, service } = this;
let res = await service.haikangweishi.zoom(ctx.query);
ctx.body = res;
}
//聚焦
async focus() {
let { ctx, service } = this;
let res = await service.haikangweishi.focus(ctx.query);
ctx.body = res;
}
//曝光度
async iris() {
let { ctx, service } = this;
let res = await service.haikangweishi.iris(ctx.query);
ctx.body = res;
}
}
module.exports = HaikangweishiController;