[opt3.0][adas lib] 1.能否启动自驾检测接口兼容MAP250以下版本;2.获取车机基础信息接口增加多次获取逻辑,目前会尝试3次获取;3.修改错别字

This commit is contained in:
xinfengkun
2023-02-21 15:35:52 +08:00
parent b3b53d478f
commit b192238894
15 changed files with 479 additions and 128 deletions

View File

@@ -173,7 +173,7 @@ class MoGoAdasListenerImpl : OnAdasListener {
CallerChassisLamplightListenerManager.invokeAutopilotBrakeLightData(vehicleState.brakeLightStatus)
//方向盘转向角数据
CallerChassisSteeringStateListenerManager.invokeAutopilotSteeringData(vehicleState.steering)
//挂档位数据
//挂档位数据
CallerChassisGearStateListenerManager.invokeAutopilotGearData(vehicleState.gear)
//加速度
CallerChassisAccStateListenerManager.invokeAutopilotAcc(vehicleState.accel)
@@ -237,7 +237,7 @@ class MoGoAdasListenerImpl : OnAdasListener {
}
chassisStates.gearSystemStates?.let { gearSystemStates ->
gearSystemStates.gearPosition?.let {
//挂档位数据
//挂档位数据
CallerChassisGearStateListenerManager.invokeAutopilotGearData(it)
}
}

View File

@@ -1921,12 +1921,12 @@ internal class DebugSettingView @JvmOverloads constructor(
}
/**
* 车辆挂档位
* 车辆挂档位
* @param gear 档位
*/
override fun onAutopilotGearData(gear: Chassis.GearPosition) {
ThreadUtils.runOnUiThread {
tvGearInfo.text = "档位:${gear}"
tvGearInfo.text = "档位:${gear}"
}
}

View File

@@ -1008,7 +1008,7 @@
style="@style/DebugSettingText"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="挂档位:" />
android:text="挂档位:" />
<View
android:layout_width="match_parent"