From f6b530d184e425852d9f3b4606014844afb836f1 Mon Sep 17 00:00:00 2001 From: Rajan Patel Date: Sun, 16 Jun 2024 07:50:00 -0400 Subject: [PATCH] add frequency and signal level to acars output (#113) * add channelized frequency and signal level to acars output * don't channelize --- iridiumtk/reassembler/ida.py | 1 + iridiumtk/reassembler/sbd.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/iridiumtk/reassembler/ida.py b/iridiumtk/reassembler/ida.py index 0938146..177be65 100755 --- a/iridiumtk/reassembler/ida.py +++ b/iridiumtk/reassembler/ida.py @@ -63,6 +63,7 @@ def process(self,m): self.otime=m.time self.odata=m.data self.ofreq=m.frequency + self.olevel=m.level ok=False for (idx,(freq,time,ctr,dat,cont,ul)) in enumerate(self.buf[:]): diff --git a/iridiumtk/reassembler/sbd.py b/iridiumtk/reassembler/sbd.py index f8564e3..d72f3b7 100755 --- a/iridiumtk/reassembler/sbd.py +++ b/iridiumtk/reassembler/sbd.py @@ -365,6 +365,8 @@ def parity7(data): # that we want to include in the output. For example, we could include the raw SBD message in the output. # Or possibly other embedded modes if they are present in the SBD message. + out['freq'] = self.ofreq + out['level'] = self.olevel out['header'] = q.hdr.hex() print(json.dumps(out), file=outfile)