[m2] m2轨迹计算问题修复

This commit is contained in:
wangmingjun
2023-02-23 19:15:27 +08:00
parent 6dd1213210
commit 9370d4a9c4
2 changed files with 77 additions and 19 deletions

File diff suppressed because one or more lines are too long

View File

@@ -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 }
}