bistromath / gr-air-modes

Gnuradio Mode-S/ADS-B radio
This project implements a Mode S receiver for the Gnuradio software-defined radio project. It is designed to receive Mode S transmissions from aircraft and decode them to a human-readable format, including ADS-B information messages such as position and a
GNU General Public License v3.0
445 stars 127 forks source link

New one to me: "too many values to unpack" #15

Closed jazzbassNick closed 12 years ago

jazzbassNick commented 12 years ago

(-28 0.0000000000) Type 11 (all call reply) from a47916 in reply to interrogator 0 with capability level 6 OOOOOOOOOTraceback (most recent call last): File "/usr/local/bin/uhd_modes.py", line 231, in out(msg.to_string()) File "/usr/local/lib/python2.7/dist-packages/air_modes/modes_sbs1.py", line 66, in output sbs1_msg = self.parse(msg) File "/usr/local/lib/python2.7/dist-packages/air_modes/modes_sbs1.py", line 123, in parse outmsg = self.pp17(data) File "/usr/local/lib/python2.7/dist-packages/air_modes/modes_sbs1.py", line 187, in pp17 O[altitude, decoded_lat, decoded_lon, rnge, bearing] = self.parseBDS05(data) File "/usr/local/lib/python2.7/dist-packages/air_modes/modes_parse.py", line 271, in parseBDS05 [decoded_lat, decoded_lon, rnge, bearing] = self.cpr.decode(icao24, encoded_lat, encoded_lon, cpr_format, 0) File "/usr/local/lib/python2.7/dist-packages/air_modes/cpr.py", line 225, in decode [rnge, bearing] = range_bearing(self.my_location, [decoded_lat, decoded_lon]) File "/usr/local/lib/python2.7/dist-packages/air_modes/cpr.py", line 147, in range_bearing [a_lat, a_lon] = loc_a ValueError: too many values to unpack OOOException in thread Thread-1 (most likely raised during interpreter shutdown): Traceback (most recent call last): File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner File "/usr/local/bin/uhd_modes.py", line 44, in run File "/usr/local/lib/python2.7/dist-packages/gnuradio/gr/top_block.py", line 104, in run File "/usr/local/lib/python2.7/dist-packages/gnuradio/gr/top_block.py", line 107, in wait File "/usr/local/lib/python2.7/dist-packages/gnuradio/gr/top_block.py", line 69, in wait File "/usr/lib/python2.7/threading.py", line 403, in wait OSegmentation fault (core dumped)

bistromath commented 12 years ago

What do you have the variable "my_location" set to? It's line 22 in uhd_modes.py.

--n

On Mon, Sep 24, 2012 at 6:20 AM, jazzbassNick notifications@github.comwrote:

(-28 0.0000000000) Type 11 (all call reply) from a47916 in reply to interrogator 0 with capability level 6 OOOOOOOOOTraceback (most recent call last): File "/usr/local/bin/uhd_modes.py", line 231, in out(msg.to_string()) File "/usr/local/lib/python2.7/dist-packages/air_modes/modes_sbs1.py", line 66, in output sbs1_msg = self.parse(msg) File "/usr/local/lib/python2.7/dist-packages/air_modes/modes_sbs1.py", line 123, in parse outmsg = self.pp17(data) File "/usr/local/lib/python2.7/dist-packages/air_modes/modes_sbs1.py", line 187, in pp17 O[altitude, decoded_lat, decoded_lon, rnge, bearing] = self.parseBDS05(data) File "/usr/local/lib/python2.7/dist-packages/air_modes/modes_parse.py", line 271, in parseBDS05 [decoded_lat, decoded_lon, rnge, bearing] = self.cpr.decode(icao24, encoded_lat, encoded_lon, cpr_format, 0) File "/usr/local/lib/python2.7/dist-packages/air_modes/cpr.py", line 225, in decode [rnge, bearing] = range_bearing(self.my_location, [decoded_lat, decoded_lon]) File "/usr/local/lib/python2.7/dist-packages/air_modes/cpr.py", line 147, in range_bearing [a_lat, a_lon] = loc_a ValueError: too many values to unpack OOOException in thread Thread-1 (most likely raised during interpreter shutdown): Traceback (most recent call last): File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner File "/usr/local/bin/uhd_modes.py", line 44, in run File "/usr/local/lib/python2.7/dist-packages/gnuradio/gr/top_block.py", line 104, in run File "/usr/local/lib/python2.7/dist-packages/gnuradio/gr/top_block.py", line 107, in wait File "/usr/local/lib/python2.7/dist-packages/gnuradio/gr/top_block.py", line 69, in wait File "/usr/lib/python2.7/threading.py", line 403, in wait OSegmentation fault (core dumped)

— Reply to this email directly or view it on GitHubhttps://github.com/bistromath/gr-air-modes/issues/15.

jazzbassNick commented 12 years ago

Hey Nick! It's set to "None", the default. I was supplying "-l 34.11722,-118.08882" when I launched though. Thanks, N

On Mon, Sep 24, 2012 at 6:30 AM, bistromath notifications@github.comwrote:

What do you have the variable "my_location" set to? It's line 22 in uhd_modes.py.

--n

On Mon, Sep 24, 2012 at 6:20 AM, jazzbassNick notifications@github.comwrote:

(-28 0.0000000000) Type 11 (all call reply) from a47916 in reply to interrogator 0 with capability level 6 OOOOOOOOOTraceback (most recent call last): File "/usr/local/bin/uhd_modes.py", line 231, in out(msg.to_string()) File "/usr/local/lib/python2.7/dist-packages/air_modes/modes_sbs1.py", line 66, in output sbs1_msg = self.parse(msg) File "/usr/local/lib/python2.7/dist-packages/air_modes/modes_sbs1.py", line 123, in parse outmsg = self.pp17(data) File "/usr/local/lib/python2.7/dist-packages/air_modes/modes_sbs1.py", line 187, in pp17 O[altitude, decoded_lat, decoded_lon, rnge, bearing] = self.parseBDS05(data) File "/usr/local/lib/python2.7/dist-packages/air_modes/modes_parse.py", line 271, in parseBDS05 [decoded_lat, decoded_lon, rnge, bearing] = self.cpr.decode(icao24, encoded_lat, encoded_lon, cpr_format, 0) File "/usr/local/lib/python2.7/dist-packages/air_modes/cpr.py", line 225, in decode [rnge, bearing] = range_bearing(self.my_location, [decoded_lat, decoded_lon]) File "/usr/local/lib/python2.7/dist-packages/air_modes/cpr.py", line 147, in range_bearing [a_lat, a_lon] = loc_a ValueError: too many values to unpack OOOException in thread Thread-1 (most likely raised during interpreter shutdown): Traceback (most recent call last): File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner File "/usr/local/bin/uhd_modes.py", line 44, in run File "/usr/local/lib/python2.7/dist-packages/gnuradio/gr/top_block.py", line 104, in run File "/usr/local/lib/python2.7/dist-packages/gnuradio/gr/top_block.py", line 107, in wait File "/usr/local/lib/python2.7/dist-packages/gnuradio/gr/top_block.py", line 69, in wait File "/usr/lib/python2.7/threading.py", line 403, in wait OSegmentation fault (core dumped)

— Reply to this email directly or view it on GitHub< https://github.com/bistromath/gr-air-modes/issues/15>.

— Reply to this email directly or view it on GitHubhttps://github.com/bistromath/gr-air-modes/issues/15#issuecomment-8818703.

jazzbassNick commented 12 years ago

User error, sorry for the red-alert. Accidentally had a comma instead of a period in my supplied longitude.

bistromath commented 12 years ago

Glad to hear it!

On Mon, Sep 24, 2012 at 6:39 AM, jazzbassNick notifications@github.comwrote:

User error, sorry for the red-alert. Accidentally had a comma instead of a period in my supplied longitude.

— Reply to this email directly or view it on GitHubhttps://github.com/bistromath/gr-air-modes/issues/15#issuecomment-8818980.