[Hamlib-commits] Hamlib -- Ham radio control libraries branch master updated. c4a11e90c8a0e5cf4261e
Library to control radio transceivers and receivers
Brought to you by:
n0nb
From: Michael B. <mdb...@us...> - 2020-06-22 03:52:46
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "Hamlib -- Ham radio control libraries". The branch, master has been updated via c4a11e90c8a0e5cf4261e41f19fba3a413ac9518 (commit) from a3c4eb9ee0e966a1bce194abe2fdb282bce2ef91 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit c4a11e90c8a0e5cf4261e41f19fba3a413ac9518 Author: Michael Black W9MDB <mdb...@ya...> Date: Sun Jun 21 22:48:40 2020 -0500 Add set_split_freq and get_split_freq to ft1000mp.c Change split setup as testing shows the manual is wrong. Manual says VFO_A=Tx and VFO_B=Rx but that's not the behavior seen https://github.com/Hamlib/Hamlib/issues/308 diff --git a/rigs/yaesu/ft1000mp.c b/rigs/yaesu/ft1000mp.c index 9b609651..a3c35403 100644 --- a/rigs/yaesu/ft1000mp.c +++ b/rigs/yaesu/ft1000mp.c @@ -215,7 +215,7 @@ const struct rig_caps ft1000mp_caps = RIG_MODEL(RIG_MODEL_FT1000MP), .model_name = "FT-1000MP", .mfg_name = "Yaesu", - .version = "20200620.0", + .version = "20200621.0", .copyright = "LGPL", .status = RIG_STATUS_STABLE, .rig_type = RIG_TYPE_TRANSCEIVER, @@ -325,6 +325,8 @@ const struct rig_caps ft1000mp_caps = .set_vfo = ft1000mp_set_vfo, /* set vfo */ .get_vfo = ft1000mp_get_vfo, /* get vfo */ + .set_split_freq = ft1000mp_set_split_freq, + .get_split_freq = ft1000mp_get_split_freq, .set_split_vfo = ft1000mp_set_split_vfo, .get_split_vfo = ft1000mp_get_split_vfo, @@ -454,6 +456,8 @@ const struct rig_caps ft1000mpmkv_caps = .set_vfo = ft1000mp_set_vfo, /* set vfo */ .get_vfo = ft1000mp_get_vfo, /* get vfo */ + .set_split_freq = ft1000mp_set_split_freq, + .get_split_freq = ft1000mp_get_split_freq, .set_split_vfo = ft1000mp_set_split_vfo, .get_split_vfo = ft1000mp_get_split_vfo, @@ -583,6 +587,8 @@ const struct rig_caps ft1000mpmkvfld_caps = .set_vfo = ft1000mp_set_vfo, /* set vfo */ .get_vfo = ft1000mp_get_vfo, /* get vfo */ + .set_split_freq = ft1000mp_set_split_freq, + .get_split_freq = ft1000mp_get_split_freq, .set_split_vfo = ft1000mp_set_split_vfo, .get_split_vfo = ft1000mp_get_split_vfo, @@ -1540,9 +1546,10 @@ int ft1000mp_set_split_vfo(RIG *rig, vfo_t vfo, split_t split, vfo_t tx_vfo) return -RIG_EINVAL; /* sorry, wrong VFO */ } - rig->state.current_vfo = RIG_VFO_B; // Rx on VFO_B - rig->state.tx_vfo = RIG_VFO_A; - ft1000mp_send_priv_cmd(rig, FT1000MP_NATIVE_VFO_B); // make B active + // manual says VFO_A=Tx and VFO_B=Rx but testing shows otherwise + rig->state.current_vfo = RIG_VFO_A; + rig->state.tx_vfo = RIG_VFO_B; + ft1000mp_send_priv_cmd(rig, FT1000MP_NATIVE_VFO_A); // make B active ft1000mp_send_priv_cmd(rig, cmd_index); return RIG_OK; @@ -1585,3 +1592,13 @@ int ft1000mp_get_split_vfo(RIG *rig, vfo_t vfo, split_t *split, vfo_t *tx_vfo) return RIG_OK; } + +int ft1000mp_set_split_freq(RIG *rig, vfo_t vfo, freq_t tx_freq) +{ + return ft1000mp_set_freq(rig, RIG_VFO_B, tx_freq); +} + +int ft1000mp_get_split_freq(RIG *rig, vfo_t vfo, freq_t *tx_freq) +{ + return ft1000mp_get_freq(rig, RIG_VFO_B, tx_freq); +} ----------------------------------------------------------------------- Summary of changes: rigs/yaesu/ft1000mp.c | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) hooks/post-receive -- Hamlib -- Ham radio control libraries |