From 743ee0ab72d81209f1f583a95ace65ffdac12124 Mon Sep 17 00:00:00 2001 From: F5OEO Date: Sun, 13 Jan 2019 14:48:18 +0000 Subject: [PATCH] Correct frequency and deviation for new librpitx --- src/pocsag/pocsag.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/pocsag/pocsag.cpp b/src/pocsag/pocsag.cpp index 5399820..dd68f70 100644 --- a/src/pocsag/pocsag.cpp +++ b/src/pocsag/pocsag.cpp @@ -331,7 +331,8 @@ void SendFsk(uint64_t Freq,bool Inverted,int SR,bool debug,uint32_t *Message,int float Deviation=4500; int FiFoSize=12000; if(debug) fprintf(stderr,"Fifo Size = %d, Size = %d, Baud rate = %d\n",FiFoSize,Size,SR); - fskburst fsktest(Freq,SR,Deviation,14,FiFoSize); + fskburst fsktest(Freq-Deviation,SR,Deviation*2,14,FiFoSize,1,0.0); + unsigned char *TabSymbol=(unsigned char *)malloc(Size*32); int Sym=0; @@ -352,7 +353,7 @@ void SendFsk(uint64_t Freq,bool Inverted,int SR,bool debug,uint32_t *Message,int } if(debug) fprintf(stderr,"Symbols=%d\n",Sym); fsktest.SetSymbols(TabSymbol,Sym); - sleep(1); + /*for(i=0;i