fix: 对接1代协议
This commit is contained in:
		
							parent
							
								
									8f6f1b2a77
								
							
						
					
					
						commit
						956e57ee8a
					
				| @ -62,10 +62,10 @@ export default class UdpByOne { | ||||
| 
 | ||||
|   // 处理消息
 | ||||
|   public handleMsg() { | ||||
|     this.GPSMsg = `$GPGGA,021126.00,2955.5885178,N,11953.8931034,E,5,12,0.8,13.191,M,6.838,M,2.000,0000*49
 | ||||
| $GPRMC,021126.00,A,2955.5885178,N,11953.8931034,E,4.881,318.3,170623,0.0,E,F*37 | ||||
| $GPGST,021126.00,3.30,1.77,3.30,0.0000,1.77,1.25,3.30*67 | ||||
| $PTNL,AVR,021126.00,+47.3119,Yaw,+0.4832,Tilt,,,0.817,3,1.7,25*09` | ||||
|     //     this.GPSMsg = `$GPGGA,021126.00,2955.5885178,N,11953.8931034,E,5,12,0.8,13.191,M,6.838,M,2.000,0000*49
 | ||||
|     // $GPRMC,021126.00,A,2955.5885178,N,11953.8931034,E,4.881,318.3,170623,0.0,E,F*37
 | ||||
|     // $GPGST,021126.00,3.30,1.77,3.30,0.0000,1.77,1.25,3.30*67
 | ||||
|     // $PTNL,AVR,021126.00,+47.3119,Yaw,+0.4832,Tilt,,,0.817,3,1.7,25*09`
 | ||||
|     let newMessage = PLCGPSData; | ||||
|     //   海拔高度
 | ||||
|     // 原始GPS消息字符串
 | ||||
| @ -216,6 +216,7 @@ $PTNL,AVR,021126.00,+47.3119,Yaw,+0.4832,Tilt,,,0.817,3,1.7,25*09` | ||||
|     // GPS错误次数 60
 | ||||
|     // 已工作时长/设定的工作时长 61
 | ||||
|     // 改正数数据长度*数据长度-基准站RTCM改正数类型 62
 | ||||
|     return newMessage.join(",") | ||||
|   } | ||||
| 
 | ||||
|   //   PLC接收消息
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user