mirror of
https://github.com/g4klx/MMDVM.git
synced 2026-10-23 11:05:00 +02:00
Do the POCSAG calibration in a different way.
This commit is contained in:
+2
-13
@@ -20,13 +20,6 @@
|
||||
#include "Globals.h"
|
||||
#include "CalPOCSAG.h"
|
||||
|
||||
// POCSAG 600 Hz Test Pattern
|
||||
q15_t squreHz[] = {
|
||||
950, 950, 950, 950, 950, 950, 950, 950, 950,
|
||||
950, 950, 950, 950, 950, 950, 950, 950, 950,
|
||||
-950, -950, -950, -950, -950, -950, -950, -950, -950,
|
||||
-950, -950, -950, -950, -950, -950, -950, -950, -950,
|
||||
};
|
||||
|
||||
CCalPOCSAG::CCalPOCSAG() :
|
||||
m_state(POCSAGCAL_IDLE)
|
||||
@@ -39,14 +32,10 @@ void CCalPOCSAG::process()
|
||||
return;
|
||||
|
||||
uint16_t space = io.getSpace();
|
||||
if (space <= 205U)
|
||||
if (space <= 165U)
|
||||
return;
|
||||
|
||||
io.write(STATE_POCSAG, squreHz, 40U);
|
||||
io.write(STATE_POCSAG, squreHz, 40U);
|
||||
io.write(STATE_POCSAG, squreHz, 40U);
|
||||
io.write(STATE_POCSAG, squreHz, 40U);
|
||||
io.write(STATE_POCSAG, squreHz, 40U);
|
||||
pocsagTX.writeByte(0xAAU);
|
||||
}
|
||||
|
||||
uint8_t CCalPOCSAG::write(const uint8_t* data, uint8_t length)
|
||||
|
||||
Reference in New Issue
Block a user