1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-22 08:04:49 -05:00

Add display of ship type from class B messages

This commit is contained in:
Jon Beniston 2021-05-11 10:05:25 +01:00
parent 8612f124f0
commit da107c9258

View File

@ -450,6 +450,13 @@ void AISGUI::updateVessels(AISMessage *ais)
statusItem->setText(AISPositionReport::getStatusString(lrpr->m_status));
}
}
if (ais->m_id == 19)
{
AISExtendedClassBPositionReport *ext = dynamic_cast<AISExtendedClassBPositionReport*>(ais);
if (ext) {
shipTypeItem->setText(AISMessage::typeToString(ext->m_type));
}
}
if (ais->m_id == 24)
{
AISStaticDataReport *dr = dynamic_cast<AISStaticDataReport*>(ais);