[Bus/Taxi d v2.6.6]开启自动驾驶参数增加routeId、routeName(后续支持BusMAP240多轨迹选择)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 //线路id(bus用)
|
||||
@JvmField
|
||||
var routeName = "" //线路名称(bus用)
|
||||
|
||||
/**
|
||||
* 是否播放adas的 开始自动驾驶 语音
|
||||
|
||||
Reference in New Issue
Block a user