- //PSK2?\r
- // if (!BiphaseRawDecode("0",FALSE) && test()) {\r
- // tests[++hits].modulation = DEMOD_BI;\r
- // tests[hits].inversed = FALSE;\r
- //}\r
- // if (!BiphaseRawDecode("1",FALSE) && test()) {\r
- // tests[++hits].modulation = DEMOD_BI;\r
- // tests[hits].inversed = TRUE;\r
- // }\r
+\r
+ //PSK2\r
+ if ( PSKDemod("0 0 1", FALSE)) {\r
+ psk1TOpsk2(DemodBuffer, DemodBufferLen);\r
+ if (test(DEMOD_PSK2, &tests[hits].offset)){\r
+ tests[hits].modulation = DEMOD_PSK2;\r
+ tests[hits].inversed = FALSE;\r
+ ++hits;\r
+ }\r
+ }\r
+ if ( PSKDemod("0 1 1", FALSE)) {\r
+ psk1TOpsk2(DemodBuffer, DemodBufferLen);\r
+ if (test(DEMOD_PSK2, &tests[hits].offset)){\r
+ tests[hits].modulation = DEMOD_PSK2;\r
+ tests[hits].inversed = TRUE;\r
+ ++hits;\r
+ }\r
+ }\r
+\r
+ /* DEPENDANT ON NEW CODE IN MARSHMELLOWS pull request\r
+ //biphase //offset, clock, invert, maxErr\r
+ if ( ASKbiphaseDemod("0 0 0 1", FALSE) && test(DEMOD_BI, &tests[hits].offset) ) {\r
+ tests[hits].modulation = DEMOD_BI;\r
+ tests[hits].inversed = FALSE;\r
+ ++hits;\r
+ }\r
+ if ( ASKbiphaseDemod("0 0 1 1", FALSE) && test(DEMOD_BI, &tests[hits].offset) ) {\r
+ tests[hits].modulation = DEMOD_BI;\r
+ tests[hits].inversed = TRUE;\r
+ ++hits;\r
+ }\r
+ */\r