Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbourelly999 committed Jul 15, 2024
1 parent ff4e4f1 commit 4a3e573
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/v2i-hub/SpatPlugin/src/SpatPlugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,11 @@ namespace SpatPlugin {
auto spat_ptr = std::make_shared<SPAT>();
scConnection->receiveBinarySPAT(spat_ptr, PluginClientClockAware::getClock()->nowInMilliseconds());
tmx::messages::SpatMessage _spatMessage(spat_ptr);
tmx::messages::SpatEncodedMessage spatEncodedMsg;
spatEncodedMsg.initialize(_spatMessage,"", 0U, IvpMsgFlags_RouteDSRC);
spatEncodedMsg.addDsrcMetadata(tmx::messages::api::msgPSID::signalPhaseAndTimingMessage_PSID);

PLOG(tmx::utils::logDEBUG) << "Broadcasting SPAT" << std::endl;
auto rMsg = static_cast<routeable_message>(spatEncodedMsg);
BroadcastMessage(rMsg);
auto spatEncoded_ptr = std::make_shared<tmx::messages::SpatEncodedMessage>();
spatEncoded_ptr->initialize(_spatMessage,"", 0U, IvpMsgFlags_RouteDSRC);
spatEncoded_ptr->addDsrcMetadata(tmx::messages::api::msgPSID::signalPhaseAndTimingMessage_PSID);
auto rMsg = dynamic_cast<routeable_message*>(spatEncoded_ptr.get());
BroadcastMessage(*rMsg);
}
else if (spatMode == "J2735_HEX") {
auto spatEncoded_ptr = std::make_shared<tmx::messages::SpatEncodedMessage>();
Expand Down

0 comments on commit 4a3e573

Please sign in to comment.