quiet / libcorrect

C library for Convolutional codes and Reed-Solomon
BSD 3-Clause "New" or "Revised" License
362 stars 95 forks source link

why not give some simple examples demonstrate how to use the library? #9

Closed liudf0716 closed 6 years ago

brian-armstrong commented 7 years ago

Sure, that seems reasonable. Which part of the library are you attempting to use?

liudf0716 commented 7 years ago

FEC related? cause I search FEC and find this project but don't know how to use it quickly.

brian-armstrong commented 7 years ago

sure, I meant reed-solomon or convolutional codes?

i'll try to put some examples together soon. in the mean time, what you want to do is to create one of the objects (correct_reed_solomon_create or correct_convolutional_create), encode your message, send it through your lossy channel. then on the other side, create the same kind of object and decode the received bytes.

liudf0716 commented 7 years ago

@brian-armstrong thanks, I will try it.

racerxdl commented 6 years ago

Regarding the Viterbi part, my project has a C++ Class that wraps libcorrect, so it might serve as example.

https://github.com/opensatelliteproject/libsathelper/blob/master/includes/SatHelper/viterbi27.h https://github.com/opensatelliteproject/libsathelper/blob/master/src/viterbi27.cpp

It has encode / decode for CCSDS standard Viterbi (the k=7 r=1/2) and also some Bit Error Rate calculation.

racerxdl commented 6 years ago

Also forget, I have for ReedSolomon as well: https://github.com/opensatelliteproject/libsathelper/blob/master/includes/SatHelper/reedsolomon.h https://github.com/opensatelliteproject/libsathelper/blob/master/src/reedsolomon.cpp