mirror of https://github.com/g4klx/MMDVM.git
Merge branch 'pocsagcal'
This commit is contained in:
commit
9ccbb842bf
|
@ -20,13 +20,6 @@
|
||||||
#include "Globals.h"
|
#include "Globals.h"
|
||||||
#include "CalPOCSAG.h"
|
#include "CalPOCSAG.h"
|
||||||
|
|
||||||
// POCSAG 600 Hz Square Wave Test Pattern
|
|
||||||
q15_t square600Hz[] = {
|
|
||||||
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() :
|
CCalPOCSAG::CCalPOCSAG() :
|
||||||
m_state(POCSAGCAL_IDLE)
|
m_state(POCSAGCAL_IDLE)
|
||||||
|
@ -39,14 +32,10 @@ void CCalPOCSAG::process()
|
||||||
return;
|
return;
|
||||||
|
|
||||||
uint16_t space = io.getSpace();
|
uint16_t space = io.getSpace();
|
||||||
if (space <= 205U)
|
if (space <= 165U)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
io.write(STATE_POCSAG, square600Hz, 40U);
|
pocsagTX.writeByte(0xAAU);
|
||||||
io.write(STATE_POCSAG, square600Hz, 40U);
|
|
||||||
io.write(STATE_POCSAG, square600Hz, 40U);
|
|
||||||
io.write(STATE_POCSAG, square600Hz, 40U);
|
|
||||||
io.write(STATE_POCSAG, square600Hz, 40U);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
uint8_t CCalPOCSAG::write(const uint8_t* data, uint8_t length)
|
uint8_t CCalPOCSAG::write(const uint8_t* data, uint8_t length)
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2015,2016,2017,2018 by Jonathan Naylor G4KLX
|
* Copyright (C) 2015-2019 by Jonathan Naylor G4KLX
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -29,6 +29,8 @@ public:
|
||||||
|
|
||||||
uint8_t writeData(const uint8_t* data, uint8_t length);
|
uint8_t writeData(const uint8_t* data, uint8_t length);
|
||||||
|
|
||||||
|
void writeByte(uint8_t c);
|
||||||
|
|
||||||
void process();
|
void process();
|
||||||
|
|
||||||
void setTXDelay(uint8_t delay);
|
void setTXDelay(uint8_t delay);
|
||||||
|
@ -45,8 +47,6 @@ private:
|
||||||
uint16_t m_poLen;
|
uint16_t m_poLen;
|
||||||
uint16_t m_poPtr;
|
uint16_t m_poPtr;
|
||||||
uint16_t m_txDelay;
|
uint16_t m_txDelay;
|
||||||
|
|
||||||
void writeByte(uint8_t c);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue