Commit 24027c62 authored by Bruce Allen's avatar Bruce Allen
Browse files

Normalizing phase to LLO produced a misleading behavior when changing the...

Normalizing phase to LLO produced a misleading behavior when changing the orientation of LLO. Shifted relative phases to a more sensible convention
parent b92942d8
......@@ -594,9 +594,9 @@ void PulsarAnimationWidget::updatePulseProfile()
for(int x = 0; x < 360*PERIODS; ++x) {
double t=x/(PERIODS*360.0);
double freq = 1.0/pow(1.1-t,0.375);
m_plotData.m_dataLLO[x] = out.amp[0] * freq * freq * sin(freq*x* deg2rad);// + out.dt[0];
m_plotData.m_dataLHO[x] = out.amp[1] * freq * freq * sin((freq*x+out.phase[1]-out.phase[0]) * deg2rad);// + out.dt[1];
m_plotData.m_dataVirgo[x] = out.amp[2] * freq * freq * sin((freq*x+out.phase[2]-out.phase[0]) * deg2rad);// + out.dt[2];
m_plotData.m_dataLLO[x] = out.amp[0] * freq * freq * sin((freq*x + out.phase[0]) * deg2rad);// + out.dt[0];
m_plotData.m_dataLHO[x] = out.amp[1] * freq * freq * sin((freq*x + out.phase[1]) * deg2rad);// + out.dt[1];
m_plotData.m_dataVirgo[x] = out.amp[2] * freq * freq * sin((freq*x + out.phase[2]) * deg2rad);// + out.dt[2];
}
m_plotData.m_ampLLO = out.amp[0];
......
Supports Markdown
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