提交 bc13e944 authored 作者: Steve Underwood's avatar Steve Underwood

Changes to the signaling tone detector to detect concurrent 2400Hz + 2600Hz

tones. This passes voice immunity and other key tests, but it bounces a bit
when transitions like 2400 -> 2400+2600 -> 2600 occur. Transitions between
tone off and tone on are clean.
上级 c8075027
......@@ -169,6 +169,8 @@ struct sig_tone_rx_state_s
int current_rx_tone;
/*! \brief The timeout for switching from the high level to low level tone detector. */
int high_low_timer;
/*! \brief ??? */
int current_notch_filter;
struct
{
......@@ -186,11 +188,7 @@ struct sig_tone_rx_state_s
/*! \brief The power output of the notch. */
power_meter_t power;
/*! \brief Persistence check for tone present */
int tone_persistence_timeout;
/*! \brief TRUE if the tone is declared to be present */
int tone_present;
} tone[2];
} tone[3];
#if defined(SPANDSP_USE_FIXED_POINT)
/*! \brief The z's for the weighting/bandpass filter. */
......@@ -202,6 +200,11 @@ struct sig_tone_rx_state_s
/*! \brief The output power of the flat (unfiltered or flat filtered) path. */
power_meter_t flat_power;
/*! \brief Persistence check for tone present */
int tone_persistence_timeout;
/*! \brief The tone pattern on the last audio sample */
int last_sample_tone_present;
/*! \brief The minimum reading from the power meter for detection in flat mode */
int32_t flat_detection_threshold;
/*! \brief The minimum reading from the power meter for detection in sharp mode */
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论