1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-08-12 06:23:34 -04:00

Make rateOfTurn signed.

This commit is contained in:
Jon Beniston
2026-07-31 02:12:13 +01:00
parent 18ae2368bb
commit 5c0313a964
+1
View File
@@ -280,6 +280,7 @@ AISPositionReport::AISPositionReport(QByteArray ba) :
m_status = ((ba[4] & 0x3) << 2) | ((ba[5] >> 6) & 0x3);
int rateOfTurn = ((ba[5] << 2) & 0xfc) | ((ba[6] >> 6) & 0x3);
rateOfTurn = (rateOfTurn << 24) >> 24;
if (rateOfTurn == 127) {
m_rateOfTurn = 720.0f;
} else if (rateOfTurn == -127) {