ADD: added missing cases in order switch and delte some comments

This commit is contained in:
Henry Winkel
2023-12-20 09:47:58 +01:00
parent 3b4d4baa1b
commit 48a75f21e9

View File

@@ -138,21 +138,12 @@ namespace Entities
void Entity::stop()
{
try {
PodController_->stopAllPods();
LOG_S(INFO)<<"Pods stoppt";
stopChild();
LOG_S(INFO)<<"childs stoppt";
// MovemtServer_.reset();
LOG_S(INFO)<<"MovemtServer_ reseted";
stopMainLoop = true;
// BroadcastServer_.reset();
LOG_S(INFO)<<"BroadcastServer_ reseted";
for (std::vector<std::thread>::iterator it = threads.begin(); it != threads.end();)
@@ -170,9 +161,7 @@ namespace Entities
// std::this_thread::sleep_for(std::chrono::milliseconds(30000));
// exit(0);
} catch (const std::exception e) {
LOG_S(ERROR)<< e.what();
}
}
void Entity::startMovementWorker()
@@ -221,7 +210,6 @@ namespace Entities
if (newTrack != nullptr)
{
OwnShipTrack->setPosition(newTrack->getPosition());
// LOG_S(INFO)<< "new POS: LAT: "<< OwnShipTrack->getPosition().getGeodesicPos()(SimCore::LATITUDE) << " LON: " << OwnShipTrack->getPosition().getGeodesicPos()(SimCore::LONGITUDE);
}
}
@@ -287,7 +275,18 @@ namespace Entities
break;
}
}
case Orders::SYSTEM_STATE_REQUEST:
{
break;
}
case Orders::TRACKLIST_REQUEST:
{
break;
}
break;
}
break;
}
@@ -317,7 +316,6 @@ namespace Entities
{
nlohmann::json j;
this->TrackList_->getJsonTRackList(j);
// WHISPER::StringData(this->OwnShipTrack->getIdentifier(),)
this->CommandCommsServer_->sendMessage(j.dump());
break;
}
@@ -340,11 +338,6 @@ namespace Entities
LOG_S(ERROR)<<e.what();
}
// LOG_S(INFO)<<"sending";
// CommandCommsServer_->sendMessage(this->OwnShipTrack->buildMessage().serialize());
}