add todo note
This commit is contained in:
@@ -32,7 +32,7 @@ import static com.mogo.module.adas.model.AdasServiceModel.DISPATCH_RESULT_AFFIRM
|
||||
import static com.mogo.module.adas.model.AdasServiceModel.DISPATCH_RESULT_MANUAL_CANCEL;
|
||||
import static com.mogo.module.adas.model.AdasServiceModel.DISPATCH_RESULT_TIMER_CANCEL;
|
||||
|
||||
//todo 后续拆解是否放到网约车模块
|
||||
//todo 后续拆解是否放到网约车模块,画线部分已与产品沟通,放入后续迭代需求
|
||||
//负责监听自动驾驶状态并进行状态上报,自动驾驶路线上报,接收调度指令展示指令弹窗
|
||||
public class AdasAutoPilotManager implements IMogoOnMessageListener<AdasAutoPilotLocReceiverBean>
|
||||
, IAdasDataListener
|
||||
@@ -131,15 +131,15 @@ public class AdasAutoPilotManager implements IMogoOnMessageListener<AdasAutoPilo
|
||||
|
||||
@Override
|
||||
public void autopilotRoute(AutopilotRoute autopilotRoute) {
|
||||
if (autopilotRoute == null || autopilotRoute.getModels() == null || autopilotRoute.getModels().size() == 0) {
|
||||
return;
|
||||
}
|
||||
AdasServiceModel.getInstance().uploadAutopilotRoute(autopilotRoute.getModels());
|
||||
latLngList = new ArrayList<>();
|
||||
for (AutopilotRoute.RouteModels routeModel : autopilotRoute.getModels()) {
|
||||
latLngList.add(new MogoLatLng(routeModel.getLat(), routeModel.getLon()));
|
||||
}
|
||||
drawLine = true;
|
||||
// if (autopilotRoute == null || autopilotRoute.getModels() == null || autopilotRoute.getModels().size() == 0) {
|
||||
// return;
|
||||
// }
|
||||
// AdasServiceModel.getInstance().uploadAutopilotRoute(autopilotRoute.getModels());
|
||||
// latLngList = new ArrayList<>();
|
||||
// for (AutopilotRoute.RouteModels routeModel : autopilotRoute.getModels()) {
|
||||
// latLngList.add(new MogoLatLng(routeModel.getLat(), routeModel.getLon()));
|
||||
// }
|
||||
// drawLine = true;
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -193,9 +193,9 @@ public class AdasAutoPilotManager implements IMogoOnMessageListener<AdasAutoPilo
|
||||
loc.setBearing(location.getBearing());
|
||||
loc.setProvider(location.getProvider());
|
||||
mogoLocation = loc;
|
||||
if (drawLine) {
|
||||
lineOverlayManager.draw(mogoLocation, latLngList);
|
||||
}
|
||||
// if (drawLine) {
|
||||
// lineOverlayManager.draw(mogoLocation, latLngList);
|
||||
// }
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user