Test of DFT implementation in FPGA

This commit is contained in:
Jan Käberich 2020-11-04 22:22:02 +01:00
parent 68f660ff1c
commit f889ec854b
24 changed files with 868 additions and 186 deletions

View file

@ -202,6 +202,11 @@ bool VNA::MeasurementDone(const FPGA::SamplingResult &result) {
if(!active) {
return false;
}
if(result.pointNum != pointCnt || !result.activePort != excitingPort1) {
LOG_WARN("Indicated point does not match (%u != %u, %d != %d)", result.pointNum, pointCnt, result.activePort, !excitingPort1);
FPGA::AbortSweep();
return false;
}
// normal sweep mode
auto port1_raw = std::complex<float>(result.P1I, result.P1Q);
auto port2_raw = std::complex<float>(result.P2I, result.P2Q);