[Fix]修复无法开启自动驾驶,原因是传给工控机的action写错,正确的json如下
{"action":"aiCloudToStartAutopilot","result":{"endLatLon":{"lat":40.19925515953876,"lon":116.73274535677977},"isSpeakVoice":false,"speedLimit":0.0,"startLatLon":{"lat":40.19915728944592,"lon":116.73675895051454},"vehicleType":10,"wayLatLons":null}}
Signed-off-by: donghongyu <donghongyu@zhidaoauto.com>
This commit is contained in:
@@ -36,7 +36,7 @@ class MoGoAutopilotProvider :
|
||||
|
||||
override fun startAutoPilot(result: AutopilotControlParameters) {
|
||||
if (AdasManager.getInstance().isSocketConnect) {
|
||||
val parameter = AutopilotControlCmdParameter(TAG, result)
|
||||
val parameter = AutopilotControlCmdParameter("aiCloudToStartAutopilot", result)
|
||||
AdasManager.getInstance().aiCloudToAdasData(GsonUtils.toJson(parameter))
|
||||
} else {
|
||||
LogUtils.eTag(TAG, "车机与工控机链接失败,无法开启自动驾驶")
|
||||
|
||||
Reference in New Issue
Block a user