| | |
| | | //用于地图车辆移动 坐标 |
| | | public static final String BIND_RTK_INFO_MAP = "bind_rtk_info_map"; |
| | | public static final int ID_SM_CARSENSOR = 0x0013; |
| | | public static final String BIND_ROUTE_COLLECT_TOPIC = "BIND_ROUTE_COLLECT_TOPIC"; |
| | | public static final int ENTER_OR_EXIT_ROAD_ID = 0x0015; |
| | | public static final int ENTER_OR_EXIT_ROADCROSS_ID = 0x0016; |
| | | public static String exam_enter_exitdata="exam_enter_exitdata"; |
| | | public static int Chang_di = 2; |
| | | public static int DaoLu_night = 3; |
| | |
| | | Log.i("InspectSignal",json); |
| | | CEventCenter.dispatchEvent(Constant.BIND_MCUINFO_TOPIC,cmd,0,json); |
| | | break; |
| | | case Constant.ENTER_OR_EXIT_ROAD_ID: |
| | | // CEventCenter.dispatchEvent(Constant.BIND_RTK_INFO_MAP,cmd,0,json); |
| | | // break; |
| | | case Constant.ENTER_OR_EXIT_ROADCROSS_ID: |
| | | CEventCenter.dispatchEvent(Constant.BIND_RTK_INFO_MAP,cmd,0,json); |
| | | break; |
| | | } |
| | | |
| | | } |
| | |
| | | import safeluck.drive.evaluation.routecollect.CollectPointResult; |
| | | import safeluck.drive.evaluation.routecollect.ICollectView; |
| | | import safeluck.drive.evaluation.routecollect.RouteCollectController; |
| | | import safeluck.drive.evaluation.routecollect.bean.RoadCrossInfo; |
| | | import safeluck.drive.evaluation.routecollect.bean.RoadInfo; |
| | | import safeluck.drive.evaluation.util.CThreadPoolExecutor; |
| | | import safeluck.drive.evaluation.util.Utils; |
| | | import safeluck.drive.evaluation.widget.StatusDialog; |
| | |
| | | public void routeItem(CollectPointResult collectPointResult) { |
| | | Log.i(TAG,String.format("x=%f,y=%f",collectPointResult.getX(),collectPointResult.getY())); |
| | | } |
| | | |
| | | @Override |
| | | public void roadinfo(RoadInfo roadInfo) { |
| | | |
| | | } |
| | | |
| | | @Override |
| | | public void roadcrossInfo(RoadCrossInfo roadCrossInfo) { |
| | | |
| | | } |
| | | } |
| | |
| | | package safeluck.drive.evaluation.routecollect; |
| | | |
| | | import safeluck.drive.evaluation.routecollect.bean.RoadCrossInfo; |
| | | import safeluck.drive.evaluation.routecollect.bean.RoadInfo; |
| | | |
| | | /** |
| | | * DriveJudge |
| | | * Created by lzw on 2020/9/16. 10:12:23 |
| | |
| | | * @param collectPointResult |
| | | */ |
| | | void routeItem(CollectPointResult collectPointResult ); |
| | | |
| | | void roadinfo(RoadInfo roadInfo); |
| | | void roadcrossInfo(RoadCrossInfo roadCrossInfo); |
| | | } |
| | |
| | | package safeluck.drive.evaluation.routecollect; |
| | | |
| | | import safeluck.drive.evaluation.routecollect.bean.RoadCrossInfo; |
| | | import safeluck.drive.evaluation.routecollect.bean.RoadInfo; |
| | | |
| | | /** |
| | | * DriveJudge |
| | | * Created by lzw on 2020/9/16. 10:54:19 |
| | |
| | | public interface ILoadListener { |
| | | |
| | | void finishCollectItem(CollectPointResult collectPointResult); |
| | | |
| | | void roadInfo(RoadInfo roadInfo); |
| | | void roadCrossInfo(RoadCrossInfo roadCrossInfo); |
| | | } |
| | |
| | | package safeluck.drive.evaluation.routecollect; |
| | | |
| | | import safeluck.drive.evaluation.fragment.TrainFragment; |
| | | import safeluck.drive.evaluation.routecollect.bean.RoadCrossInfo; |
| | | import safeluck.drive.evaluation.routecollect.bean.RoadInfo; |
| | | import safeluck.drive.evaluation.routecollect.impl.RouteModel; |
| | | |
| | | /** |
| | |
| | | iCollectView.routeItem(collectPointResult); |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | public void roadInfo(RoadInfo roadInfo) { |
| | | |
| | | } |
| | | |
| | | @Override |
| | | public void roadCrossInfo(RoadCrossInfo roadCrossInfo) { |
| | | |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package safeluck.drive.evaluation.routecollect.bean; |
| | | |
| | | /** |
| | | * DriveJudge |
| | | * Created by lzw on 2020/9/17. 17:39:51 |
| | | * 邮箱:632393724@qq.com |
| | | * All Rights Saved! Chongqing AnYun Tech co. LTD |
| | | */ |
| | | public class RoadCrossInfo { |
| | | |
| | | /** |
| | | * road_id : 0 |
| | | * crossing_index : 0 |
| | | * status : 0 |
| | | */ |
| | | |
| | | private int road_id; |
| | | private int crossing_index; |
| | | private int status; |
| | | |
| | | public int getRoad_id() { |
| | | return road_id; |
| | | } |
| | | |
| | | public void setRoad_id(int road_id) { |
| | | this.road_id = road_id; |
| | | } |
| | | |
| | | public int getCrossing_index() { |
| | | return crossing_index; |
| | | } |
| | | |
| | | public void setCrossing_index(int crossing_index) { |
| | | this.crossing_index = crossing_index; |
| | | } |
| | | |
| | | public int getStatus() { |
| | | return status; |
| | | } |
| | | |
| | | public void setStatus(int status) { |
| | | this.status = status; |
| | | } |
| | | } |
New file |
| | |
| | | package safeluck.drive.evaluation.routecollect.bean; |
| | | |
| | | /** |
| | | * DriveJudge |
| | | * Created by lzw on 2020/9/17. 17:39:38 |
| | | * 邮箱:632393724@qq.com |
| | | * All Rights Saved! Chongqing AnYun Tech co. LTD |
| | | */ |
| | | public class RoadInfo { |
| | | |
| | | /** |
| | | * road_id : 0 |
| | | * status : 0 |
| | | */ |
| | | |
| | | private int road_id; |
| | | private int status; |
| | | |
| | | public int getRoad_id() { |
| | | return road_id; |
| | | } |
| | | |
| | | public void setRoad_id(int road_id) { |
| | | this.road_id = road_id; |
| | | } |
| | | |
| | | public int getStatus() { |
| | | return status; |
| | | } |
| | | |
| | | public void setStatus(int status) { |
| | | this.status = status; |
| | | } |
| | | } |
| | |
| | | @Override |
| | | public void onCEvent(String topic, int msgCode, int resultCode, Object obj) { |
| | | //,"coord_x":0.974,"coord_x_dir":"N","coord_y":-0.191,"c |
| | | if (msgCode==Constant.RTK_INFO){ |
| | | if (iLoadListener != null){ |
| | | CollectPointResult collectPointResult = new CollectPointResult(); |
| | | try { |
| | |
| | | |
| | | } |
| | | } |
| | | |
| | | if (msgCode == Constant.ENTER_OR_EXIT_ROAD_ID){ |
| | | Log.i(TAG,"道路消息"+(String)obj); |
| | | } |
| | | |
| | | if (msgCode == Constant.ENTER_OR_EXIT_ROADCROSS_ID){ |
| | | Log.i(TAG,"路口消息"+(String)obj); |
| | | } |
| | | |
| | | } |
| | | }; |
| | | |
| | | @Override |