[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] blks2impl/dbpsk.py question
From: |
Eric Blossom |
Subject: |
Re: [Discuss-gnuradio] blks2impl/dbpsk.py question |
Date: |
Thu, 5 Mar 2009 10:12:15 -0800 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
On Thu, Mar 05, 2009 at 05:37:00PM +0100, Dimitris Symeonidis wrote:
> Hi List,
> I was reading through the dbpsk.py block in blks2impl, and found
> something that doesn't seem to make much sense (to me).
> Lines 272-273 read:
> rot = 1
> rotated_const = map(lambda pt: pt * rot, psk.constellation[arity])
> Is this not equivalent to:
> rotated_const = psk.constellation[arity]
> ??? I mean, it's just multiplying each output item of
> psk.constellation with the number 1, or am I mis-reading something?
>
> Thanx for looking at this...
I'm guessing that it's in there because at sometime someone wanted to
rotate the constellation. (If rot were a suitable complex value, the
multiplication by rot would rotate it.) rot = 1 means "don't rotate"
Eric