mirror of
https://github.com/nqrduck/LimeDriver.git
synced 2024-11-25 11:32:27 +00:00
Added init of more modulation parameters
This commit is contained in:
parent
929a6a8d0d
commit
f9d86bd4de
1 changed files with 8 additions and 4 deletions
|
@ -447,6 +447,8 @@ LimeConfig_t initializeLimeConfig(int Npulses) {
|
||||||
// allocate other variables that depend on Npulses
|
// allocate other variables that depend on Npulses
|
||||||
LimeCfg.p_dur_smp = new int[LimeCfg.Npulses]{};
|
LimeCfg.p_dur_smp = new int[LimeCfg.Npulses]{};
|
||||||
LimeCfg.p_frq_smp = new double[LimeCfg.Npulses]{};
|
LimeCfg.p_frq_smp = new double[LimeCfg.Npulses]{};
|
||||||
|
LimeCfg.am_frq_smp = new double[LimeCfg.Npulses];
|
||||||
|
LimeCfg.fm_frq_smp = new double[LimeCfg.Npulses];
|
||||||
|
|
||||||
return LimeCfg;
|
return LimeCfg;
|
||||||
}
|
}
|
||||||
|
@ -674,6 +676,8 @@ int run_experiment(LimeConfig_t LimeCfg, std::vector<Config2HDFattr_t> &HDFattrV
|
||||||
for (int ii = 0; ii < LimeCfg.Npulses; ii++) {
|
for (int ii = 0; ii < LimeCfg.Npulses; ii++) {
|
||||||
LimeCfg.p_dur_smp[ii] = round(LimeCfg.p_dur[ii] * LimeCfg.srate);
|
LimeCfg.p_dur_smp[ii] = round(LimeCfg.p_dur[ii] * LimeCfg.srate);
|
||||||
LimeCfg.p_frq_smp[ii] = LimeCfg.p_frq[ii] / LimeCfg.srate;
|
LimeCfg.p_frq_smp[ii] = LimeCfg.p_frq[ii] / LimeCfg.srate;
|
||||||
|
LimeCfg.am_frq_smp[ii] = LimeCfg.am_frq[ii] / LimeCfg.srate;
|
||||||
|
LimeCfg.fm_frq_smp[ii] = LimeCfg.fm_frq[ii] / LimeCfg.srate;
|
||||||
}
|
}
|
||||||
|
|
||||||
// check directory first
|
// check directory first
|
||||||
|
|
Loading…
Reference in a new issue