2.12.0 fix ADCU 全局路径数据和自动驾驶状态不一致导致的 小地图轨迹被清除
This commit is contained in:
@@ -141,12 +141,13 @@ public class SmallMapFragment extends BaseFragment
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onAutopilotStatusResponse(@NotNull AutopilotStatusInfo autoPilotStatusInfo) {
|
public void onAutopilotStatusResponse(@NotNull AutopilotStatusInfo autoPilotStatusInfo) {
|
||||||
autoPilotStatus = autoPilotStatusInfo.getPilotmode();
|
int tempStatus = autoPilotStatusInfo.getPilotmode();
|
||||||
if (autoPilotStatus != 1) {
|
if (tempStatus != 1) {
|
||||||
clearPolyline();
|
clearPolyline();
|
||||||
}else if (autoPilotStatus == 1){
|
}else if (tempStatus == 0 && autoPilotStatus == 1){
|
||||||
CallerAutoPilotManager.INSTANCE.getGlobalPath();
|
CallerAutoPilotManager.INSTANCE.getGlobalPath();
|
||||||
}
|
}
|
||||||
|
autoPilotStatus = tempStatus;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user