[fix](trx-ft8): align decode result layout
Co-authored-by: Codex <codex@openai.com> Signed-off-by: Stanislaw Grams <stanislawgrams@gmail.com>
This commit is contained in:
@@ -11,10 +11,12 @@ const F_MAX_HZ: f32 = 3000.0;
|
||||
const TIME_OSR: i32 = 2;
|
||||
const FREQ_OSR: i32 = 2;
|
||||
|
||||
const FTX_MAX_MESSAGE_LENGTH: usize = 35;
|
||||
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
struct Ft8DecodeResultRaw {
|
||||
text: [libc::c_char; 64],
|
||||
text: [libc::c_char; FTX_MAX_MESSAGE_LENGTH],
|
||||
snr_db: c_float,
|
||||
dt_s: c_float,
|
||||
freq_hz: c_float,
|
||||
|
||||
@@ -694,15 +694,6 @@ pub async fn run_ft8_decoder(
|
||||
Ok(dur) => dur.as_millis() as i64,
|
||||
Err(_) => 0,
|
||||
};
|
||||
let base_hz = match &state.status.freq.hz {
|
||||
hz => *hz as f32,
|
||||
};
|
||||
info!(
|
||||
"FT8 decode: base_hz={} offset_hz={} msg=\"{}\"",
|
||||
base_hz,
|
||||
res.freq_hz,
|
||||
res.text
|
||||
);
|
||||
let msg = Ft8Message {
|
||||
ts_ms,
|
||||
snr_db: res.snr_db,
|
||||
|
||||
Reference in New Issue
Block a user