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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user