Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rh.psd frequency translation error #16

Open
dreadyy opened this issue Dec 5, 2020 · 0 comments
Open

rh.psd frequency translation error #16

dreadyy opened this issue Dec 5, 2020 · 0 comments

Comments

@dreadyy
Copy link

dreadyy commented Dec 5, 2020

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;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant