调试窗修改
主线程更新UI
This commit is contained in:
@@ -1630,7 +1630,9 @@ class DebugSettingView @JvmOverloads constructor(
|
||||
* 时延显示
|
||||
*/
|
||||
override fun onObuV2iDelayTime(delayTime: Long) {
|
||||
tvObuDelay.text = "obu时延:" + delayTime.toString()
|
||||
ThreadUtils.runOnUiThread{
|
||||
tvObuDelay.text = "obu时延:" + delayTime.toString()
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1654,7 +1656,9 @@ class DebugSettingView @JvmOverloads constructor(
|
||||
* @param steering 方向盘转向角
|
||||
*/
|
||||
override fun onAutopilotSteeringData(steering: Float) {
|
||||
tvSteeringInfo.text = "方向盘转向角:${steering}"
|
||||
ThreadUtils.runOnUiThread{
|
||||
tvSteeringInfo.text = "方向盘转向角:${steering}"
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1662,7 +1666,9 @@ class DebugSettingView @JvmOverloads constructor(
|
||||
* @param gear 档位
|
||||
*/
|
||||
override fun onAutopilotGearData(gear: Chassis.GearPosition) {
|
||||
tvGearInfo.text = "挂挡档位:${gear}"
|
||||
ThreadUtils.runOnUiThread{
|
||||
tvGearInfo.text = "挂挡档位:${gear}"
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user