fix bug of model and add func obu track

This commit is contained in:
zhongchao
2022-08-25 11:58:30 +08:00
parent 6b3881ce60
commit d2c11480be
13 changed files with 302 additions and 113 deletions

View File

@@ -2,6 +2,23 @@ package com.mogo.eagle.core.data.traffic
import com.mogo.eagle.core.data.enums.TrafficTypeEnum
fun TrafficData.threatLevelColor():String{
return when (threatLevel) {
1 -> {
"#D8D8D8FF"
}
2 -> {
"#FFD53EFF"
}
3 -> {
"#FF3C45FF"
}
else -> {
"#D8D8D8FF"
}
}
}
/**
* @author xiaoyuzhou
* @date 2021/8/17 8:41 下午