ADD: addded Orderlibryry and removed the orderlibrary from the entity library
This commit is contained in:
@@ -19,12 +19,11 @@ class Ship : public Entities::Entity
|
||||
Ship(SimCore::Identifier OwnID,
|
||||
std::string EntityName,
|
||||
WHISPER::SourceType ownType,
|
||||
SimCore::Identifier ParentID,
|
||||
SimCore::EntityKind EntityKind,
|
||||
std::uint32_t GroundTruthPort,
|
||||
std::uint32_t CommandPort
|
||||
):
|
||||
Entity( OwnID,EntityName,ownType, ParentID, EntityKind, GroundTruthPort, CommandPort)
|
||||
Entity( OwnID,EntityName,ownType, EntityKind, GroundTruthPort, CommandPort,false)
|
||||
{
|
||||
SimCore::Position pos1;
|
||||
pos1.setGeodesicPos(55, 6, 0);
|
||||
@@ -38,25 +37,18 @@ class Ship : public Entities::Entity
|
||||
|
||||
private:
|
||||
|
||||
void specificPhysicsCalculations(std::chrono::milliseconds::rep duration) override
|
||||
void childWorker() override
|
||||
{
|
||||
SimCore::Position pos1;
|
||||
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)<<"calculating every " << duration << " milliseconds";
|
||||
};
|
||||
|
||||
void specificReloadCharacteristicts() override
|
||||
{
|
||||
|
||||
|
||||
LOG_S(INFO)<<"loading specifications";
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
|
||||
@@ -66,9 +58,8 @@ SCENARIO("Testing the SimCore Sensor")
|
||||
{
|
||||
GIVEN("different Attributes for a Track in different forms")
|
||||
{
|
||||
SimCore::Identifier IDParent(0,1,false);
|
||||
SimCore::Identifier ID1(0,2,false);
|
||||
Ship Ship(ID1,"FGSHamburg",WHISPER::SourceType::ENTITY,IDParent,SimCore::EntityKind::SURFACE,8000,8001);
|
||||
SimCore::Identifier ID1;
|
||||
Ship Ship(ID1,"FGSHamburg",WHISPER::SourceType::ENTITY,SimCore::EntityKind::SURFACE,8000,8001);
|
||||
Ship.start();
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(10000));
|
||||
Ship.stop();
|
||||
|
||||
Reference in New Issue
Block a user