FIX: fixed issue with locking

This commit is contained in:
Henry Winkel
2024-03-07 16:59:42 +01:00
parent e947d29669
commit 14e4fddab4
7 changed files with 22 additions and 40 deletions

View File

@@ -2,6 +2,7 @@
#include "SimControl/SimControl.hpp"
#include "SimCore/Messages/SensorTrack.hpp"
#include "nlohmann/json_fwd.hpp"
#include <fstream>
#include <future>
@@ -95,7 +96,7 @@ void addTracksToTracklistUpdate(SimCore::TracklistUpdate *update, int amount)
for(int i = 0; i < amount; i++)
{
std::string name = "test1-" + std::to_string(i);
auto track = std::make_shared<SimCore::SimTrack>(name,SimCore::Kind::EntityKind::SURFACE,SimCore::Side::NEUTRAL);
auto track = std::make_shared<SimCore::SensorTrack>(name,SimCore::Kind::EntityKind::SURFACE,SimCore::Side::NEUTRAL);
SimCore::Position pos;
double lat = fRand(-90, 90);
double lon = fRand(-180, 180);