[sweeper] refactor: 优化报站日志打印;feat:完成任务后增加toast提示;
This commit is contained in:
@@ -268,6 +268,7 @@ class SweeperFragment : BaseSweeperTabFragment<SweeperFragment?, SweeperPresente
|
||||
mPresenter?.clearRouteList()
|
||||
}
|
||||
setTaskProgress("0")
|
||||
ToastUtils.showLong("当前任务已完成,已刷新列表")
|
||||
return
|
||||
}
|
||||
when (typeEnum.code) {
|
||||
|
||||
@@ -306,12 +306,12 @@ public class SweeperTaskModel {
|
||||
public void onChassisLocationGCJ02(@Nullable MogoLocation gnssInfo) {
|
||||
if (null == gnssInfo) return;
|
||||
Log.d(M_SWEEPER + TAG, "高德定位到站:mLongitude = " + gnssInfo.getLongitude()
|
||||
+ ", mLatitude" + gnssInfo.getLatitude() + ", mSubTaskType" + mSubTaskType + ", mIsSubTaskWorking" + mIsSubTaskWorking
|
||||
+ ", isAutopilotSubTaskArriveEndSite" + isAutopilotSubTaskArriveEndSite
|
||||
+ ", mLatitude=" + gnssInfo.getLatitude() + ", mSubTaskType=" + mSubTaskType + ", mIsSubTaskWorking=" + mIsSubTaskWorking
|
||||
+ ", isAutopilotSubTaskArriveEndSite=" + isAutopilotSubTaskArriveEndSite
|
||||
);
|
||||
CallerLogger.INSTANCE.e(M_SWEEPER + TAG, "高德定位到站:mLongitude = " + gnssInfo.getLongitude()
|
||||
+ ", mLatitude" + gnssInfo.getLatitude() + ", mSubTaskType" + mSubTaskType +", mIsSubTaskWorking" + mIsSubTaskWorking
|
||||
+ ", isAutopilotSubTaskArriveEndSite" + isAutopilotSubTaskArriveEndSite
|
||||
+ ", mLatitude=" + gnssInfo.getLatitude() + ", mSubTaskType=" + mSubTaskType +", mIsSubTaskWorking=" + mIsSubTaskWorking
|
||||
+ ", isAutopilotSubTaskArriveEndSite=" + isAutopilotSubTaskArriveEndSite
|
||||
);
|
||||
mLongitude = gnssInfo.getLongitude();
|
||||
mLatitude = gnssInfo.getLatitude();
|
||||
@@ -446,10 +446,10 @@ public class SweeperTaskModel {
|
||||
//MAP 280 每隔100ms左右返回一次到站, 导致在到达中间站后再次滑动出发后会有时间差,收到一次到站,出现问题
|
||||
//此处比对 自驾告诉的子任务终点坐标和本地应到子任务终点坐标, 一致时才表示子任务完成
|
||||
if (data != null && data.getEndLocation() != null && mCurrentSubTaskDetail != null) {
|
||||
Log.d(M_SWEEPER + TAG, "MAP到站通知:" + mCurrentSubTaskDetail.getEndSiteName() + "经度:"
|
||||
+ data.getEndLocation().getLongitude() + "纬度:" + data.getEndLocation().getLatitude());
|
||||
CallerLogger.INSTANCE.d(M_SWEEPER + TAG, "MAP到站通知:" + mCurrentSubTaskDetail.getEndSiteName() + "经度:"
|
||||
+ data.getEndLocation().getLongitude() + "纬度:" + data.getEndLocation().getLatitude());
|
||||
Log.d(M_SWEEPER + TAG, "MAP到站通知:" + mCurrentSubTaskDetail.getEndSiteName() + " 经度:"
|
||||
+ data.getEndLocation().getLongitude() + " 纬度:" + data.getEndLocation().getLatitude());
|
||||
CallerLogger.INSTANCE.d(M_SWEEPER + TAG, "MAP到站通知:" + mCurrentSubTaskDetail.getEndSiteName() + " 经度:"
|
||||
+ data.getEndLocation().getLongitude() + " 纬度:" + data.getEndLocation().getLatitude());
|
||||
String latitude = NumberFormatUtil.cutOutNumber(data.getEndLocation().getLatitude(), 5); //wgs
|
||||
String longitude = NumberFormatUtil.cutOutNumber(data.getEndLocation().getLongitude(), 5);
|
||||
String arriveLat = NumberFormatUtil.cutOutNumber(mCurrentSubTaskDetail.getEndSiteWgs64Lat(), 5);
|
||||
@@ -459,10 +459,10 @@ public class SweeperTaskModel {
|
||||
return;
|
||||
}
|
||||
}
|
||||
Log.d(M_SWEEPER + TAG, "MAP到站通知:mSubTaskType" + mSubTaskType + "isAutopilotSubTaskArriveEndSite:"
|
||||
+ isAutopilotSubTaskArriveEndSite + "mSubTaskId:" + mSubTaskId);
|
||||
CallerLogger.INSTANCE.d(M_SWEEPER + TAG, "MAP到站通知:mSubTaskType" + mSubTaskType + "isAutopilotSubTaskArriveEndSite:"
|
||||
+ isAutopilotSubTaskArriveEndSite + "mSubTaskId:" + mSubTaskId);
|
||||
Log.d(M_SWEEPER + TAG, "MAP到站通知:mSubTaskType=" + mSubTaskType + " isAutopilotSubTaskArriveEndSite="
|
||||
+ isAutopilotSubTaskArriveEndSite + " mSubTaskId=" + mSubTaskId);
|
||||
CallerLogger.INSTANCE.d(M_SWEEPER + TAG, "MAP到站通知:mSubTaskType=" + mSubTaskType + " isAutopilotSubTaskArriveEndSite="
|
||||
+ isAutopilotSubTaskArriveEndSite + " mSubTaskId=" + mSubTaskId);
|
||||
if (SubTaskTypeEnum.MANUAL_DRIVING_SUBTYPE.getCode() == mSubTaskType) {//人工驾驶子任务需要手动跳过,不能自动结束
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user