mirror of
https://github.com/peterantypas/maiana.git
synced 2025-05-27 21:00:24 -07:00
Corrected some transmitted fields
This commit is contained in:
parent
4a17331909
commit
b984cf58b1
@ -456,9 +456,13 @@ void AISMessage24B::encode(const StationData &station, TXPacket &packet)
|
||||
value = station.type;
|
||||
addBits(payload, size, value, 8); // Type of ship
|
||||
|
||||
addString(payload, size, "", 7); // Vendor ID -- not available
|
||||
addString(payload, size, "@@@@@@@", 7); // Vendor ID -- not available
|
||||
|
||||
if ( strlen(station.callsign) )
|
||||
addString(payload, size, station.callsign, 7);
|
||||
else
|
||||
addString(payload, size, "@@@@@@@", 7);
|
||||
|
||||
addString(payload, size, station.callsign, 7);
|
||||
|
||||
if ( station.len == 0 || station.beam == 0 )
|
||||
{
|
||||
@ -489,8 +493,8 @@ void AISMessage24B::encode(const StationData &station, TXPacket &packet)
|
||||
|
||||
addBits(payload, size, value, 30); // Dimension information
|
||||
|
||||
value = 3;
|
||||
addBits(payload, size, value, 4); // Using GPS/GLONASS
|
||||
value = 1;
|
||||
addBits(payload, size, value, 4); // We are using GPS only
|
||||
|
||||
value = 0;
|
||||
addBits(payload, size, value, 2); // Spare bits
|
||||
|
Loading…
x
Reference in New Issue
Block a user