Commit 7335f019 authored by Oliver Bock's avatar Oliver Bock
Browse files

Propagate full parameter set

parent 26f1593d
......@@ -19,9 +19,9 @@ public:
QVector<double> m_dataLLO;
QVector<double> m_dataVirgo;
double m_AmpLHO;
double m_AmpLLO;
double m_AmpVirgo;
double m_ampLHO;
double m_ampLLO;
double m_ampVirgo;
double m_phiLHO;
double m_phiLLO;
......
......@@ -577,14 +577,28 @@ void PulsarAnimationWidget::updatePulseProfile()
in.orientation[1] = m_LHOAngle;
in.orientation[2] = m_VirgoAngle;
// get actual detector data
get_antenna(&out, &in);
// populate plot data object
for(int x = 0; x < 360*PERIODS; ++x) {
m_plotData.m_dataLLO[x] = out.amp[0] * sin((x+out.phase[0]) * deg2rad);// + out.dt[0];
m_plotData.m_dataLHO[x] = out.amp[1] * sin((x+out.phase[1]) * deg2rad);// + out.dt[1];
m_plotData.m_dataVirgo[x] = out.amp[2] * sin((x+out.phase[2]) * deg2rad);// + out.dt[2];
}
// propagate new profile
m_plotData.m_ampLLO = out.amp[0];
m_plotData.m_ampLHO = out.amp[1];
m_plotData.m_ampVirgo = out.amp[2];
m_plotData.m_phiLLO = out.phase[0];
m_plotData.m_phiLHO = out.phase[1];
m_plotData.m_phiVirgo = out.phase[2];
m_plotData.m_dtLLO = out.dt[0];
m_plotData.m_dtLHO = out.dt[1];
m_plotData.m_dtVirgo = out.dt[2];
// propagate new plot data
emit pulseProfileUpdated(m_plotData);
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment