Skip to content

Commit

Permalink
Adding the SpaceLab-Transmitter as an "satellite" option
Browse files Browse the repository at this point in the history
  • Loading branch information
mgm8 committed Jan 12, 2023
1 parent 7af4046 commit a587c38
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spacelab_decoder/data/satellites/spacelab-transmitter.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "SpaceLab Transmitter",
"name": "SpaceLab-Transmitter",
"links": [
{
"name": "Beacon",
Expand Down
8 changes: 8 additions & 0 deletions spacelab_decoder/spacelabdecoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@
_SAT_JSON_GOLDS_UFSC_SYSTEM = '/usr/share/spacelab_decoder/golds-ufsc.json'
_SAT_JSON_ALDEBARAN_1_LOCAL = os.path.abspath(os.path.dirname(__file__)) + '/data/satellites/aldebaran-1.json'
_SAT_JSON_ALDEBARAN_1_SYSTEM = '/usr/share/spacelab_decoder/aldebaran-1.json'
_SAT_JSON_SPACELAB_TXER_LOCAL = os.path.abspath(os.path.dirname(__file__)) + '/data/satellites/spacelab-transmitter.json'
_SAT_JSON_SPACELAB_TXER_SYSTEM = '/usr/share/spacelab_decoder/spacelab-transmitter.json'

_DEFAULT_CALLSIGN = 'PP5UF'
_DEFAULT_LOCATION = 'Florianópolis'
Expand Down Expand Up @@ -181,6 +183,7 @@ def _build_widgets(self):
self.liststore_satellite.append(["FloripaSat-1"])
self.liststore_satellite.append(["GOLDS-UFSC"])
self.liststore_satellite.append(["Aldebaran-1"])
self.liststore_satellite.append(["SpaceLab-Transmitter"])
self.combobox_satellite = self.builder.get_object("combobox_satellite")
cell = Gtk.CellRendererText()
self.combobox_satellite.pack_start(cell, True)
Expand Down Expand Up @@ -538,6 +541,11 @@ def _decode_packet(self, pkt):
sat_json = _SAT_JSON_ALDEBARAN_1_LOCAL
else:
sat_json = _SAT_JSON_ALDEBARAN_1_SYSTEM
elif self.combobox_satellite.get_active() == 3:
if os.path.isfile(_SAT_JSON_SPACELAB_TXER_LOCAL):
sat_json = _SAT_JSON_SPACELAB_TXER_LOCAL
else:
sat_json = _SAT_JSON_SPACELAB_TXER_SYSTEM
p = Packet(sat_json, pkt)
pkt_txt = pkt_txt + str(p)
pkt_txt = pkt_txt + "========================================================\n"
Expand Down
2 changes: 1 addition & 1 deletion spacelab_decoder/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
__copyright__ = "Copyright The SpaceLab-Decoder Contributors"
__credits__ = ["Gabriel Mariano Marcelino - PU5GMA"]
__license__ = "GPLv3"
__version__ = "0.3.17"
__version__ = "0.3.18"
__maintainer__ = "Gabriel Mariano Marcelino - PU5GMA"
__email__ = "gabriel.mm8@gmail.com"
__status__ = "Development"

0 comments on commit a587c38

Please sign in to comment.