Commit 797ac227 authored by Cresson Remi's avatar Cresson Remi

ENH: output gains and offsets to parameters

parent a1f66683
...@@ -300,6 +300,14 @@ private: ...@@ -300,6 +300,14 @@ private:
AddChoice("zeroy.on", "Yes (y=ax)"); AddChoice("zeroy.on", "Yes (y=ax)");
AddChoice("zeroy.off", "No (y=ax+b)"); AddChoice("zeroy.off", "No (y=ax+b)");
AddParameter(ParameterType_StringList, "outgains", "output gains");
SetParameterRole("outgains", Role_Output);
EnableParameter("outgains");
AddParameter(ParameterType_StringList, "outoffsets", "output offsets");
SetParameterRole("outoffsets", Role_Output);
EnableParameter("outoffsets");
AddRAMParameter(); AddRAMParameter();
// Doc example parameter settings // Doc example parameter settings
...@@ -444,11 +452,11 @@ private: ...@@ -444,11 +452,11 @@ private:
if (band>0) if (band>0)
exp << ";"; exp << ";";
exp << "im1b" << (band+1) << "*" << b1; exp << "im1b" << (band+1) << "*" << std::to_string(b1);
if (b0>0) if (b0>0)
exp << "+" << b0; exp << "+" << std::to_string(b0);
else else
exp << "" << b0; exp << "" << std::to_string(b0);
gain[band] = b1; gain[band] = b1;
offset[band] = b0; offset[band] = b0;
......
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