Skip to content

Commit

Permalink
update licence info
Browse files Browse the repository at this point in the history
  • Loading branch information
lofaldli committed Jun 15, 2016
1 parent 0fca366 commit 2b96ec8
Show file tree
Hide file tree
Showing 11 changed files with 103 additions and 21 deletions.
2 changes: 1 addition & 1 deletion include/ccsds/ccsds_decoder.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* -*- c++ -*- */
/*
* Copyright 2016 <+YOU OR YOUR COMPANY+>.
* Copyright 2016 André Løfaldli.
*
* This is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion include/ccsds/ccsds_encoder.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* -*- c++ -*- */
/*
* Copyright 2016 <+YOU OR YOUR COMPANY+>.
* Copyright 2016 André Løfaldli.
*
* This is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down
21 changes: 21 additions & 0 deletions lib/ccsds.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,24 @@
/* -*- c++ -*- */
/*
* Copyright 2016 André Løfaldli.
*
* This is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this software; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street,
* Boston, MA 02110-1301, USA.
*/


#ifndef __CCSDS_H__
#define __CCSDS_H__

Expand Down
2 changes: 1 addition & 1 deletion lib/ccsds_decoder_impl.cc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* -*- c++ -*- */
/*
* Copyright 2016 <+YOU OR YOUR COMPANY+>.
* Copyright 2016 André Løfaldli.
*
* This is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion lib/ccsds_decoder_impl.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* -*- c++ -*- */
/*
* Copyright 2016 <+YOU OR YOUR COMPANY+>.
* Copyright 2016 André Løfaldli.
*
* This is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion lib/ccsds_encoder_impl.cc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* -*- c++ -*- */
/*
* Copyright 2016 <+YOU OR YOUR COMPANY+>.
* Copyright 2016 André Løfaldli.
*
* This is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion lib/ccsds_encoder_impl.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* -*- c++ -*- */
/*
* Copyright 2016 <+YOU OR YOUR COMPANY+>.
* Copyright 2016 André Løfaldli.
*
* This is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down
20 changes: 20 additions & 0 deletions lib/reed_solomon.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
/* -*- c++ -*- */
/*
* Copyright 2016 André Løfaldli.
*
* This is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this software; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street,
* Boston, MA 02110-1301, USA.
*/

#include "reed_solomon.h"

#include <stdint.h>
Expand Down
21 changes: 21 additions & 0 deletions lib/reed_solomon.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,24 @@
/* -*- c++ -*- */
/*
* Copyright 2016 André Løfaldli.
*
* This is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this software; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street,
* Boston, MA 02110-1301, USA.
*/


#ifndef INCLUDED_REED_SOLOMON_H
#define INCLUDED_REED_SOLOMON_H

Expand Down
12 changes: 6 additions & 6 deletions python/qa_ccsds_decoder.py
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2016 <+YOU OR YOUR COMPANY+>.
#
#
# Copyright 2016 André Løfaldli.
#
# This is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
#
#
# This software is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
#
# You should have received a copy of the GNU General Public License
# along with this software; see the file COPYING. If not, write to
# the Free Software Foundation, Inc., 51 Franklin Street,
# Boston, MA 02110-1301, USA.
#
#

from gnuradio import gr, gr_unittest
from gnuradio import blocks
Expand Down
38 changes: 29 additions & 9 deletions python/qa_ccsds_encoder.py
Original file line number Diff line number Diff line change
@@ -1,27 +1,28 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2016 <+YOU OR YOUR COMPANY+>.
#
#
# Copyright 2016 André Løfaldli.
#
# This is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
#
#
# This software is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
#
# You should have received a copy of the GNU General Public License
# along with this software; see the file COPYING. If not, write to
# the Free Software Foundation, Inc., 51 Franklin Street,
# Boston, MA 02110-1301, USA.
#
#

from gnuradio import gr, gr_unittest
from gnuradio import blocks
import ccsds_swig as ccsds
import pmt, time

class qa_ccsds_encoder (gr_unittest.TestCase):

Expand All @@ -32,9 +33,28 @@ def tearDown (self):
self.tb = None

def test_001_t (self):
# set up fg
self.tb.run ()
# check data
port = pmt.intern("in")
enc = ccsds.ccsds_encoder()
dec = ccsds.ccsds_decoder()
dbg = blocks.message_debug()
self.tb.connect(enc, dec)
self.tb.msg_connect(dec, "out", dbg, "store")

src_data = [x%256 for x in range(1115)]
src_vec = pmt.init_u8vector(len(src_data), src_data)
msg = pmt.cons(pmt.PMT_NIL, src_vec)

self.tb.start()
enc.to_basic_block()._post(port, msg)

while dbg.num_messages() < 1:
time.sleep(0.1)

self.tb.stop()
self.tb.wait()

mgs2 = dbg.get_message(0)
print pmt.cdr(msg)


if __name__ == '__main__':
Expand Down

0 comments on commit 2b96ec8

Please sign in to comment.