mirror of https://github.com/g4klx/MMDVM.git
Remove KerchunkTX.
This commit is contained in:
parent
aab8f5469f
commit
ad77fd60fd
31
FM.cpp
31
FM.cpp
|
@ -41,7 +41,6 @@ m_callsignTimer(),
|
||||||
m_timeoutTimer(),
|
m_timeoutTimer(),
|
||||||
m_holdoffTimer(),
|
m_holdoffTimer(),
|
||||||
m_kerchunkTimer(),
|
m_kerchunkTimer(),
|
||||||
m_kerchunkTX(true),
|
|
||||||
m_ackMinTimer(),
|
m_ackMinTimer(),
|
||||||
m_ackDelayTimer(),
|
m_ackDelayTimer(),
|
||||||
m_hangTimer(),
|
m_hangTimer(),
|
||||||
|
@ -255,7 +254,7 @@ uint8_t CFM::setAck(const char* rfAck, uint8_t speed, uint16_t frequency, uint8_
|
||||||
return m_rfAck.setParams(rfAck, speed, frequency, level, level);
|
return m_rfAck.setParams(rfAck, speed, frequency, level, level);
|
||||||
}
|
}
|
||||||
|
|
||||||
uint8_t CFM::setMisc(uint16_t timeout, uint8_t timeoutLevel, uint8_t ctcssFrequency, uint8_t ctcssHighThreshold, uint8_t ctcssLowThreshold, uint8_t ctcssLevel, uint8_t kerchunkTime, bool kerchunkTX, uint8_t hangTime, bool useCOS, bool cosInvert, uint8_t rfAudioBoost, uint8_t maxDev, uint8_t rxLevel)
|
uint8_t CFM::setMisc(uint16_t timeout, uint8_t timeoutLevel, uint8_t ctcssFrequency, uint8_t ctcssHighThreshold, uint8_t ctcssLowThreshold, uint8_t ctcssLevel, uint8_t kerchunkTime, uint8_t hangTime, bool useCOS, bool cosInvert, uint8_t rfAudioBoost, uint8_t maxDev, uint8_t rxLevel)
|
||||||
{
|
{
|
||||||
m_useCOS = useCOS;
|
m_useCOS = useCOS;
|
||||||
m_cosInvert = cosInvert;
|
m_cosInvert = cosInvert;
|
||||||
|
@ -265,7 +264,6 @@ uint8_t CFM::setMisc(uint16_t timeout, uint8_t timeoutLevel, uint8_t ctcssFreque
|
||||||
m_timeoutTimer.setTimeout(timeout, 0U);
|
m_timeoutTimer.setTimeout(timeout, 0U);
|
||||||
|
|
||||||
m_kerchunkTimer.setTimeout(kerchunkTime, 0U);
|
m_kerchunkTimer.setTimeout(kerchunkTime, 0U);
|
||||||
m_kerchunkTX = kerchunkTX;
|
|
||||||
|
|
||||||
m_hangTimer.setTimeout(hangTime, 0U);
|
m_hangTimer.setTimeout(hangTime, 0U);
|
||||||
|
|
||||||
|
@ -420,7 +418,7 @@ void CFM::listeningStateDuplex(bool validRFSignal, bool validExtSignal)
|
||||||
sendCallsign();
|
sendCallsign();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m_state == FS_RELAYING_RF || (m_state == FS_KERCHUNK_RF && m_kerchunkTX)) {
|
if (m_state == FS_RELAYING_RF || m_state == FS_KERCHUNK_RF) {
|
||||||
insertSilence(50U);
|
insertSilence(50U);
|
||||||
|
|
||||||
beginRelaying();
|
beginRelaying();
|
||||||
|
@ -447,7 +445,7 @@ void CFM::listeningStateDuplex(bool validRFSignal, bool validExtSignal)
|
||||||
sendCallsign();
|
sendCallsign();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m_state == FS_RELAYING_EXT || (m_state == FS_KERCHUNK_EXT && m_kerchunkTX)) {
|
if (m_state == FS_RELAYING_EXT || m_state == FS_KERCHUNK_EXT) {
|
||||||
insertSilence(50U);
|
insertSilence(50U);
|
||||||
|
|
||||||
beginRelaying();
|
beginRelaying();
|
||||||
|
@ -493,19 +491,6 @@ void CFM::kerchunkRFStateDuplex(bool validSignal)
|
||||||
DEBUG1("State to RELAYING_RF");
|
DEBUG1("State to RELAYING_RF");
|
||||||
m_state = FS_RELAYING_RF;
|
m_state = FS_RELAYING_RF;
|
||||||
m_kerchunkTimer.stop();
|
m_kerchunkTimer.stop();
|
||||||
if (!m_kerchunkTX) {
|
|
||||||
insertSilence(50U);
|
|
||||||
|
|
||||||
beginRelaying();
|
|
||||||
|
|
||||||
m_callsignTimer.start();
|
|
||||||
|
|
||||||
io.setDecode(true);
|
|
||||||
io.setADCDetection(true);
|
|
||||||
|
|
||||||
m_statusTimer.start();
|
|
||||||
serial.writeFMStatus(m_state);
|
|
||||||
}
|
|
||||||
if (m_callsignAtStart && m_callsignAtLatch) {
|
if (m_callsignAtStart && m_callsignAtLatch) {
|
||||||
sendCallsign();
|
sendCallsign();
|
||||||
m_callsignTimer.start();
|
m_callsignTimer.start();
|
||||||
|
@ -649,16 +634,6 @@ void CFM::kerchunkExtStateDuplex(bool validSignal)
|
||||||
DEBUG1("State to RELAYING_EXT");
|
DEBUG1("State to RELAYING_EXT");
|
||||||
m_state = FS_RELAYING_EXT;
|
m_state = FS_RELAYING_EXT;
|
||||||
m_kerchunkTimer.stop();
|
m_kerchunkTimer.stop();
|
||||||
if (!m_kerchunkTX) {
|
|
||||||
insertSilence(50U);
|
|
||||||
|
|
||||||
beginRelaying();
|
|
||||||
|
|
||||||
m_callsignTimer.start();
|
|
||||||
|
|
||||||
m_statusTimer.start();
|
|
||||||
serial.writeFMStatus(m_state);
|
|
||||||
}
|
|
||||||
if (m_callsignAtStart && m_callsignAtLatch) {
|
if (m_callsignAtStart && m_callsignAtLatch) {
|
||||||
sendCallsign();
|
sendCallsign();
|
||||||
m_callsignTimer.start();
|
m_callsignTimer.start();
|
||||||
|
|
3
FM.h
3
FM.h
|
@ -60,7 +60,7 @@ public:
|
||||||
|
|
||||||
uint8_t setCallsign(const char* callsign, uint8_t speed, uint16_t frequency, uint8_t time, uint8_t holdoff, uint8_t highLevel, uint8_t lowLevel, bool callsignAtStart, bool callsignAtEnd, bool callsignAtLatch);
|
uint8_t setCallsign(const char* callsign, uint8_t speed, uint16_t frequency, uint8_t time, uint8_t holdoff, uint8_t highLevel, uint8_t lowLevel, bool callsignAtStart, bool callsignAtEnd, bool callsignAtLatch);
|
||||||
uint8_t setAck(const char* rfAck, uint8_t speed, uint16_t frequency, uint8_t minTime, uint16_t delay, uint8_t level);
|
uint8_t setAck(const char* rfAck, uint8_t speed, uint16_t frequency, uint8_t minTime, uint16_t delay, uint8_t level);
|
||||||
uint8_t setMisc(uint16_t timeout, uint8_t timeoutLevel, uint8_t ctcssFrequency, uint8_t ctcssHighThreshold, uint8_t ctcssLowThreshold, uint8_t ctcssLevel, uint8_t kerchunkTime, bool kerchunkTX, uint8_t hangTime, bool useCOS, bool cosInvert, uint8_t rfAudioBoost, uint8_t maxDev, uint8_t rxLevel);
|
uint8_t setMisc(uint16_t timeout, uint8_t timeoutLevel, uint8_t ctcssFrequency, uint8_t ctcssHighThreshold, uint8_t ctcssLowThreshold, uint8_t ctcssLevel, uint8_t kerchunkTime, uint8_t hangTime, bool useCOS, bool cosInvert, uint8_t rfAudioBoost, uint8_t maxDev, uint8_t rxLevel);
|
||||||
uint8_t setExt(const char* ack, uint8_t audioBoost, uint8_t speed, uint16_t frequency, uint8_t level);
|
uint8_t setExt(const char* ack, uint8_t audioBoost, uint8_t speed, uint16_t frequency, uint8_t level);
|
||||||
|
|
||||||
uint8_t getSpace() const;
|
uint8_t getSpace() const;
|
||||||
|
@ -82,7 +82,6 @@ private:
|
||||||
CFMTimer m_timeoutTimer;
|
CFMTimer m_timeoutTimer;
|
||||||
CFMTimer m_holdoffTimer;
|
CFMTimer m_holdoffTimer;
|
||||||
CFMTimer m_kerchunkTimer;
|
CFMTimer m_kerchunkTimer;
|
||||||
bool m_kerchunkTX;
|
|
||||||
CFMTimer m_ackMinTimer;
|
CFMTimer m_ackMinTimer;
|
||||||
CFMTimer m_ackDelayTimer;
|
CFMTimer m_ackDelayTimer;
|
||||||
CFMTimer m_hangTimer;
|
CFMTimer m_hangTimer;
|
||||||
|
|
|
@ -109,7 +109,7 @@ const uint8_t MMDVM_DEBUG5 = 0xF5U;
|
||||||
#define HW_TYPE "MMDVM"
|
#define HW_TYPE "MMDVM"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define DESCRIPTION "20200706 (D-Star/DMR/System Fusion/P25/NXDN/POCSAG/FM/AX.25)"
|
#define DESCRIPTION "20200707 (D-Star/DMR/System Fusion/P25/NXDN/POCSAG/FM/AX.25)"
|
||||||
|
|
||||||
#if defined(GITVERSION)
|
#if defined(GITVERSION)
|
||||||
#define concat(h, a, b, c) h " " a " " b " GitID #" c ""
|
#define concat(h, a, b, c) h " " a " " b " GitID #" c ""
|
||||||
|
@ -467,13 +467,12 @@ uint8_t CSerialPort::setFMParams3(const uint8_t* data, uint16_t length)
|
||||||
|
|
||||||
bool useCOS = (data[8U] & 0x01U) == 0x01U;
|
bool useCOS = (data[8U] & 0x01U) == 0x01U;
|
||||||
bool cosInvert = (data[8U] & 0x02U) == 0x02U;
|
bool cosInvert = (data[8U] & 0x02U) == 0x02U;
|
||||||
bool kerchunkTX = (data[8U] & 0x04U) == 0x04U;
|
|
||||||
|
|
||||||
uint8_t rfAudioBoost = data[9U];
|
uint8_t rfAudioBoost = data[9U];
|
||||||
uint8_t maxDev = data[10U];
|
uint8_t maxDev = data[10U];
|
||||||
uint8_t rxLevel = data[11U];
|
uint8_t rxLevel = data[11U];
|
||||||
|
|
||||||
return fm.setMisc(timeout, timeoutLevel, ctcssFrequency, ctcssHighThreshold, ctcssLowThreshold, ctcssLevel, kerchunkTime, kerchunkTX, hangTime, useCOS, cosInvert, rfAudioBoost, maxDev, rxLevel);
|
return fm.setMisc(timeout, timeoutLevel, ctcssFrequency, ctcssHighThreshold, ctcssLowThreshold, ctcssLevel, kerchunkTime, hangTime, useCOS, cosInvert, rfAudioBoost, maxDev, rxLevel);
|
||||||
}
|
}
|
||||||
|
|
||||||
uint8_t CSerialPort::setFMParams4(const uint8_t* data, uint16_t length)
|
uint8_t CSerialPort::setFMParams4(const uint8_t* data, uint16_t length)
|
||||||
|
|
Loading…
Reference in New Issue