[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:
donghongyu
2021-11-16 16:26:08 +08:00
parent bde459cefa
commit 528a4ae7c2
6 changed files with 8 additions and 8 deletions

View File

@@ -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, "车机与工控机链接失败,无法开启自动驾驶")