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

compile isnan issue #19

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,18 @@ control_vrt
sigmf_to_vrt
.DS_Store
build/*
.cproject
.project
.settings/
CMakeCache.txt
CMakeFiles/*
cmake_install.cmake
Comment on lines +17 to +22
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think these don't belong here. Good practice is to build in a subdirectory build/ within the source dir. The build directory is already ignored.

play_vrt
rfspace_to_vrt
rtlsdr_to_vrt
usrp_to_vrt
vrt_channelizer
vrt_metadata
vrt_rffft
vrt_to_stdout
vrt_to_udp
3 changes: 2 additions & 1 deletion vrt_channelizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include <string.h>
#include <assert.h>
#include <unistd.h>
#include <cmath>

#include <boost/format.hpp>
#include <boost/lexical_cast.hpp>
Expand Down Expand Up @@ -508,7 +509,7 @@ int main(int argc, char* argv[])
if (vrt_packet.extended_context) {
if (tracking) {
tracker_process(rx_buffer, sizeof(rx_buffer), &vrt_packet, &tracker_ext_context);
if (!isnan(tracker_ext_context.doppler_rate)) {
if (!std::isnan(tracker_ext_context.doppler_rate)) {
doppler_rate = tracker_ext_context.doppler_rate;
alpha_dop = complexi*2.0*pi*(double)-doppler_rate;
step_dop = std::exp(alpha_dop/pow((double)vrt_context.sample_rate,2));
Expand Down