From ae2f73c12dda1a640c3081827b9df0c796617cc1 Mon Sep 17 00:00:00 2001 From: marshmellow42 Date: Fri, 19 Dec 2014 12:39:41 -0500 Subject: [PATCH 1/1] put ask demod and mandemod put ask demod and mandemod back until i have time to test it --- client/cmddata.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/client/cmddata.c b/client/cmddata.c index 93aaf953..1f8b9fcd 100644 --- a/client/cmddata.c +++ b/client/cmddata.c @@ -100,9 +100,9 @@ int Cmdaskdemod(const char *Cmd) } else { GraphBuffer[0] = c; } - //20% fuzz [marshmellow] - high=(int)(.8*high); - low=(int)(.8*low); + ////13% fuzz [marshmellow] + //high=(int)(0.87*high); + //low=(int)(0.87*low); for (i = 1; i < GraphTraceLen; ++i) { /* Transitions are detected at each peak * Transitions are either: @@ -112,10 +112,10 @@ int Cmdaskdemod(const char *Cmd) * low for long periods, others just reach the peak and go * down) */ - //[marhsmellow] changed == to >= for high and <= for low - if ((GraphBuffer[i] >= high) && (GraphBuffer[i - 1] == c)) { + //[marhsmellow] change == to >= for high and <= for low for fuzz + if ((GraphBuffer[i] == high) && (GraphBuffer[i - 1] == c)) { GraphBuffer[i] = 1 - c; - } else if ((GraphBuffer[i] <= low) && (GraphBuffer[i - 1] == (1 - c))){ + } else if ((GraphBuffer[i] == low) && (GraphBuffer[i - 1] == (1 - c))){ GraphBuffer[i] = c; } else { /* No transition */ -- 2.39.5