feiyu02
2025-09-30 94fee0b511279679b43e210878d3d36e5a14384b
src/main/kotlin/com/flightfeather/uav/biz/dataanalysis/model/ExceptionSetting.kt
@@ -1,5 +1,7 @@
package com.flightfeather.uav.biz.dataanalysis.model
import com.flightfeather.uav.socket.eunm.FactorType
/**
 * 走航数据异常标准
 */
@@ -28,4 +30,28 @@
            else -> null
        }
    }
    fun getByFactorType(factorType: FactorType): Float? {
        return when (factorType) {
            FactorType.NO2 -> no2
            FactorType.CO -> co
            FactorType.H2S -> h2s
            FactorType.SO2 -> so2
            FactorType.O3 -> o3
            FactorType.PM25 -> pm25
            FactorType.PM10 -> pm10
//            FactorType.TEMPERATURE -> temperature
//            FactorType.HUMIDITY -> humidity
            FactorType.VOC -> voc
//            FactorType.NOI -> noi
//            FactorType.LNG -> longitude?.toFloat()
//            FactorType.LAT -> latitude?.toFloat()
//            FactorType.VELOCITY -> velocity
//            FactorType.TIME -> noi
//            FactorType.WIND_SPEED -> windSpeed
//            FactorType.WIND_DIRECTION -> windDirection
//            FactorType.HEIGHT -> height
            else -> null
        }
    }
}