[feat](trx-frontend-http): add auto tone and WPM detection to CW decoder
Add Auto checkboxes (checked by default) next to WPM and Tone inputs. Auto Tone uses a multi-bin Goertzel scan across 300-1200 Hz with stability tracking. Auto WPM collects on-durations in a rolling buffer and uses k-means-style clustering to separate dits from dahs. Unchecking Auto allows manual control. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Stanislaw Grams <stanislawgrams@gmail.com>
This commit is contained in:
@@ -151,8 +151,10 @@
|
||||
<div id="cw-signal-indicator" class="cw-signal-off"></div>
|
||||
</div>
|
||||
<div class="cw-config">
|
||||
<label>WPM <input type="number" id="cw-wpm" min="5" max="40" value="15" /></label>
|
||||
<label>Tone (Hz) <input type="number" id="cw-tone" min="300" max="1200" value="700" /></label>
|
||||
<label>WPM <input type="number" id="cw-wpm" min="5" max="40" value="15" readonly /></label>
|
||||
<label class="cw-auto-label"><input type="checkbox" id="cw-wpm-auto" checked /> Auto</label>
|
||||
<label>Tone (Hz) <input type="number" id="cw-tone" min="300" max="1200" value="700" readonly /></label>
|
||||
<label class="cw-auto-label"><input type="checkbox" id="cw-tone-auto" checked /> Auto</label>
|
||||
<label>Threshold <input type="range" id="cw-threshold" min="1" max="50" value="5" /><small id="cw-threshold-val">0.05</small></label>
|
||||
</div>
|
||||
<div id="cw-output"></div>
|
||||
|
||||
Reference in New Issue
Block a user