Commit 6eb9aaf2 by gdj

修复无人机和机场相对高度低于0时无法返航的bug

parent 05a9a036
......@@ -21,7 +21,8 @@ public class ReturnHomeState extends RemoteDebugHandler {
return deviceRedisService.getDeviceOnline(sn)
.map(DeviceDTO::getChildDeviceSn)
.flatMap(deviceSn -> deviceRedisService.getDeviceOsd(deviceSn, OsdDockDrone.class))
.map(osd -> osd.getElevation() > 0 && modeCodeCanReturnHome(osd.getModeCode()))
//.map(osd -> osd.getElevation() > 0 && modeCodeCanReturnHome(osd.getModeCode()))
.map(osd -> modeCodeCanReturnHome(osd.getModeCode()))
.orElse(false);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment