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
446 stars 129 forks source link

modes_gui No SBS-1 or FlightGear output on Ubuntu 13.10 x64 #52

Closed ajfdez closed 10 years ago

ajfdez commented 10 years ago

When selecting SBS-1 or FlighGear output option. modes_gui freezes.

Traceback of sbs1

  File "/usr/local/bin/modes_gui", line 331, in on_button_start_released
    sbs1out = air_modes.output_sbs1(self._cpr_dec, sbs1port, self._publisher)
  File "/usr/local/lib/python2.7/dist-packages/air_modes/sbs1.py", line 66, in __init__
    pub.subscribe("type%i_dl" % i, output)
NameError: global name 'output' is not defined
OOOOOOOOOOO

Traceback of flightgear

 File "/usr/local/bin/modes_gui", line 336, in on_button_start_released
    fgout = air_modes.output_flightgear(self._cpr_dec, fghost, int(fgport), self._publisher)
  File "/usr/local/lib/python2.7/dist-packages/air_modes/flightgear.py", line 21, in __init__
    self.localpos = localpos
NameError: global name 'localpos' is not defined
OOOOOO

Some details:

Ubuntu 13.10 x64 Python 2.7.5+ linux; GNU C++ version 4.8.1; Boost_105300 gr-osmosdr v0.1.0-65-g24f6f88a (0.1.1git) gnuradio 3.7.2.1

bistromath commented 10 years ago

Pull master, try it now. Some stuff didn't get updated properly for the new sockets interface.

ajfdez commented 10 years ago

Fixed. Now accepts connections.

Thank you very much.