Menu

#39 Vesselnames with trailing @@@@@@@@@ not trimmed

YAAC 1.0-beta
closed
nobody
None
6 days ago
2026-08-29
Mart
No

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

1 Attachments

Discussion

  • Mart

    Mart - 2026-08-29

    as an addition; I use a USB AIS receiver and have selected Serial_GPS input

     
  • Andrew Pavlin

    Andrew Pavlin - 2026-08-29

    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.

     
  • Andrew Pavlin

    Andrew Pavlin - 2026-08-29
    • status: open --> accepted
     
  • Andrew Pavlin

    Andrew Pavlin - 6 days ago
    • status: accepted --> closed
     
  • Andrew Pavlin

    Andrew Pavlin - 6 days ago

    Fixed and released with YAAC build 1.0-beta230(03-Sep-2026) as AISDecoder plugin version V0.7d

     

Anonymous
Anonymous

Add attachments
Cancel