[auto]
[文案修改]
This commit is contained in:
yangyakun
2023-09-05 12:10:50 +08:00
committed by zhongchao
parent 1f6854e74f
commit ee7ec8268b

View File

@@ -597,13 +597,15 @@ object TrajectoryAndDistanceManager: IMoGoPlanningRottingListener{
// 判断距离线段的距离 垂足的距离
val nextPoint: MogoLocation
val prePoint: MogoLocation
// isNext true 最近的点是在下一个
// isNext false 最近的点是在上一个
if (carLocationInfo.second == true) {
if (carLocationInfo.first > 0) {
nextPoint = redCatche[carLocationInfo.first]
prePoint = redCatche[carLocationInfo.first - 1]
} else {
// 距离第一个点大于15m 过远
return "距离第一个轨迹超过15m${carLocationInfo.first}"
return "距离轨迹线超过15m${carLocationInfo.first},无法启动自驾"
}
} else {
if (carLocationInfo.first + 1 < redCatche.size) {
@@ -625,7 +627,7 @@ object TrajectoryAndDistanceManager: IMoGoPlanningRottingListener{
return if (pointToLine <= OchCommonConst.AUTOMATIC_PLANNING_MAX_DISTANCE) {
""
} else {
"距离轨迹线的距离大于15m,无法启动自驾"
"距离轨迹线超过15m,无法启动自驾"
}
}
}