| | |
| | | } |
| | | tempQs.add(list[list.size-1])//提示灯光考试结束 |
| | | simulateNightBean.setQuestion(tempQs) |
| | | MyLog.i(TAG,"开始发送灯光,考试项共有"+simulateNightBean.question.size) |
| | | AYSdk.getInstance().sendCmd(0x8012, gson.toJson(simulateNightBean)) |
| | | if (inputData.getInt(safeluck.drive.evaluation.Constant.NEED_MAPS_CAR,0)==1){ |
| | | sendMapInfo() |
| | |
| | | var rtk = WorkRoomDataBase.getWorkRoomDataBase(applicationContext).rtkConfigDao._getRtkConfig() |
| | | if (rtk == null){ |
| | | try { |
| | | MyLog.i("读文件发送RTK配置") |
| | | MyLog.i(TAG,"读文件发送RTK配置") |
| | | val inputStream = applicationContext.assets.open(safeluck.drive.evaluation.Constant.RTK_CONFIG_JSON) |
| | | val inputStreamReader = InputStreamReader(inputStream) |
| | | val jsonReader = JsonReader(inputStreamReader) |
| | |
| | | sendRtkConfigInfo(rtk) |
| | | singalConfigs = WorkRoomDataBase.getWorkRoomDataBase(applicationContext).signalConfigDao._getSignalConfigs() |
| | | if (singalConfigs ==null){ |
| | | MyLog.i("读文件发送信号配置") |
| | | MyLog.i(TAG,"读文件发送信号配置") |
| | | try { |
| | | val inputStream = applicationContext.assets.open("signal_config_file.json") |
| | | val inputStreamReader = InputStreamReader(inputStream) |
| | |
| | | private fun sendSignalConfigsToRemote(indexs: List<Int>) { |
| | | if (signalConfiglist.size > 0) { |
| | | if (listContainsSameValue(indexs)) { |
| | | Log.i(TAG, "sendSignalConfigsToRemote: 有相同的index,不能发送" + gson.toJson(signalConfiglist)) |
| | | MyLog.i(TAG, "sendSignalConfigsToRemote: 有相同的index,不能发送" + gson.toJson(signalConfiglist)) |
| | | } else { |
| | | AYSdk.getInstance().sendCmd(safeluck.drive.evaluation.Constant.SEND_CONFIG_SIGNAL, gson.toJson(signalConfiglist)) |
| | | } |