ADD: updated Libraries and tests

This commit is contained in:
Henry Winkel
2023-12-19 15:51:04 +01:00
parent 22149dc61d
commit e675535586
13 changed files with 42 additions and 33 deletions

View File

@@ -14,26 +14,26 @@ class Radar : public Entities::Sensor
Radar(SimCore::Identifier OwnID,
SimCore::Identifier ParentID,
SimCore::SensorKinds SensorKind,
std::string GroundTruthAddress,
std::uint32_t GroundTruthPort,
std::uint32_t ParentPort,
std::string ParentIPAddress,
std::string radarType):Sensor(OwnID, ParentID, SensorKind, GroundTruthPort, ParentPort, ParentIPAddress),radarType_(radarType)
std::string radarType):Sensor(OwnID, ParentID, SensorKind,GroundTruthAddress, GroundTruthPort, ParentPort, ParentIPAddress),radarType_(radarType)
{
}
private:
std::string radarType_;
void specificSensorCalculations() override
void specificSensorCalculations(std::unique_ptr<SimCore::SimTrack> track) override
{
LOG_S(INFO)<<"calculating";
};
void specificReloadCharacteristicts() override
{
LOG_S(INFO)<<"loading specifications";
};
};
@@ -46,7 +46,7 @@ SCENARIO("Testing the SimCore Sensor")
SimCore::Identifier IDParent;
SimCore::Identifier IDRadar;
Radar Radar(IDRadar,IDParent,SimCore::SensorKinds::RADAR,8000,8001,"127.0.0.1","APAR");
Radar Radar(IDRadar,IDParent,SimCore::SensorKinds::RADAR,"239.0.0.1",8000,8001,"127.0.0.1","APAR");
Radar.start();
WHEN("constructing Track Object with data")