AIS vessel names display trailing @ padding characters
The AIS Decoder plugin currently displays the @ padding characters from AIS vessel names on the YAAC map.
For example, a vessel name may be displayed as:
MARGOT@@@@@@@@@@@@
The AIS 6-bit character decoding appears to work correctly, but StaticVoyageData currently uses:
vesselName = extractText(bitVector, 112, 120).trim();
Since trim() does not remove @ characters, the AIS padding remains visible.
I believe the vessel name should have trailing @ characters removed, for example:
vesselName = extractText(bitVector, 112, 120).replaceFirst("@+$", "").trim();
This would result in:
MARGOT
instead of:
MARGOT@@@@@@@@@@@@
I am using YAAC 1.0-beta229 with AIS Decoder V0.7c on Linux/Java 17.
This is only a display/decoding issue; sometimes however it shows the names of the vesels without the @@@@@ see attached file
Anonymous
as an addition; I use a USB AIS receiver and have selected Serial_GPS input
This is a legitimate bug; only one place in the plugin correctly removes the trailing '@' characters. This will be fixed in the plugin when the next build of YAAC is released.
Fixed and released with YAAC build 1.0-beta230(03-Sep-2026) as AISDecoder plugin version V0.7d