send the reports every ten seconds

This commit is contained in:
Sven Czarnian
2021-11-13 23:03:34 +01:00
parent d3551c9857
commit 1a58301d4f
2 changed files with 41 additions and 3 deletions

View File

@@ -46,6 +46,8 @@ namespace aman {
Communication m_configuration;
std::shared_ptr<RadarScreen> m_screen;
std::mutex m_updateQueueLock;
std::list<std::string> m_updateQueue;
public:
/**
@@ -73,6 +75,11 @@ namespace aman {
*/
EuroScopePlugIn::CRadarScreen* OnRadarScreenCreated(const char* displayName, bool needsRadarContent, bool geoReferenced,
bool canBeSaved, bool canBeCreated) override;
/**
* @brief Called every second
* @param[in] counter The counter that indicates the seconds
*/
void OnTimer(int counter) override;
/**
* @brief Called as soon as a radar target position is updated
* @param[in] radarTarget The updated radar target