mirror of
				https://github.com/f4exb/sdrangel.git
				synced 2025-10-31 04:50:29 -04:00 
			
		
		
		
	Was seeing some invalid Coordinates, I'll dig into that overnight once I log enough packets
This commit is contained in:
		
							parent
							
								
									8c4419af1b
								
							
						
					
					
						commit
						9e5ebe0f1d
					
				| @ -1034,8 +1034,8 @@ bool APRSPacket::parseMicE(QString& info, int& idx, QString& dest) | |||||||
|     QString messageBits = ""; |     QString messageBits = ""; | ||||||
|     int messageType = 0; // 0 = Standard, 1 = Custom
 |     int messageType = 0; // 0 = Standard, 1 = Custom
 | ||||||
|     int longitudeOffset = 0; |     int longitudeOffset = 0; | ||||||
|     float latitudeDirection = -1; // Assume South because North is easier to code
 |     float latitudeDirection = 1; // Assume North
 | ||||||
|     float longitudeDirection = 1; |     float longitudeDirection = -1; // Assume West
 | ||||||
| 
 | 
 | ||||||
|     QHash<QString, QString> messageTypeLookup; |     QHash<QString, QString> messageTypeLookup; | ||||||
|     messageTypeLookup["111"] = "Off Duty"; |     messageTypeLookup["111"] = "Off Duty"; | ||||||
| @ -1077,8 +1077,8 @@ bool APRSPacket::parseMicE(QString& info, int& idx, QString& dest) | |||||||
| 
 | 
 | ||||||
|             // Latitude Direction
 |             // Latitude Direction
 | ||||||
|             if (i == 3) { |             if (i == 3) { | ||||||
|                 if (inRange(65, 75, charInt)) |                 if (!inRange(65, 75, charInt)) | ||||||
|                     latitudeDirection = 1; |                     latitudeDirection = -1; | ||||||
|             } |             } | ||||||
| 
 | 
 | ||||||
|             // Longitude Offset
 |             // Longitude Offset
 | ||||||
| @ -1089,8 +1089,8 @@ bool APRSPacket::parseMicE(QString& info, int& idx, QString& dest) | |||||||
| 
 | 
 | ||||||
|             // Longitude Direction
 |             // Longitude Direction
 | ||||||
|             if (i == 5) { |             if (i == 5) { | ||||||
|                 if (inRange(65, 75, charInt)) |                 if (!inRange(65, 75, charInt)) | ||||||
|                     longitudeDirection = -1; |                     longitudeDirection = 1; | ||||||
|             } |             } | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user