From 8760d2576bee3ee726db5dc02d64be4c9b23f7b5 Mon Sep 17 00:00:00 2001 From: Michael Black W9MDB Date: Wed, 7 Oct 2020 15:00:21 +0100 Subject: [PATCH] FTDX101D set roofing filter to allow for requested bandwidth in newcat.c --- rigs/yaesu/newcat.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/rigs/yaesu/newcat.c b/rigs/yaesu/newcat.c index 5f7c4e5fb..48c9ac812 100644 --- a/rigs/yaesu/newcat.c +++ b/rigs/yaesu/newcat.c @@ -5755,6 +5755,7 @@ int newcat_set_rx_bandwidth(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width) } // end is_ft1200 else if (is_ft101) { + int roof_width; switch (mode) { case RIG_MODE_PKTUSB: @@ -5812,6 +5813,18 @@ int newcat_set_rx_bandwidth(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width) else if (width <= 3500) { w = 22; } else { w = 23; } // 4000Hz } // end switch(mode) + // set roofing filter to allow for requested bandwith + // widths of 3 and 5 are optional so won't do them + if (width <= 600) roof_width = 4; + else if (width <= 3000) roof_width = 2; + else roof_width = 1; + snprintf(priv->cmd_str, sizeof(priv->cmd_str), "RF%c%1d%c", main_sub_vfo, roof_width, + cat_term); + + if (RIG_OK != (err = newcat_set_cmd(rig))) + { + return err; + } } // end is_ft101 else