You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The GPS latitude and longitude values are parsed incorrectly. The ICD indicates the value is stored in two's complement presentation and the BinaryMessage.getTwosComplement() method is not calculating the value correctly. It should be:
public int getTwosComplement(int start, int end)
{
if(get(start))
{
//Negative value - flip and add one
BinaryMessage sub = getSubMessage(start, end);
sub.flip(0, sub.size());
return sub.getInt(1, sub.size()) + 1;
}
else
{
//Positive value - return the contents.
return getInt(start + 1, end);
}
}
The text was updated successfully, but these errors were encountered:
sdrtrunk Version
master.
Describe the bug
The GPS latitude and longitude values are parsed incorrectly. The ICD indicates the value is stored in two's complement presentation and the BinaryMessage.getTwosComplement() method is not calculating the value correctly. It should be:
The text was updated successfully, but these errors were encountered: