Skip to content

Commit 5d440a6

Browse files
committed
frame_sorter: Increase sort window to 2 seconds
1 parent eb3ba01 commit 5d440a6

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/frame_sorter_cpp_impl.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ void frame_sorter_cpp_impl::handler(const pmt::pmt_t& msg)
5050
auto it = frames.begin();
5151

5252
while(it != frames.end()) {
53-
if(it->first.timestamp < f.timestamp - 1000000000) {
53+
if(it->first.timestamp < f.timestamp - 2000000000) {
5454
message_port_pub(pmt::mp("pdus"), it->second);
5555
it = frames.erase(it);
5656
} else {

python/frame_sorter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def handle_msg(self, msg_pmt):
5757
remove_index = None
5858
for idx, message in enumerate(self._messages):
5959
ts_delta = timestamp - message.timestamp
60-
if ts_delta > 1e9:
60+
if ts_delta > 2e9:
6161
self.message_port_pub(gr.pmt.intern('pdus'), message.pmt)
6262
remove_count += 1
6363
elif abs(ts_delta) <= 1000:

0 commit comments

Comments
 (0)