mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-12-24 10:50:29 -05:00
AGC and SimpleAGC: Use double for moving average storage type
This commit is contained in:
parent
59ee73e979
commit
55099c73c5
@ -24,7 +24,7 @@ public:
|
|||||||
protected:
|
protected:
|
||||||
Real m_u0;
|
Real m_u0;
|
||||||
Real m_R; // objective mag
|
Real m_R; // objective mag
|
||||||
MovingAverage<Real> m_moving_average; // Averaging engine. The stack length conditions the smoothness of AGC.
|
MovingAverage<double> m_moving_average; // Averaging engine. The stack length conditions the smoothness of AGC.
|
||||||
int m_historySize;
|
int m_historySize;
|
||||||
int m_count;
|
int m_count;
|
||||||
};
|
};
|
||||||
@ -109,7 +109,7 @@ private:
|
|||||||
Real m_fill; // refill average at this level
|
Real m_fill; // refill average at this level
|
||||||
Real m_cutoff; // consider samples only above this level
|
Real m_cutoff; // consider samples only above this level
|
||||||
Real m_clip; // never go below this level
|
Real m_clip; // never go below this level
|
||||||
MovingAverage<Real> m_moving_average; // Averaging engine. The stack length conditions the smoothness of AGC.
|
MovingAverage<double> m_moving_average; // Averaging engine. The stack length conditions the smoothness of AGC.
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* INCLUDE_GPL_DSP_AGC_H_ */
|
#endif /* INCLUDE_GPL_DSP_AGC_H_ */
|
||||||
|
Loading…
Reference in New Issue
Block a user