From c5fba04747ddb6309cfd16af1a490f59ec01d309 Mon Sep 17 00:00:00 2001 From: Michael Black W9MDB Date: Tue, 9 Mar 2021 08:02:35 -0600 Subject: [PATCH] Fix STRENGHT report for ftdx101d and ftdx101mp https://github.com/Hamlib/Hamlib/issues/594 --- rigs/yaesu/ftdx101.c | 25 ++----------------------- rigs/yaesu/ftdx101.h | 17 +++++++++++++++++ rigs/yaesu/ftdx101mp.c | 4 ++-- 3 files changed, 21 insertions(+), 25 deletions(-) diff --git a/rigs/yaesu/ftdx101.c b/rigs/yaesu/ftdx101.c index 0e73d39a4..3587f5d1f 100644 --- a/rigs/yaesu/ftdx101.c +++ b/rigs/yaesu/ftdx101.c @@ -37,27 +37,6 @@ #include "newcat.h" #include "ftdx101.h" -#define FTDX101D_STR_CAL { 16, \ - { \ - { 0x00, -54 }, /* S0 */ \ - { 0x01, -48 }, \ - { 0x02, -42 }, \ - { 0x03, -36 }, \ - { 0x04, -30 }, \ - { 0x05, -24 }, \ - { 0x06, -18 }, \ - { 0x07, -12 }, \ - { 0x08, -6 }, \ - { 0x09, 0 }, /* S9 */ \ - { 0x0A, 10 }, /* +10 */ \ - { 0x0B, 20 }, /* +20 */ \ - { 0x0C, 30 }, /* +30 */ \ - { 0x0D, 40 }, /* +40 */ \ - { 0x0E, 50 }, /* +50 */ \ - { 0x0F, 60 } /* +60 */ \ - } } - - const struct newcat_priv_caps ftdx101d_priv_caps = { .roofing_filter_count = 6, @@ -97,7 +76,7 @@ const struct rig_caps ftdx101d_caps = RIG_MODEL(RIG_MODEL_FTDX101D), .model_name = "FTDX-101D", .mfg_name = "Yaesu", - .version = NEWCAT_VER ".10", + .version = NEWCAT_VER ".11", .copyright = "LGPL", .status = RIG_STATUS_STABLE, .rig_type = RIG_TYPE_TRANSCEIVER, @@ -139,7 +118,7 @@ const struct rig_caps ftdx101d_caps = .bank_qty = 0, .chan_desc_sz = 0, .rfpower_meter_cal = FTDX101D_RFPOWER_METER_WATTS_CAL, - .str_cal = FTDX101D_RFPOWER_METER_CAL, + .str_cal = FTDX101D_STR_CAL, .swr_cal = FTDX101D_SWR_CAL, .str_cal = FTDX101D_STR_CAL, .chan_list = { diff --git a/rigs/yaesu/ftdx101.h b/rigs/yaesu/ftdx101.h index 198bb2f94..78acea891 100644 --- a/rigs/yaesu/ftdx101.h +++ b/rigs/yaesu/ftdx101.h @@ -148,6 +148,23 @@ } \ } +#define FTDX101D_STR_CAL { 12, \ + { \ + { 0, -60 }, /* S0 */ \ + { 17, -54 }, /* S0 */ \ + { 25, -48 }, \ + { 34, -42 }, \ + { 51, -36 }, \ + { 68, -30 }, \ + { 85, -24 }, \ + { 102, -18 }, \ + { 119, -12 }, \ + { 136, -6 }, \ + { 160, 0 }, /* S9 */ \ + { 255, 60 }, /* +60 */ \ + } } + + /* * Other features (used by rig_caps) */ diff --git a/rigs/yaesu/ftdx101mp.c b/rigs/yaesu/ftdx101mp.c index 9ff6a9ecd..a5dfb7c7d 100644 --- a/rigs/yaesu/ftdx101mp.c +++ b/rigs/yaesu/ftdx101mp.c @@ -77,7 +77,7 @@ const struct rig_caps ftdx101mp_caps = RIG_MODEL(RIG_MODEL_FTDX101MP), .model_name = "FTDX-101MP", .mfg_name = "Yaesu", - .version = NEWCAT_VER ".1", + .version = NEWCAT_VER ".2", .copyright = "LGPL", .status = RIG_STATUS_STABLE, .rig_type = RIG_TYPE_TRANSCEIVER, @@ -119,7 +119,7 @@ const struct rig_caps ftdx101mp_caps = .bank_qty = 0, .chan_desc_sz = 0, .rfpower_meter_cal = FTDX101MP_RFPOWER_METER_WATTS_CAL, - .str_cal = FTDX101MP_RFPOWER_METER_CAL, + .str_cal = FTDX101D_STR_CAL, .swr_cal = FTDX101D_SWR_CAL, .chan_list = { { 1, 99, RIG_MTYPE_MEM, NEWCAT_MEM_CAP },