forked from harmony_car/subject-two
		
	222
This commit is contained in:
		
							parent
							
								
									e53f84b3d3
								
							
						
					
					
						commit
						3fcdefeb4e
					
				| @ -12,7 +12,7 @@ import { getUDP, getUDP2 } from '../common/utils/GlobleUdp' | ||||
| import {initJudgeUdp} from '../common/utils/UdpJudge' | ||||
| import { getTCP } from '../common/utils/GlobleTcp' | ||||
| import TcpClient from '../common/utils/TcpClient'; | ||||
| 
 | ||||
| import testNapi from '@ohos.hiserialsdk' | ||||
| import {setliushuiNum,getSingleCenterTable,getDoubleCeneterTable} from '../common/service/indexService' | ||||
| @Entry | ||||
| @Component | ||||
| @ -226,6 +226,7 @@ struct Index { | ||||
|     // await this.getModel() | ||||
|     // const arr = [0x55, 0xaa, 0x01, 0x00, 0x02, 0x01, 0x03, 0x00] | ||||
|     // globalThis.udpClientByTopLine.sendMsg(Array2Byte(arr).buffer) | ||||
|     console.info(testNapi) | ||||
|   } | ||||
|   async getModel() { | ||||
|     const context = this.context; | ||||
|  | ||||
| @ -1,6 +1,8 @@ | ||||
| // @ts-nocheck | ||||
| import hilog from '@ohos.hilog'; | ||||
| import apiJudgeSdk from 'libJudgeSdk.so'; | ||||
| // import apiJudgeSdk from '@ohos.judgesdk'; | ||||
| 
 | ||||
| import Judge from '../../judgeSDK/utils/judge-real' | ||||
| import {Project,ProjectObj,MarkRule} from '../../judgeSDK/api/judgeSDK.d' | ||||
| import common from '@ohos.app.ability.common'; | ||||
| @ -37,6 +39,7 @@ struct RealTime { | ||||
|             id: 'duolun_plugin_id_draw', //显示轨迹窗口id名称,注意这个ID要和C++侧一致,不能变 | ||||
|             type: 'surface', | ||||
|             libraryname: 'JudgeSdk' | ||||
|             // libraryname: 'judgesdk' | ||||
|           }) | ||||
|             .width(this.width) | ||||
|             .height(this.height) | ||||
|  | ||||
| @ -1,5 +1,5 @@ | ||||
| import libJudgeSdk from 'libJudgeSdk.so' | ||||
| 
 | ||||
| // import libJudgeSdk from '@ohos.judgesdk'
 | ||||
| /** | ||||
|  * 苏仁君 | ||||
|  * @date 2023/04/10 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user