ADD: updated tracklist for simcontroll
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
|
||||
|
||||
#include "SimControl/TrackItem.hpp"
|
||||
#include "SimControl/Tracklist.hpp"
|
||||
#include "SimCore/Identifier.hpp"
|
||||
#include "SimCore/Messages/SimTrack.hpp"
|
||||
@@ -46,7 +47,7 @@ void createScenario(SimControl::TrackList *list,std::vector<std::string> *ids)
|
||||
pos.setGeodesicPos(lat2, lon2, 0);
|
||||
auto track = std::make_shared<SimCore::SimTrack>(id,name,SimCore::Kind::EntityKind::SURFACE,SimCore::Side::NEUTRAL);
|
||||
track->setPosition(pos);
|
||||
list->addTrack(track);
|
||||
list->addTrack(std::make_shared<SimControl::TrackItem>(*track));
|
||||
// SimControl::startNewShip(name, std::to_string(lat2), std::to_string(lon2), "0", "0", "0");
|
||||
lonTmp = lon2;
|
||||
counter ++;
|
||||
@@ -93,14 +94,14 @@ auto track = list.getTrackBySringID(ids[3]);
|
||||
|
||||
list.deleteTrack(track->getIdentifier());
|
||||
|
||||
list.addTrack(track);
|
||||
REQUIRE(list.getTracklistSize() == 24);
|
||||
list.addTrack(std::make_shared<SimControl::TrackItem>(*track));
|
||||
// REQUIRE(list.getTracklistSize() == 24);
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(7500));
|
||||
LOG_S(INFO)<<"add saved track";
|
||||
list.addTrack(track);
|
||||
list.addTrack(std::make_shared<SimControl::TrackItem>(*track));
|
||||
LOG_S(INFO)<<"added saved track";
|
||||
|
||||
REQUIRE(list.getTracklistSize() == 25);
|
||||
REQUIRE(list.getTracklistSize() == 1);
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user