Skip to content

Commit

Permalink
add zero time config for TCM repeatedly broadcast
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-du-car committed May 5, 2022
1 parent ca1af83 commit 715ef08
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/v2i-hub/CARMACloudPlugin/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@
{
"key": "TCMRepeatedlyBroadcastSleep",
"default": "100",
"description": "The broadcast thread should sleep for number of milliseconds."
"description": "The repeatedly broadcast thread should sleep for number of milliseconds."
},
{
"key": "TCMRepeatedlyBroadCastTotalTimes",
"default": "1",
"description": "The number of times TCMs with the same request id should be broadcast within the time out period."
"description": "The number of times TCMs with the same request id should be repeatedly broadcast within the time out period."
},
{
"key": "TCMNOAcknowledgementDescription",
Expand Down
6 changes: 6 additions & 0 deletions src/v2i-hub/CARMACloudPlugin/src/CARMACloudPlugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,12 @@ void CARMACloudPlugin::BroadcastTCM(tsm5EncodedMessage& tsm5ENC) {

bool CARMACloudPlugin::IsSkipBroadcastCurTCM(const string & tcmv01_req_id_hex, const string & tcm_hex_payload ) const
{
//Skip repeatedly broadcasting
if(_TCMRepeatedlyBroadCastTotalTimes == 0)
{
return true;
}

bool is_skip_cur_tcm = false;
bool is_tcm_hex_found = false;
auto tcms_metadatas = _tcm_broadcast_times->equal_range(tcmv01_req_id_hex);
Expand Down

0 comments on commit 715ef08

Please sign in to comment.