修改can数据和红绿灯数据
This commit is contained in:
@@ -295,7 +295,7 @@ class MogoPrivateObuManager private constructor() {
|
||||
info.threat_info.app_id,
|
||||
info.status,
|
||||
info.ext_info.lights,
|
||||
info.ext_info.indicator
|
||||
info.ext_info.lightIndex
|
||||
)
|
||||
}
|
||||
}
|
||||
@@ -480,7 +480,7 @@ class MogoPrivateObuManager private constructor() {
|
||||
private fun handlerTrafficLight(appId: Int, status: Int, lights: List<Light>, indicator: Int) {
|
||||
LogUtils.dTag(
|
||||
MogoObuConst.TAG_MOGO_OBU,
|
||||
"handlerTrafficLight appId = $appId --- status = $status ---indicator = $indicator ---lights = $lights ---lights.size = ${lights.size}"
|
||||
"handlerTrafficLight appId = $appId --- status = $status ---indicator = $indicator ---lights.size = ${lights.size} ---lights = $lights "
|
||||
)
|
||||
when (status) {
|
||||
// 添加
|
||||
@@ -511,9 +511,9 @@ class MogoPrivateObuManager private constructor() {
|
||||
) {
|
||||
var ttsContent = ""
|
||||
var alertContent = ""
|
||||
// TODO 这里需要根据真实数据确定 indicator 取值方式,暂时写 0 调试
|
||||
if (lights.size >= indicator) {
|
||||
val currentLight = lights[0]
|
||||
//这里需要根据真实数据确定 indicator 取值方式
|
||||
if (lights.size >= indicator && indicator != -1) {
|
||||
val currentLight = lights[indicator]
|
||||
LogUtils.dTag(
|
||||
MogoObuConst.TAG_MOGO_OBU,
|
||||
"currentLight = $currentLight ---currentLight.phase = ${currentLight.phase} --- indicator = $indicator ---appId = $appId"
|
||||
|
||||
Reference in New Issue
Block a user