[Bus/Taxi d v2.6.6]开启自动驾驶参数增加routeId、routeName(后续支持BusMAP240多轨迹选择)

This commit is contained in:
pangfan
2022-04-30 00:09:26 +08:00
parent d925f1db49
commit a77976b072
2 changed files with 10 additions and 0 deletions

View File

@@ -481,6 +481,8 @@ public class BusOrderModel {
// }
AutopilotControlParameters currentAutopilot = new AutopilotControlParameters();
currentAutopilot.isSpeakVoice = !isRestart;
currentAutopilot.routeID = busRoutesResult.getLineId();
currentAutopilot.routeName = busRoutesResult.getName();
currentAutopilot.startName = PinYinUtil.getPinYinHeadChar(currentStation.getName());
currentAutopilot.endName = PinYinUtil.getPinYinHeadChar(nextStation.getName());
currentAutopilot.startLatLon = new AutopilotControlParameters

View File

@@ -50,6 +50,10 @@ fun AutopilotControlParameters.toRouteInfo(): MessagePad.RouteInfo{
locBuilder.longitude = it.lon
routeInfo.addWayPoints(locBuilder.build())
}
if (this.routeID > 0) {
routeInfo.routeID = this.routeID
}
routeInfo.routeName = this.routeName
routeInfo.startName = this.startName
routeInfo.endName = this.endName
routeInfo.vehicleType = this.vehicleType
@@ -76,6 +80,10 @@ class AutopilotControlParameters {
@JvmField
var vehicleType // 运营类型
= 0
@JvmField
var routeID = 0 //线路idbus用
@JvmField
var routeName = "" //线路名称bus用
/**
* 是否播放adas的 开始自动驾驶 语音