| | |
| | | package com.flightfeather.uav.domain.entity |
| | | |
| | | import com.flightfeather.uav.common.utils.DateUtil |
| | | import com.flightfeather.uav.biz.dataprocess.AvgPair |
| | | import com.flightfeather.uav.common.utils.DateUtil |
| | | import com.flightfeather.uav.lightshare.bean.DataVo |
| | | import com.flightfeather.uav.socket.bean.AirData |
| | | import com.flightfeather.uav.socket.eunm.FactorType |
| | |
| | | import java.util.* |
| | | import javax.persistence.Column |
| | | import javax.persistence.Id |
| | | import kotlin.math.* |
| | | import kotlin.math.atan |
| | | import kotlin.math.cos |
| | | import kotlin.math.round |
| | | import kotlin.math.sin |
| | | |
| | | /** |
| | | * 实时监测数据基类 |
| | |
| | | |
| | | @Column(name = "NOI") |
| | | var noi: Float? = null |
| | | |
| | | @Column(name = "NO") |
| | | var no: Float? = null |
| | | |
| | | var velocity: Float? = null |
| | | |
| | |
| | | |
| | | } |
| | | |
| | | fun List<BaseRealTimeData>.avg(): RealTimeDataGridMin { |
| | | fun List<BaseRealTimeData>.avg(): BaseRealTimeData { |
| | | //风向采用单位矢量法求取均值 |
| | | var u = .0//东西方位分量总和 |
| | | var v = .0//南北方位分量总和 |