@@ -69,19 +69,19 @@ namespace gr {
69
69
70
70
// Delay is based on number of taps per filter arm. Round to
71
71
// the nearest integer.
72
- float delay = - rate * (taps_per_filter () - 1.0 ) / 2.0 ;
72
+ float delay = rate * (taps_per_filter () - 1.0 ) / 2.0 ;
73
73
d_delay = static_cast <int >(boost::math::iround (delay));
74
74
75
75
// This calculation finds the phase offset induced by the
76
76
// arbitrary resampling. It's based on which filter arm we are
77
77
// at the filter's group delay plus the fractional offset
78
78
// between the samples. Calculated here based on the rotation
79
79
// around nfilts starting at start_filter.
80
- float accum = - d_delay * d_flt_rate;
80
+ float accum = d_delay * d_flt_rate;
81
81
int accum_int = static_cast <int >(accum);
82
82
float accum_frac = accum - accum_int;
83
83
int end_filter = static_cast <int >
84
- (boost::math::iround (fmodf (d_last_filter - d_delay * d_dec_rate + accum_int, \
84
+ (boost::math::iround (fmodf (d_last_filter + d_delay * d_dec_rate + accum_int, \
85
85
static_cast <float >(d_int_rate))));
86
86
87
87
d_est_phase_change = d_last_filter - (end_filter + accum_frac);
@@ -280,19 +280,19 @@ namespace gr {
280
280
281
281
// Delay is based on number of taps per filter arm. Round to
282
282
// the nearest integer.
283
- float delay = - rate * (taps_per_filter () - 1.0 ) / 2.0 ;
283
+ float delay = rate * (taps_per_filter () - 1.0 ) / 2.0 ;
284
284
d_delay = static_cast <int >(boost::math::iround (delay));
285
285
286
286
// This calculation finds the phase offset induced by the
287
287
// arbitrary resampling. It's based on which filter arm we are
288
288
// at the filter's group delay plus the fractional offset
289
289
// between the samples. Calculated here based on the rotation
290
290
// around nfilts starting at start_filter.
291
- float accum = - d_delay * d_flt_rate;
291
+ float accum = d_delay * d_flt_rate;
292
292
int accum_int = static_cast <int >(accum);
293
293
float accum_frac = accum - accum_int;
294
294
int end_filter = static_cast <int >
295
- (boost::math::iround (fmodf (d_last_filter - d_delay * d_dec_rate + accum_int, \
295
+ (boost::math::iround (fmodf (d_last_filter + d_delay * d_dec_rate + accum_int, \
296
296
static_cast <float >(d_int_rate))));
297
297
298
298
d_est_phase_change = d_last_filter - (end_filter + accum_frac);
@@ -491,19 +491,19 @@ namespace gr {
491
491
492
492
// Delay is based on number of taps per filter arm. Round to
493
493
// the nearest integer.
494
- float delay = - rate * (taps_per_filter () - 1.0 ) / 2.0 ;
494
+ float delay = rate * (taps_per_filter () - 1.0 ) / 2.0 ;
495
495
d_delay = static_cast <int >(boost::math::iround (delay));
496
496
497
497
// This calculation finds the phase offset induced by the
498
498
// arbitrary resampling. It's based on which filter arm we are
499
499
// at the filter's group delay plus the fractional offset
500
500
// between the samples. Calculated here based on the rotation
501
501
// around nfilts starting at start_filter.
502
- float accum = - d_delay * d_flt_rate;
502
+ float accum = d_delay * d_flt_rate;
503
503
int accum_int = static_cast <int >(accum);
504
504
float accum_frac = accum - accum_int;
505
505
int end_filter = static_cast <int >
506
- (boost::math::iround (fmodf (d_last_filter - d_delay * d_dec_rate + accum_int, \
506
+ (boost::math::iround (fmodf (d_last_filter + d_delay * d_dec_rate + accum_int, \
507
507
static_cast <float >(d_int_rate))));
508
508
509
509
d_est_phase_change = d_last_filter - (end_filter + accum_frac);
0 commit comments