discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] strange consume behaviours on blocks with mulitpl


From: Eric Blossom
Subject: Re: [Discuss-gnuradio] strange consume behaviours on blocks with mulitple input channels
Date: Wed, 3 Jan 2007 02:06:51 -0800
User-agent: Mutt/1.5.9i

                // From this point sync clk
                //
                d_sign_last = (clk[0] > 0 ? 1: -1);
                for (i = 0; i < n_clk_in ; i++) {
                        sign_current = (clk[i] > 0 ? 1: -1);
                        if(sign_current != d_sign_last) {
                                // zc in clock
                                consume(1, i);
                                break;
                        }
                        d_sign_last = sign_current;
                }

                enter_locked();
                return 0;       // No output produced, but now sync...


The break after consume may be incorrect.  If it's executed you do not
set d_sign_last to the new sign (sign_current).

Eric




reply via email to

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