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:
parent
8612f124f0
commit
da107c9258
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user