ADD: integrated the whisper-comm update
This commit is contained in:
@@ -58,7 +58,7 @@ namespace SimCore {
|
|||||||
*
|
*
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
Track(std::uint32_t deviceID, WHISPER::SourceType src,SimCore::Identifier id);
|
Track( WHISPER::SourceType src,SimCore::Identifier id);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Submodule libs/whisper-com updated: f7d57ccbb8...73b15d235a
@@ -52,7 +52,7 @@ RadarTrack::RadarTrack(std::string receivedMessage) {
|
|||||||
|
|
||||||
RadarTrack::RadarTrack(std::uint32_t deviceID, WHISPER::SourceType src,
|
RadarTrack::RadarTrack(std::uint32_t deviceID, WHISPER::SourceType src,
|
||||||
SimCore::Identifier id)
|
SimCore::Identifier id)
|
||||||
: Message(deviceID, WHISPER::MsgTopics::TRACK, WHISPER::RAW_TRACK, src),
|
: Message(id.getParentNumber(),id.getNumber(), WHISPER::MsgTopics::TRACK, WHISPER::RAW_TRACK, src),
|
||||||
ID_(id) {
|
ID_(id) {
|
||||||
|
|
||||||
packToMessage();
|
packToMessage();
|
||||||
|
|||||||
@@ -52,8 +52,8 @@ namespace SimCore {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
Track::Track(std::uint32_t deviceID, WHISPER::SourceType src,SimCore::Identifier id):
|
Track::Track(WHISPER::SourceType src,SimCore::Identifier id):
|
||||||
Message(deviceID,WHISPER::MsgTopics::TRACK,WHISPER::RAW_TRACK,src),external_(id.isExternal()),ID_(id)
|
Message(id.getParentNumber(),id.getNumber(),WHISPER::MsgTopics::TRACK,WHISPER::RAW_TRACK,src),external_(id.isExternal()),ID_(id)
|
||||||
{
|
{
|
||||||
|
|
||||||
packToMessage();
|
packToMessage();
|
||||||
|
|||||||
@@ -23,8 +23,8 @@ namespace SimCore {
|
|||||||
incommingTrackMessages = std::make_shared<WHISPER::threadSafeQueue<SimCore::Track>>();
|
incommingTrackMessages = std::make_shared<WHISPER::threadSafeQueue<SimCore::Track>>();
|
||||||
|
|
||||||
|
|
||||||
GroundTruthUDPService_ = std::make_shared<WHISPER::InternalUDPService>(OwnID.getNumber(),WHISPER::SENSOR,8000,SimCore::UtilFunctions::implode(ip,'.'),ownIP);
|
GroundTruthUDPService_ = std::make_shared<WHISPER::InternalUDPService>(OwnID.getParentNumber(),OwnID.getNumber(),WHISPER::SENSOR,8000,SimCore::UtilFunctions::implode(ip,'.'),ownIP);
|
||||||
ParentUDPService_ = std::make_shared<WHISPER::InternalUDPService>(OwnID.getNumber(),WHISPER::SENSOR,ParentPort,ParentIPAddress_,ownIP);
|
ParentUDPService_ = std::make_shared<WHISPER::InternalUDPService>(OwnID.getParentNumber(),OwnID.getNumber(),WHISPER::SENSOR,ParentPort,ParentIPAddress_,ownIP);
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ SCENARIO("Testing the SimCore Track")
|
|||||||
WHEN("constructing Track Object with data")
|
WHEN("constructing Track Object with data")
|
||||||
{
|
{
|
||||||
SimCore::Position pos( GeocentPos1(SimCore::GeocentricPosition::X), GeocentPos1(SimCore::GeocentricPosition::Y), GeocentPos1(SimCore::GeocentricPosition::Z));
|
SimCore::Position pos( GeocentPos1(SimCore::GeocentricPosition::X), GeocentPos1(SimCore::GeocentricPosition::Y), GeocentPos1(SimCore::GeocentricPosition::Z));
|
||||||
SimCore::Track track(1,WHISPER::SourceType::SHIP,*ID.get());
|
SimCore::Track track(WHISPER::SourceType::SHIP,*ID.get());
|
||||||
track.setCourse(course);
|
track.setCourse(course);
|
||||||
track.setSpeed(speed);
|
track.setSpeed(speed);
|
||||||
track.setPosition(GeocentPos1(SimCore::X),GeocentPos1(SimCore::Y),GeocentPos1(SimCore::Z));
|
track.setPosition(GeocentPos1(SimCore::X),GeocentPos1(SimCore::Y),GeocentPos1(SimCore::Z));
|
||||||
|
|||||||
Reference in New Issue
Block a user