Skip to content
Snippets Groups Projects
Commit d8ad5e91 authored by Pieter Donker's avatar Pieter Donker
Browse files

Task #8966: add more logging

parent 8f80fcbb
No related branches found
No related tags found
No related merge requests found
......@@ -812,6 +812,10 @@ GCFEvent::TResult BeamServer::beamalloc_state(GCFEvent& event, GCFPortInterface&
LOG_INFO_STR("Subscribing to subarray: " << subscribe.name);
LOG_DEBUG_STR("subbands= " << subscribe.subbandset);
if (!_isCalTableValid(itsBeamTransaction.getBeam()->antennaSetName(), itsBeamTransaction.getBeam()->bandName())) {
LOG_INFO_STR("No valid CalTable available for this beam, using default");
}
itsCalServer->send(subscribe);
itsConnectTimer->setTimer(5.0);
}
......@@ -1562,6 +1566,36 @@ complex<double> BeamServer::_getCalFactor(const string& antennaSet, const string
return (result);
}
//
// _getCalFactor(rcumode, rcu, subbandNr)
//
bool BeamServer::_isCalTableValid(const string& antennaSet, const string& band)
{
bool result;
result = false;
if (band == "10_90") {
if (antennaSet == "LBA_INNER") { if (itsCalTable_LBA_INNER_10_90) result = true; }
else if (antennaSet == "LBA_OUTER") { if (itsCalTable_LBA_OUTER_10_90) result = true; }
else if (antennaSet == "LBA_SPARSE_EVEN") { if(itsCalTable_LBA_SPARSE_EVEN_10_90) result = true; }
else if (antennaSet == "LBA_SPARSE_ODD") { if(itsCalTable_LBA_SPARSE_ODD_10_90) result = true; }
else if (antennaSet == "LBA_X") { if(itsCalTable_LBA_X_10_90) result = true; }
else if (antennaSet == "LBA_Y") { if(itsCalTable_LBA_Y_10_90) result = true; }
}
else if (band == "30_90") {
if (antennaSet == "LBA_INNER") { if(itsCalTable_LBA_INNER_30_90) result = true; }
else if (antennaSet == "LBA_OUTER") { if(itsCalTable_LBA_OUTER_30_90) result = true; }
else if (antennaSet == "LBA_SPARSE_EVEN") { if(itsCalTable_LBA_SPARSE_EVEN_30_90)result = true; }
else if (antennaSet == "LBA_SPARSE_ODD") { if(itsCalTable_LBA_SPARSE_ODD_30_90) result = true; }
else if (antennaSet == "LBA_X") { if(itsCalTable_LBA_X_30_90) result = true; }
else if (antennaSet == "LBA_Y") { if(itsCalTable_LBA_Y_30_90) result = true; }
}
else if (band == "110_190") { if(itsCalTable_HBA_110_190) result = true; }
else if (band == "170_230") { if(itsCalTable_HBA_170_230) result = true; }
else if (band == "210_250") { if(itsCalTable_HBA_210_250) result = true; }
return (result);
}
void BeamServer::_loadCalTable(const string& antennaSet, const string& band, uint nrRSPBoards)
{
StatCal** tableHandle(0);
......
......@@ -181,7 +181,7 @@ private:
// RCU calibration
std::complex<double> _getCalFactor(const string& antennaSet, const string& band, uint rcu, uint subbandNr);
void _loadCalTable(const string& antennaSet, const string& band, uint nrRSPBoards);
bool _isCalTableValid(const string& antennaSet, const string& band);
// ### data members ###
// 'constant' containing the current number of bits each datasample has.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment