1st attempt to send 600Hz sine wave

This commit is contained in:
phl0 2019-01-23 16:23:45 +01:00
parent 580ba0b536
commit 461182bf60
No known key found for this signature in database
GPG Key ID: 48EA1E640798CA9A
2 changed files with 4 additions and 2 deletions

View File

@ -45,8 +45,8 @@ void CCalPOCSAG::process()
switch (m_state) {
case POCSAGCAL_TX:
//pocsagTX.writeData(POCSAG_CAL[m_audioSeq], POCSAG_FRAME_LENGTH_BYTES + 1U);
m_audioSeq = (m_audioSeq + 1U) % 4U;
pocsagTX.writeData((uint8_t) &sine600Hz[m_audioSeq], 40U);
m_audioSeq++;
if(!m_transmit)
m_state = POCSAGCAL_IDLE;
break;

View File

@ -617,6 +617,8 @@ void CSerialPort::process()
err = calP25.write(m_buffer + 3U, m_len - 3U);
if (m_modemState == STATE_NXDNCAL1K)
err = calNXDN.write(m_buffer + 3U, m_len - 3U);
if (m_modemState == STATE_POCSAGCAL)
err = calPOCSAG.write(m_buffer + 3U, m_len - 3U);
if (err == 0U) {
sendACK();
} else {