patch-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Patch-gnuradio] [Fwd: Re: [Discuss-gnuradio] make check errors]


From: Dan Halperin
Subject: [Patch-gnuradio] [Fwd: Re: [Discuss-gnuradio] make check errors]
Date: Tue, 11 Dec 2007 20:31:46 -0800
User-agent: Thunderbird 2.0.0.6 (X11/20071022)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Attached is a patch for gnuradio-core/src/lib/filter/gri_iir.h that
includes a sanity check on the input. See the forwarded message.

I'm sure the error message could be better and instead of exit(0) an
exception could be thrown or something -- if you would please clean it
up for me I'll know how to do it correctly the next time :).

- -Dan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHX2Qyy9GYuuMoUJ4RAhmUAJ9SjZhk10kE2YgxZ9Dc9WA7485saQCfSLyY
fR0zTFSDs7fcQ77u4GHLq+0=
=apAh
-----END PGP SIGNATURE-----
--- gri_iir.h   2007-12-11 20:28:17.000000000 -0800
+++ tmp 2007-12-11 20:27:17.000000000 -0800
@@ -90,6 +90,11 @@
                 const std::vector<tap_type> &fbtaps) throw 
(std::invalid_argument)
   { 
 
+    if (fbtaps.size() > 0 && fbtaps[0] != 0)
+    {
+        fprintf(stderr, "Are you using fbtaps correctly? The first value 
should always be zero!\n");
+        exit(0);
+    }
 
     d_latest_n = 0;
     d_latest_m = 0;
--- Begin Message --- Subject: Re: [Discuss-gnuradio] make check errors Date: Tue, 11 Dec 2007 20:16:25 -0800 User-agent: Thunderbird 2.0.0.6 (X11/20071022)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Johnathan Corgan wrote:
> On 12/11/07, Johnathan Corgan <address@hidden> wrote:
> 
>> I see this as well now.  It can be attributed to a check-in on the trunk
>> 2 days ago that Martin did to fix an iir bug (r7089).  I suspect the iir
>> QA needs to be updated.
> 
> The changeset for r7089 has been reverted on the trunk.

I looked through that code and the formulas in the header file and did
the QA by hand and it seems that the reverted version is/was correct.
Perhaps there was an error forgetting to prepend a 0 into the fb_taps
that made someone think there was a bug?

- -Dan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHX2CZy9GYuuMoUJ4RAjKgAJ4l5cQ6B8vJUqyEbuMvZhfoQZRbSQCdFJTG
QiFBO/PjvRX1y96QvGT43Vs=
=x9HD
-----END PGP SIGNATURE-----


_______________________________________________
Discuss-gnuradio mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio

--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]