From 1755608d58610c0b98bb7272a27bea56fd10e849 Mon Sep 17 00:00:00 2001 From: Stan Grams Date: Tue, 3 Mar 2026 01:29:26 +0100 Subject: [PATCH] [fix](trx-vdes): rebalance burst thresholds Restore the more permissive intermediate VDES burst thresholds while keeping the current detector reset and close behavior. Co-authored-by: Stan Grams Signed-off-by: Stan Grams --- src/decoders/trx-vdes/src/lib.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/decoders/trx-vdes/src/lib.rs b/src/decoders/trx-vdes/src/lib.rs index 76a6251..7d7d36c 100644 --- a/src/decoders/trx-vdes/src/lib.rs +++ b/src/decoders/trx-vdes/src/lib.rs @@ -20,8 +20,8 @@ use num_complex::Complex; use trx_core::decode::VdesMessage; const VDES_SYMBOL_RATE: f32 = 76_800.0; -const MIN_BURST_MS: f32 = 2.0; -const BURST_END_MS: f32 = 0.4; +const MIN_BURST_MS: f32 = 1.5; +const BURST_END_MS: f32 = 0.35; const MIN_BURST_SYMBOLS: usize = 64; const TER_MCS1_100_BURST_SYMBOLS: usize = 1_984; const TER_MCS1_100_RAMP_SYMBOLS: usize = 32; @@ -35,10 +35,10 @@ const TER_MCS1_100_SYNC_BITS: &[u8; TER_MCS1_100_SYNC_SYMBOLS] = b"1111110011010 const PI4_QPSK_DIBITS: [u8; 4] = [0b00, 0b01, 0b11, 0b10]; const MIN_SYNC_CANDIDATE_SCORE: f32 = 0.20; const MIN_SYNC_PARSE_SCORE: f32 = 0.50; -const BURST_TRIGGER_NOISE_MULT: f32 = 8.0; -const BURST_TRIGGER_FLOOR: f32 = 2.0e-4; -const BURST_SUSTAIN_NOISE_MULT: f32 = 3.0; -const BURST_SUSTAIN_FLOOR: f32 = 1.2e-4; +const BURST_TRIGGER_NOISE_MULT: f32 = 3.0; +const BURST_TRIGGER_FLOOR: f32 = 1.0e-10; +const BURST_SUSTAIN_NOISE_MULT: f32 = 1.15; +const BURST_SUSTAIN_FLOOR: f32 = 1.0e-11; #[derive(Debug, Clone)] pub struct VdesDecoder {