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

View File

@@ -222,7 +222,7 @@ class MoGoHmiFragment : MvpFragment<MoGoWarningContract.View?, WaringPresenter?>
mWarningFloat = WarningFloat.with(it)
.setTag(tag)
.setLayout(notificationView)
.setSidePattern(SidePattern.TOP)
.setSidePattern(SidePattern.RESULT_TOP)
.setCountDownTime(5000)
.setGravity(Gravity.CENTER_HORIZONTAL, offsetY = 110)
.setImmersionStatusBar(true)

View File

@@ -219,7 +219,7 @@ class DebugSettingView @JvmOverloads constructor(
}
}
// 切换地图中心点视角
/*// 切换地图中心点视角
tbChangeCarCenter100.setOnClickListener {
CallerHDMapManager.changeMaoViewAngle(1)
}
@@ -231,7 +231,7 @@ class DebugSettingView @JvmOverloads constructor(
}
tbChangeCarTwoFifths80.setOnClickListener {
CallerHDMapManager.changeMaoViewAngle(4)
}
}*/
}
/**

View File

@@ -91,7 +91,7 @@
android:textOn="显示「车辆检测」"
android:textSize="@dimen/dp_34" />
<Button
<!-- <Button
android:id="@+id/tbChangeCarCenter100"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
@@ -125,7 +125,7 @@
android:layout_margin="2dp"
android:gravity="center"
android:text="切换 CAR_TWO_FIFTHS_80"
android:textSize="@dimen/dp_34" />
android:textSize="@dimen/dp_34" />-->
</com.google.android.flexbox.FlexboxLayout>

View File

@@ -79,7 +79,7 @@ MOGO_TRAFFICLIVE_VERSION=1.1.56-live
MOGO_LOCATION_VERSION=1.1.56-live
######## MogoAiCloudSDK Version ########
# 自研地图
MAP_SDK_VERSION=V2.0.0.6-test
MAP_SDK_VERSION=V2.0.0.6
# websocket
WEBSOCKET_VERSION=1.1.7
## 产品库必备配置产品库自动对versionCode和versionName版本进行升级

View File

@@ -725,7 +725,7 @@ public class AMapViewWrapper implements IMogoMapView,
@Override
public void changeMapViewAngle(int type) {
if (checkAMapView()) {
mMapView.getMapAutoViewHelper().testMapViewAngle(type);
//mMapView.getMapAutoViewHelper().testMapViewAngle(type);
}
}