FSK demodulation and obtention binary train
I am trying to do the demodulation of a specific signal present in a file. I charge the file, filter on my target signal, and then try to demodulate. It’s a FSK, and all the parameters in the code are good (I know the signal, I tried with an other program, it was perfectly demodulated). The filter is good too (I get my signal correcly saved when I re-save only my target signal). So the problem is that I am not getting the correct binary train, and I don’t understand why. I have a binary train, but it is not what I am supposed to have (the binary train I got is longer than what I am supposed to have, and is not correct).
Bellow the code :