You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The rh.psd dies when the CHAN_RF / COL_RF frequency is out of range for the 'long' type. The issue was apparent when streaming frequency 2.4GHz & beyond. Having inspected the code (I'm not a C++ dev), the issue appears to rest with the conversion to 'long' vice 'long long'.
// psd.cpp, line 359.
if (params_cache.rfFreqUnits){
const redhawk::PropertyMap& props = redhawk::PropertyMap::cast(block.sri().keywords); long rfCenter; // Replace with 'long long' (not sure if this step is necessary).
bool validRF = false;
if(props.find("CHAN_RF")!=props.end()){
rfCenter = props["CHAN_RF"].toLong(); // Replace with 'toLongLong()'.
validRF = true;
} else if(props.find("COL_RF")!=props.end()){
rfCenter = props["COL_RF"].toLong(); // Replace with 'toLongLong()'.
validRF = true;
}
The text was updated successfully, but these errors were encountered:
The rh.psd dies when the CHAN_RF / COL_RF frequency is out of range for the 'long' type. The issue was apparent when streaming frequency 2.4GHz & beyond. Having inspected the code (I'm not a C++ dev), the issue appears to rest with the conversion to 'long' vice 'long long'.
// psd.cpp, line 359.
if (params_cache.rfFreqUnits){
const redhawk::PropertyMap& props = redhawk::PropertyMap::cast(block.sri().keywords);
long rfCenter; // Replace with 'long long' (not sure if this step is necessary).
bool validRF = false;
if(props.find("CHAN_RF")!=props.end()){
rfCenter = props["CHAN_RF"].toLong(); // Replace with 'toLongLong()'.
validRF = true;
} else if(props.find("COL_RF")!=props.end()){
rfCenter = props["COL_RF"].toLong(); // Replace with 'toLongLong()'.
validRF = true;
}
The text was updated successfully, but these errors were encountered: