mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-07 15:33:51 +00:00
TCXO offset calibration
This commit is contained in:
parent
4f4b2db549
commit
938f444c73
19 changed files with 319 additions and 34 deletions
|
|
@ -1,9 +1,9 @@
|
|||
#include <Cal.hpp>
|
||||
#include "Generator.hpp"
|
||||
#include "Manual.hpp"
|
||||
#include "Hardware.hpp"
|
||||
#include "max2871.hpp"
|
||||
#include "Si5351C.hpp"
|
||||
#include "AmplitudeCal.hpp"
|
||||
|
||||
void Generator::Setup(Protocol::GeneratorSettings g) {
|
||||
if(g.activePort == 0) {
|
||||
|
|
@ -35,6 +35,7 @@ void Generator::Setup(Protocol::GeneratorSettings g) {
|
|||
m.PortSwitch = 1;
|
||||
break;
|
||||
}
|
||||
g.frequency = Cal::FrequencyCorrectionToDevice(g.frequency);
|
||||
auto amplitude = HW::GetAmplitudeSettings(g.cdbm_level, g.frequency, g.applyAmplitudeCorrection, g.activePort == 2);
|
||||
// Select correct source
|
||||
if(g.frequency < HW::BandSwitchFrequency) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue