330 WIP - implements the new data-directed symbol timing and phase

error calculator.  After increasing the gain for symbol timing, this
new symbol evaluator class seems to track the signal very accurately
despite lots of noise and ISI.
This commit is contained in:
Denny
2018-03-04 11:42:23 -05:00
parent b563f2d11b
commit 45a6c5a0b6
9 changed files with 58 additions and 76 deletions

View File

@@ -437,17 +437,14 @@ public class Complex implements Serializable
public static void main(String[] args)
{
double angle = Math.PI; //180 degrees
Complex ROTATE_FROM_MINUS_45 = Complex.fromAngle(1.0 * Math.PI / 4.0);
Complex ROTATE_FROM_PLUS_135 = Complex.fromAngle(-3.0 * Math.PI / 4.0);
mLog.debug("REF: " + ROTATE_FROM_MINUS_45.toString());
Complex s1 = new Complex((float)Math.sin(angle), (float)Math.cos(angle));
Complex tap = new Complex(1.0f, -0.1f);
Complex convolved = Complex.multiply(s1, tap);
mLog.debug("s: " + s1.toString() +
" t: " + tap.toString() +
" convolved: " + convolved.toString());
Complex symbol = new Complex(0.7665009f, -0.6422432f);
mLog.debug("SYM: " + symbol.toString());
symbol.multiply(ROTATE_FROM_MINUS_45);
mLog.debug("DER: " + symbol.toString());
}
}