Skip to content

Commit

Permalink
Loading the carrier frequency from the satellite JSON files
Browse files Browse the repository at this point in the history
  • Loading branch information
mgm8 committed Sep 1, 2024
1 parent 5de04df commit dfe33f4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions spacelab_transmitter/spacelabtransmitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ def _build_widgets(self):
cell = Gtk.CellRendererText()
self.combobox_satellite.pack_start(cell, True)
self.combobox_satellite.add_attribute(cell, "text", 0)
self.combobox_satellite.connect("changed", self.on_combobox_satellite_changed)

# Preferences dialog
self.button_preferences = self.builder.get_object("button_preferences")
Expand Down Expand Up @@ -810,6 +811,10 @@ def on_switch_button_clicked(self, false, button):
self.button_deactivate_payload.set_sensitive(True)
self.button_get_payload_data.set_sensitive(True)

def on_combobox_satellite_changed(self, combobox):
modulation, frequency, baudrate, sync_word, protocol = self._get_link_info()
self.entry_carrier_frequency.set_text(str(int(frequency)))

def on_combobox_sdr_changed(self, combobox):
if self.combobox_sdr.get_active() == 0: # USRP
self.spinbutton_tx_gain.set_range(0, 90)
Expand Down
2 changes: 1 addition & 1 deletion spacelab_transmitter/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
__copyright__ = "Copyright The SpaceLab-Transmitter Contributors"
__credits__ = ["Gabriel Mariano Marcelino, Vitória Beatriz Bianchin"]
__license__ = "GPLv3"
__version__ = "0.4.12"
__version__ = "0.4.13"
__maintainer__ = "Gabriel Mariano Marcelino - PU5GMA"
__email__ = "gabriel.mm8@gmail.com"
__status__ = "Development"

0 comments on commit dfe33f4

Please sign in to comment.