[op25-dev] need help using extract()

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/op25-dev@lists.osmocom.org/.

Matt D md123 at nycap.rr.com
Thu Dec 5 17:36:34 UTC 2013


> I am pretty sure there is something wrong with how I am using the
> yank(), but I have been able to find something else to try. Any help
> will be much appreciated. Thanks.
> 
OK so I changed how I am getting the bits and it appears that I am
getting the correct bits:

LDU1 LCW Data--------------------------------------------
-----------------------------------------------------------
Encoded LCW:
  LCF:  00000000
  MFID: 00000000
  TGID: 0000000000000001
  Source ID: 010011000100110101100010

  Hamming decode:
    LCF:  00000000
    MFID: 00000000
    TGID: 0000000000000001
    Source ID: 010011000100110101100010

    RS decode:
      LCF:  00000000
      MFID: 00000000
      TGID: 0000000000000001
      Source ID: 010011000100110101100010
------------------------------------------------------------

but now op25 dies with this error:

(gdb) frame 0
#0  extract<std::vector<bool, std::allocator<bool> > > (in=...,
    bits=bits at entry=0xa322bce0, bits_sz=bits_sz at entry=8) at
./op25_yank.h:109
109	      x =  (x << 1) | (in[bits[i]] ? 1 : 0);

The first argument of extract() takes a vector,  so i start by filling a
vector typed bit_vector. And then to get that vector I call a function
typed cons_bit_vector that returns that vector.  This is how i see it is
done in abstract_data_unit.cc with the function frame_body().  Can
anyone please help me figure out what I am dong wrong here?  any help
will be much appreciated.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/op25-dev/attachments/20131205/bf31a61b/attachment.htm>


More information about the op25-dev mailing list