mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-04 22:17:31 +00:00
Various small bugfixes
- Improved device communication (callbacks for transmissions working properly now) - Honor averaging when calibrating - Ignore delayed points from last sweep during calibration - Stop the sweep when disconnecting
This commit is contained in:
parent
aee73f0c87
commit
c0e4f41115
9 changed files with 142 additions and 63 deletions
|
|
@ -10,11 +10,16 @@ class Averaging
|
|||
{
|
||||
public:
|
||||
Averaging();
|
||||
void reset();
|
||||
void reset(unsigned int points);
|
||||
void setAverages(unsigned int a);
|
||||
Protocol::Datapoint process(Protocol::Datapoint d);
|
||||
Protocol::SpectrumAnalyzerResult process(Protocol::SpectrumAnalyzerResult d);
|
||||
// Returns the number of averaged sweeps. Value is incremented whenever the last point of the sweep is added.
|
||||
// Returned values are in range 0 to averages
|
||||
unsigned int getLevel();
|
||||
// Returns the number of the currently active sweep. Value is incremented whenever the the first point of the sweep is added
|
||||
// Returned values are in range 0 (when no data has been added yet) to averages
|
||||
unsigned int currentSweep();
|
||||
private:
|
||||
std::vector<std::deque<std::array<std::complex<double>, 4>>> avg;
|
||||
int maxPoints;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue