mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-26 01:39:05 -05: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 = "";
|
||||
int messageType = 0; // 0 = Standard, 1 = Custom
|
||||
int longitudeOffset = 0;
|
||||
float latitudeDirection = -1; // Assume South because North is easier to code
|
||||
float longitudeDirection = 1;
|
||||
float latitudeDirection = 1; // Assume North
|
||||
float longitudeDirection = -1; // Assume West
|
||||
|
||||
QHash<QString, QString> messageTypeLookup;
|
||||
messageTypeLookup["111"] = "Off Duty";
|
||||
@ -1077,8 +1077,8 @@ bool APRSPacket::parseMicE(QString& info, int& idx, QString& dest)
|
||||
|
||||
// Latitude Direction
|
||||
if (i == 3) {
|
||||
if (inRange(65, 75, charInt))
|
||||
latitudeDirection = 1;
|
||||
if (!inRange(65, 75, charInt))
|
||||
latitudeDirection = -1;
|
||||
}
|
||||
|
||||
// Longitude Offset
|
||||
@ -1089,8 +1089,8 @@ bool APRSPacket::parseMicE(QString& info, int& idx, QString& dest)
|
||||
|
||||
// Longitude Direction
|
||||
if (i == 5) {
|
||||
if (inRange(65, 75, charInt))
|
||||
longitudeDirection = -1;
|
||||
if (!inRange(65, 75, charInt))
|
||||
longitudeDirection = 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user