1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-10-01 09:16:39 -04: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)); 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) if (ais->m_id == 24)
{ {
AISStaticDataReport *dr = dynamic_cast<AISStaticDataReport*>(ais); AISStaticDataReport *dr = dynamic_cast<AISStaticDataReport*>(ais);