From 7beaabb946002d45b82474a84ea3b4bab75dbadd Mon Sep 17 00:00:00 2001 From: lizhanwei <Dana_Lee1016@126.com> Date: 星期日, 19 一月 2020 17:32:33 +0800 Subject: [PATCH] 更新地图和车辆模型 --- app/src/main/java/safeluck/drive/evaluation/receiver/BootFinishReceiver.java | 2 +- app/src/main/assets/vehiclemodel.json | 6 +++--- app/src/main/assets/map.json | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/src/main/assets/map.json b/app/src/main/assets/map.json index b503b40..faec768 100644 --- a/app/src/main/assets/map.json +++ b/app/src/main/assets/map.json @@ -2,7 +2,7 @@ "id": 863, "item": 1, "point": [{ - "x-y": [-11.9669, 28.013, -11.5114, 27.137, -10.8069, 27.5039, -10.2969, 26.4212, -9.2102, 26.8894, -9.6513, 28.0027, -8.9758, 28.3797, -9.5057, 29.3232] + "x-y": [-5.3806, 30.3791, -4.9130, 29.4974, -4.1991, 29.8640, -3.6962, 28.7786, -2.6023, 29.2578, -3.0759, 30.3599, -2.4065, 30.7090, -2.8984, 31.6962] } ] }, @@ -14,4 +14,4 @@ } ] } -] \ No newline at end of file +] \ No newline at end of file diff --git a/app/src/main/assets/vehiclemodel.json b/app/src/main/assets/vehiclemodel.json index 30509bf..04c1db9 100644 --- a/app/src/main/assets/vehiclemodel.json +++ b/app/src/main/assets/vehiclemodel.json @@ -1,9 +1,9 @@ { - "main_ant": [0, 0], + "main_ant": [-3.6683, 38.3089], "axial": [0, 3], "left_front_tire": [1, 0], "right_front_tire": [5, 0], "left_rear_tire": [2, 3], "right_rear_tire": [4, 3], - "point": [0, 2, -1, 2, -1, -1, 0, -1, 1, -1, 1, 2] -} \ No newline at end of file + "point": [-3.7268, 37.7265, -3.6285, 37.7126, -3.5551, 38.6029, -3.6423, 38.0747, -3.7222, 38.0969, -3.8105, 37.7537] +} \ No newline at end of file diff --git a/app/src/main/java/safeluck/drive/evaluation/receiver/BootFinishReceiver.java b/app/src/main/java/safeluck/drive/evaluation/receiver/BootFinishReceiver.java index f92f8b8..3d12db0 100644 --- a/app/src/main/java/safeluck/drive/evaluation/receiver/BootFinishReceiver.java +++ b/app/src/main/java/safeluck/drive/evaluation/receiver/BootFinishReceiver.java @@ -19,7 +19,7 @@ MyLog.i(TAG,"寮�鏈哄惎鍔ㄥ畬鎴�"); Intent first= new Intent(context, MainActivity.class); //鍚姩鎸囧畾椤甸潰 first.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); - context.startActivity(intent); + context.getApplicationContext().startActivity(intent); } } } -- Gitblit v1.8.0