ADD: updated tests

This commit is contained in:
hwinkel
2023-10-29 22:18:43 +01:00
parent 966d2866bb
commit def866a82b
5 changed files with 41 additions and 59 deletions

View File

@@ -19,11 +19,11 @@ class Ship : public Entities::Entity
Ship(SimCore::Identifier OwnID,
std::string EntityName,
WHISPER::SourceType ownType,
SimCore::EntityKind EntityKind,
SimCore::Kind::EntityKind EntityKind,
std::uint32_t GroundTruthPort,
std::uint32_t CommandPort
ushort CommandPort
):
Entity( OwnID,EntityName,ownType, EntityKind, GroundTruthPort, CommandPort,false)
Entity( OwnID,EntityName,ownType, EntityKind,SimCore::Side::EntitySide::FRIEND, "127.0.0.1",GroundTruthPort, CommandPort,false)
{
SimCore::Position pos1;
pos1.setGeodesicPos(55, 6, 0);
@@ -59,7 +59,7 @@ SCENARIO("Testing the SimCore Sensor")
GIVEN("different Attributes for a Track in different forms")
{
SimCore::Identifier ID1;
Ship Ship(ID1,"FGSHamburg",WHISPER::SourceType::ENTITY,SimCore::EntityKind::SURFACE,8000,8001);
Ship Ship(ID1,"FGSHamburg",WHISPER::SourceType::ENTITY,SimCore::Kind::EntityKind::SURFACE,8000,8001);
Ship.start();
std::this_thread::sleep_for(std::chrono::milliseconds(10000));
Ship.stop();