mirror of https://github.com/g4klx/MMDVM.git
Rescale some of the tone levels.
This commit is contained in:
parent
242bc7b322
commit
9fab1e0823
8
FM.h
8
FM.h
|
@ -71,9 +71,9 @@ private:
|
|||
CFMTimer m_ackMinTimer;
|
||||
CFMTimer m_ackDelayTimer;
|
||||
CFMTimer m_hangTimer;
|
||||
CFMDirectFormI m_filterStage1;
|
||||
CFMDirectFormI m_filterStage2;
|
||||
CFMDirectFormI m_filterStage3;
|
||||
CFMDirectFormI m_filterStage1;
|
||||
CFMDirectFormI m_filterStage2;
|
||||
CFMDirectFormI m_filterStage3;
|
||||
|
||||
void stateMachine(bool validSignal, uint8_t length);
|
||||
void listeningState(bool validSignal);
|
||||
|
@ -86,8 +86,6 @@ private:
|
|||
|
||||
void sendCallsign();
|
||||
void beginRelaying();
|
||||
|
||||
q15_t filter(q15_t sample);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -106,7 +106,7 @@ uint8_t CFMCTCSSTX::setParams(uint8_t frequency, uint8_t level)
|
|||
|
||||
q15_t arg = 0;
|
||||
for (uint16_t i = 0U; i < m_length; i++) {
|
||||
q31_t value = ::arm_sin_q15(arg) * q15_t(level * 128);
|
||||
q31_t value = ::arm_sin_q15(arg) * q15_t(level * 1280);
|
||||
m_values[i] = q15_t(__SSAT((value >> 15), 16));
|
||||
|
||||
arg += entry->increment;
|
||||
|
|
|
@ -111,8 +111,8 @@ uint8_t CFMKeyer::setParams(const char* text, uint8_t speed, uint16_t frequency,
|
|||
}
|
||||
}
|
||||
|
||||
m_highLevel = q15_t(highLevel * 128);
|
||||
m_lowLevel = q15_t(lowLevel * 128);
|
||||
m_highLevel = q15_t(highLevel);
|
||||
m_lowLevel = q15_t(lowLevel);
|
||||
|
||||
m_dotLen = 24000U / speed; // In samples
|
||||
|
||||
|
|
Loading…
Reference in New Issue