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 AttributeErrors #87

Closed az-developer closed 7 years ago

az-developer commented 8 years ago

When running the latest code (commits up to and including Aug 5, 2016), I get the following AttributeError: File "/usr/local/bin/modes_gui", line 110, in init self.az_model = air_modes.az_map_model(None) AttributeError: 'module' object has no attribute 'az_map_model'

My fix was to modify line #110 to the following: self.az_model = air_modes.az_map.az_map_model(None)

After fixing that I then got another similar error on line 354:

File "./modes_gui.exe", line 354, in on_button_start_released self.az_map_output = air_modes.az_map_output(self._cpr_dec, self.az_model, self._publisher) AttributeError: 'module' object has no attribute 'az_map_output'

My fix was to modify line #354 to the following: self.az_map_output = air_modes.az_map.az_map_output(self._cpr_dec, self.az_model, self._publisher)

After fixing both of these everything ran great. I'm fairly new to Python, but both of these seemed like code problems and not environmental. So if I'm wrong please let me know so that I can correct it.

Thanks.