Add manually turn on sar mode
This commit is contained in:
parent
50a860fdf7
commit
fe2cc3b8de
@ -12,7 +12,7 @@ import lombok.Getter;
|
||||
public enum JmJobModeEnum implements CodeEnum<Integer> {
|
||||
|
||||
QUICK(1, "快速模式"),
|
||||
|
||||
CRUISE(2, "巡航模式"),
|
||||
CREATE(3, "航线创建")
|
||||
;
|
||||
|
||||
|
||||
@ -60,7 +60,7 @@ public class JmUavStatusDTO {
|
||||
private String sarIp;
|
||||
|
||||
/** sar 图片亮度 */
|
||||
private Integer sarImageLight;
|
||||
private volatile Integer sarImageLight;
|
||||
|
||||
/**
|
||||
* 获取sar当前状态
|
||||
|
||||
@ -18,6 +18,8 @@ import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.Optional;
|
||||
|
||||
import static com.zhangy.skyeye.jm.consts.JmJobModeEnum.CRUISE;
|
||||
|
||||
/**
|
||||
* 控制指令
|
||||
*/
|
||||
@ -44,7 +46,11 @@ public class SarControlServiceImpl implements ISarControlService {
|
||||
param.setMoto(sar.getMoto());
|
||||
param.setImageBit(sar.getImageBit());
|
||||
param.setResolution(sar.getResolution());
|
||||
if (job.getMode().equals(CRUISE.getCode())) {
|
||||
param.setControlType(SarControlTypeEnum.TURNON);
|
||||
} else {
|
||||
param.setControlType(SarControlTypeEnum.AUTO);
|
||||
}
|
||||
double startAltitude = uav.getStartAltitude();
|
||||
// 高度加上起始高度
|
||||
Optional.ofNullable(param.getAirlineList())
|
||||
|
||||
Loading…
Reference in New Issue
Block a user