1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-26 17:58:43 -05:00

DSD demod: D-Star: display bearing and distance from my position if geolocation is available

This commit is contained in:
f4exb 2016-09-28 13:39:17 +02:00
parent 894394909b
commit 9dca6096f9

View File

@ -523,6 +523,9 @@ void DSDDemodGUI::formatStatusText()
}
memcpy(&m_formatStatusText[41], m_dsdDemod->getDecoder().getDStarDecoder().getInfoText(), 20);
memcpy(&m_formatStatusText[62], m_dsdDemod->getDecoder().getDStarDecoder().getLocator(), 6);
sprintf(&m_formatStatusText[69], "%03d/%07.1f",
m_dsdDemod->getDecoder().getDStarDecoder().getBearing(),
m_dsdDemod->getDecoder().getDStarDecoder().getDistance());
}
m_formatStatusText[82] = '\0';