…
self.arctan = math.atan2(x_hyd_filter, y_hyd_filter)
TypeError: a float is required.
In your opinion what is the problem?
Are you sure x_hyd_filter and y_hyd_filter are, in fact, floats?
If you’re trying to do arctan on 2 streams of floats, you can’t
use the Python math.atan2 function to do this operation – you need a
gnuradio processing block. I’m not even sure we have such a block yet,
you might have to write it yourself.
On Tue, Sep 02, 2008 at 09:28:00AM -0700, Dan H. wrote:
If you’re trying to do arctan on 2 streams of floats, you can’t
use the Python math.atan2 function to do this operation – you need a
gnuradio processing block. I’m not even sure we have such a block yet,
you might have to write it yourself.
-Dan
Use gr.complex_to_arg
Eric
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.