| | |
| | | @Override
|
| | | public List byMonitorIdGetDeviceAndWind(String id, String tab) {
|
| | | List<DeviceAndWind> deviceAndWinds = deviceMapper.byMonitorIdGetDeviceAndWind(Integer.parseInt(id), tab);
|
| | | System.out.println(deviceAndWinds); |
| | | System.out.println(deviceAndWinds); |
| | | List loList = new ArrayList();
|
| | | List laList = new ArrayList();
|
| | | Double U = 0.0;
|
| | |
| | | if (tvoc == null) {
|
| | | tvoc = 0.0;
|
| | | }
|
| | | Double dir = (270.0 - windDir * Math.PI / 180.0);
|
| | | Double dir = (270.0 - (windDir+180.0) * Math.PI / 180.0); |
| | |
|
| | | U = windSpeed * Math.cos(dir);
|
| | | V = windSpeed * Math.sin(dir);
|
| | |
| | | if (tvoc == null) {
|
| | | tvoc = 0.0;
|
| | | }
|
| | | Double dir = (270.0 - windDir * Math.PI / 180.0);
|
| | | Double dir = (270.0 + (windDir+180.0) * Math.PI / 180.0); |
| | |
|
| | | U = windSpeed * Math.cos(dir);
|
| | | V = windSpeed * Math.sin(dir);
|