[状态栏]Can数据状态获取逻辑优化

This commit is contained in:
renwj
2022-05-27 17:00:56 +08:00
parent 86c21ddf07
commit 430328ea7f
21 changed files with 92 additions and 68 deletions

View File

@@ -4,6 +4,8 @@ import android.content.Context;
import android.os.Bundle;
import android.view.View;
import androidx.annotation.Nullable;
import com.alibaba.android.arouter.facade.annotation.Route;
import com.mogo.commons.mvp.BaseFragment;
import com.mogo.eagle.core.data.autopilot.AutopilotStatusInfo;
@@ -55,10 +57,6 @@ public class SmallMapFragment extends BaseFragment
SmpServiceManager.init(getContext());
}
@Override
public void onAutopilotNotData(long timestamp) {
}
@Override
protected void initViews(Bundle savedInstanceState) {
super.initViews(savedInstanceState);
@@ -159,6 +157,10 @@ public class SmallMapFragment extends BaseFragment
}
@Override
public void onAutopilotIpcConnectStatusChanged(int status, @Nullable String reason) {
}
@Override
public void onAutopilotRotting(MessagePad.GlobalPathResp globalPathResp) {
if (globalPathResp == null || globalPathResp.getWayPointsList().size() == 0) {