[fix](trx-core): expose rig min tuning step and align UI tuning

Add min_freq_step_hz to RigCapabilities, set backend values, and make HTTP frontend parse suffix-less frequency input using the selected unit while snapping set/jog frequencies to rig step granularity.

Co-authored-by: Codex <codex@openai.com>
Signed-off-by: Stanislaw Grams <stanislawgrams@gmail.com>
This commit is contained in:
2026-02-13 00:17:16 +01:00
parent a7719bd7a9
commit 81890b15a8
11 changed files with 87 additions and 12 deletions
+1
View File
@@ -344,6 +344,7 @@ mod tests {
model: "Dummy".to_string(),
revision: "1".to_string(),
capabilities: RigCapabilities {
min_freq_step_hz: 1,
supported_bands: vec![Band {
low_hz: 7_000_000,
high_hz: 7_200_000,
+1
View File
@@ -37,6 +37,7 @@ impl DummyRig {
model: "dummy".to_string(),
revision: "1.0".to_string(),
capabilities: RigCapabilities {
min_freq_step_hz: 1,
supported_bands: vec![
Band {
low_hz: 1_800_000,
@@ -36,6 +36,7 @@ impl Ft450d {
model: "FT-450D".to_string(),
revision: "".to_string(),
capabilities: RigCapabilities {
min_freq_step_hz: 10,
supported_bands: vec![
// Transmit-capable amateur bands (HF + 6m)
Band {
@@ -37,6 +37,7 @@ impl Ft817 {
model: "FT-817".to_string(),
revision: "".to_string(),
capabilities: RigCapabilities {
min_freq_step_hz: 10,
supported_bands: vec![
// Transmit-capable amateur bands
Band {