| | |
| | | public class InitializationUtils { |
| | | |
| | | // 禅思H20T 公倍数 |
| | | private static final Double CHANSI_H20 = 23.76237623; |
| | | private static final Double CHANSI_H20T = 23.76237623; |
| | | |
| | | // 禅思H20T 焦距值 |
| | | private static final Double CHANSI_H20_FOCUS = 6.83; |
| | |
| | | for (ActionGroupReq actionGroupReq : routePointReq.getActionGroupList()) { |
| | | for (PointActionReq action : actionGroupReq.getActions()) { |
| | | if (action.getZoom() != null){ |
| | | //action.setZoom(action.getZoom() * CHANSI_H20); |
| | | action.setZoom(action.getZoom() * CHANSI_H20_FOCUS); |
| | | action.setZoom(multiple_23(action.getZoom())); |
| | | //action.setZoom(multiple_6(action.getZoom())); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | public static Double multiple_23(Double zoom){ |
| | | return zoom * CHANSI_H20T; |
| | | } |
| | | |
| | | public static Double multiple_6(Double zoom){ |
| | | return zoom * CHANSI_H20_FOCUS; |
| | | } |
| | | |
| | | public static Double divided_23(Double zoom){ |
| | | return zoom / CHANSI_H20T; |
| | | } |
| | | |
| | | public static Double divided_6(Double zoom){ |
| | | return zoom / CHANSI_H20_FOCUS; |
| | | } |
| | | |
| | | /** |
| | | * 初始化数据 |
| | | */ |