ADD: Fixed bug in unpacking a simtrack message
This commit is contained in:
@@ -67,7 +67,7 @@ namespace SimCore
|
|||||||
}
|
}
|
||||||
|
|
||||||
SimTrack::SimTrack(messages::SimTrack::SimTrack trackMsg)
|
SimTrack::SimTrack(messages::SimTrack::SimTrack trackMsg)
|
||||||
:ID_(SimCore::Identifier(trackMsg.entityidentifier()))
|
:ID_(SimCore::Identifier(trackMsg.entityidentifier())),Name(trackMsg.conatactname())
|
||||||
{
|
{
|
||||||
|
|
||||||
WHISPER::SourceType sourcetype = (WHISPER::SourceType)trackMsg.contactsourcetype();
|
WHISPER::SourceType sourcetype = (WHISPER::SourceType)trackMsg.contactsourcetype();
|
||||||
@@ -204,6 +204,7 @@ namespace SimCore
|
|||||||
{
|
{
|
||||||
messages::SimTrack::SimTrack SimTrack;
|
messages::SimTrack::SimTrack SimTrack;
|
||||||
|
|
||||||
|
|
||||||
if (Name.isValid()) SimTrack.set_conatactname(Name.getValue());
|
if (Name.isValid()) SimTrack.set_conatactname(Name.getValue());
|
||||||
else SimTrack.set_conatactname(" ");
|
else SimTrack.set_conatactname(" ");
|
||||||
|
|
||||||
|
|||||||
@@ -92,6 +92,7 @@ SCENARIO("Testing the SimCore Track")
|
|||||||
REQUIRE(trackPtr->getPosition().getGeocentricPos() == GeocentPos1);
|
REQUIRE(trackPtr->getPosition().getGeocentricPos() == GeocentPos1);
|
||||||
|
|
||||||
REQUIRE(trackDeserialized.getEmission(emi1.getID()).get()->getID() == idEmi);
|
REQUIRE(trackDeserialized.getEmission(emi1.getID()).get()->getID() == idEmi);
|
||||||
|
REQUIRE(trackDeserialized.Name.getValue() == "TEST");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user