Skip to content

Commit

Permalink
use absolute sidelobe value
Browse files Browse the repository at this point in the history
  • Loading branch information
tilsche committed Oct 14, 2019
1 parent 3626af9 commit 4834335
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/timesync/shifter.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class Shifter
auto sidelobe_value = std::numeric_limits<double>::lowest();
for (int i = 0; i < ifft_.out_size(); ++i)
{
const auto value = ifft_.out_begin()[i];
const auto value = fabs(ifft_.out_begin()[i]);
if (value > sidelobe_value)
{
auto distance = std::min((i - mainlobe_index) % ifft_.out_size(),
Expand Down

0 comments on commit 4834335

Please sign in to comment.