mirror of
https://github.com/peterantypas/maiana.git
synced 2025-05-29 13:50:29 -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;
|
value = station.type;
|
||||||
addBits(payload, size, value, 8); // Type of ship
|
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 )
|
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
|
addBits(payload, size, value, 30); // Dimension information
|
||||||
|
|
||||||
value = 3;
|
value = 1;
|
||||||
addBits(payload, size, value, 4); // Using GPS/GLONASS
|
addBits(payload, size, value, 4); // We are using GPS only
|
||||||
|
|
||||||
value = 0;
|
value = 0;
|
||||||
addBits(payload, size, value, 2); // Spare bits
|
addBits(payload, size, value, 2); // Spare bits
|
||||||
|
Loading…
x
Reference in New Issue
Block a user