Start GUI with ideal calibration standards
This commit is contained in:
parent
175cade3da
commit
853cf310c9
@ -414,3 +414,14 @@ void Calkit::fromJSON(nlohmann::json j)
|
|||||||
standards.push_back(s);
|
standards.push_back(s);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Calkit::setIdealDefault()
|
||||||
|
{
|
||||||
|
manufacturer = "LibreVNA";
|
||||||
|
description = "Default calibration kit with ideal standards";
|
||||||
|
clearStandards();
|
||||||
|
addStandard(new CalStandard::Open("Ideal Open Standard", 50.0, 0, 0, 0, 0, 0, 0));
|
||||||
|
addStandard(new CalStandard::Short("Ideal Short Standard", 50.0, 0, 0, 0, 0, 0, 0));
|
||||||
|
addStandard(new CalStandard::Load("Ideal Load Standard", 50.0, 0, 0, 50.0, 0, 0));
|
||||||
|
addStandard(new CalStandard::Through("Ideal Through Standard", 50.0, 0, 0));
|
||||||
|
}
|
||||||
|
@ -53,6 +53,8 @@ public:
|
|||||||
virtual nlohmann::json toJSON() override;
|
virtual nlohmann::json toJSON() override;
|
||||||
virtual void fromJSON(nlohmann::json j) override;
|
virtual void fromJSON(nlohmann::json j) override;
|
||||||
|
|
||||||
|
void setIdealDefault();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void clearStandards();
|
void clearStandards();
|
||||||
QString manufacturer, serialnumber, description;
|
QString manufacturer, serialnumber, description;
|
||||||
|
@ -157,6 +157,8 @@ VNA::VNA(AppWindow *window, QString name)
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
cal.getKit().setIdealDefault();
|
||||||
|
|
||||||
// portExtension.setCalkit(&cal.getCalibrationKit());
|
// portExtension.setCalkit(&cal.getCalibrationKit());
|
||||||
|
|
||||||
// De-embedding menu
|
// De-embedding menu
|
||||||
|
Loading…
Reference in New Issue
Block a user