[m2] m2轨迹计算问题修复
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -48,25 +48,27 @@ class PM2DrivingInfoFragment :
|
||||
context?.let { it -> ToggleDebugView.toggleDebugView.toggle(it) }
|
||||
}
|
||||
current_time_tv.onClick {
|
||||
//测试V2X消息
|
||||
CallerMsgBoxManager.saveMsgBox(
|
||||
MsgBoxBean(
|
||||
MsgBoxType.V2X,
|
||||
V2XMsg(
|
||||
"6666",
|
||||
"超速行驶",
|
||||
""
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
val noticeTrafficStylePushData = NoticeTrafficStylePushData()
|
||||
noticeTrafficStylePushData.content= "测试公告布局"
|
||||
val noticeFromCloudMsg = NoticeFrCloudMsg(null, noticeTrafficStylePushData, 1)
|
||||
CallerMsgBoxManager.saveMsgBox(
|
||||
MsgBoxBean(
|
||||
MsgBoxType.NOTICE, noticeFromCloudMsg)
|
||||
)
|
||||
// //测试V2X消息
|
||||
// CallerMsgBoxManager.saveMsgBox(
|
||||
// MsgBoxBean(
|
||||
// MsgBoxType.V2X,
|
||||
// V2XMsg(
|
||||
// "6666",
|
||||
// "超速行驶",
|
||||
// ""
|
||||
// )
|
||||
// )
|
||||
// )
|
||||
//
|
||||
// val noticeTrafficStylePushData = NoticeTrafficStylePushData()
|
||||
// noticeTrafficStylePushData.content= "测试公告布局"
|
||||
// val noticeFromCloudMsg = NoticeFrCloudMsg(null, noticeTrafficStylePushData, 1)
|
||||
// CallerMsgBoxManager.saveMsgBox(
|
||||
// MsgBoxBean(
|
||||
// MsgBoxType.NOTICE, noticeFromCloudMsg)
|
||||
// )
|
||||
// BPRouteDataTestUtils.converToRouteData()
|
||||
}
|
||||
updateCurrentTime()
|
||||
}
|
||||
@@ -209,7 +211,7 @@ class PM2DrivingInfoFragment :
|
||||
}
|
||||
}
|
||||
|
||||
val time = ceil(timeInSecond as Double / 60f).toInt()
|
||||
val time = ceil(timeInSecond / 60f).toInt()
|
||||
|
||||
"$remainDis$disUnit | $time 分钟".also { remain_mt.text = it }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user