ADD: add the usage of the kubecontroller bus not with fully using the start of pods

This commit is contained in:
Henry Winkel
2023-08-08 17:14:26 +02:00
parent 7bc8001936
commit 6ad961fbed
6 changed files with 37 additions and 22 deletions

View File

@@ -22,17 +22,17 @@ class Ship : public Entities::Entity
SimCore::Identifier ParentID,
SimCore::EntityKind EntityKind,
std::uint32_t GroundTruthPort,
std::uint32_t CommandPort,
std::string CommandIPAddress):
Entity( OwnID,EntityName,ownType, ParentID, EntityKind, GroundTruthPort, CommandPort, CommandIPAddress)
std::uint32_t CommandPort
):
Entity( OwnID,EntityName,ownType, ParentID, EntityKind, GroundTruthPort, CommandPort)
{
SimCore::Position pos1;
pos1.setGeodesicPos(55, 6, 0);
Movement_.setPosition(pos1);
Movement_.setCourse(0);
Movement_.setSpeed(100);
// Movement_.setPosition(pos1);
// Movement_.setCourse(0);
// Movement_.setSpeed(100);
LOG_S(INFO)<<std::endl<<Movement_.getPosition().getGeodesicPos();
// LOG_S(INFO)<<std::endl<<Movement_.getPosition().getGeodesicPos();
}
@@ -44,10 +44,10 @@ class Ship : public Entities::Entity
pos1.setGeodesicPos(55, 6, 0);
LOG_S(INFO)<<std::endl<<Movement_.getPosition().getGeodesicPos();
double distance, bearing1;
std::tie(distance, bearing1) = Movement_.getPosition().distanceBearingToPosition(pos1);
LOG_S(INFO)<<"distance from start is:" << distance;
// LOG_S(INFO)<<std::endl<<Movement_.getPosition().getGeodesicPos();
// double distance, bearing1;
// std::tie(distance, bearing1) = Movement_.getPosition().distanceBearingToPosition(pos1);
// LOG_S(INFO)<<"distance from start is:" << distance;
LOG_S(INFO)<<"calculating every " << duration << " milliseconds";
};
@@ -68,7 +68,7 @@ SCENARIO("Testing the SimCore Sensor")
{
SimCore::Identifier IDParent(0,1,false);
SimCore::Identifier ID1(0,2,false);
Ship Ship(ID1,"FGS Hamburg",WHISPER::SourceType::SHIP,IDParent,SimCore::EntityKind::SURFACE,8000,8001,"127.0.0.1");
Ship Ship(ID1,"FGSHamburg",WHISPER::SourceType::ENTITY,IDParent,SimCore::EntityKind::SURFACE,8000,8001);
Ship.start();
std::this_thread::sleep_for(std::chrono::milliseconds(10000));
Ship.stop();