[Hamlib-commits] Hamlib -- Ham radio control libraries branch master updated. b958e42a0c392d0e028a1
Library to control radio transceivers and receivers
Brought to you by:
n0nb
From: Michael B. <mdb...@us...> - 2021-03-18 14:28:05
|
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 b958e42a0c392d0e028a13b6259aec0fa1eb7169 (commit) from 30eaa78034767cabdd91b11b1de081da4216e3e4 (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 b958e42a0c392d0e028a13b6259aec0fa1eb7169 Author: Michael Black W9MDB <mdb...@ya...> Date: Thu Mar 18 09:26:17 2021 -0500 Fix 10Hz resolution problem with FT1000MP rigs https://github.com/Hamlib/Hamlib/issues/616 diff --git a/rigs/yaesu/ft1000mp.c b/rigs/yaesu/ft1000mp.c index 5fcc36ec..2c9bc60a 100644 --- a/rigs/yaesu/ft1000mp.c +++ b/rigs/yaesu/ft1000mp.c @@ -38,6 +38,7 @@ #include <stdlib.h> #include <string.h> /* String function definitions */ #include <unistd.h> /* UNIX standard function definitions */ +#include <math.h> #include "hamlib/rig.h" #include "bandplan.h" @@ -222,7 +223,7 @@ const struct rig_caps ft1000mp_caps = RIG_MODEL(RIG_MODEL_FT1000MP), .model_name = "FT-1000MP", .mfg_name = "Yaesu", - .version = "20210310.0", + .version = "20210318.0", .copyright = "LGPL", .status = RIG_STATUS_STABLE, .rig_type = RIG_TYPE_TRANSCEIVER, @@ -356,7 +357,7 @@ const struct rig_caps ft1000mpmkv_caps = RIG_MODEL(RIG_MODEL_FT1000MPMKV), .model_name = "MARK-V FT-1000MP", .mfg_name = "Yaesu", - .version = "20210310.0", + .version = "20210318.0", .copyright = "LGPL", .status = RIG_STATUS_STABLE, .rig_type = RIG_TYPE_TRANSCEIVER, @@ -490,7 +491,7 @@ const struct rig_caps ft1000mpmkvfld_caps = RIG_MODEL(RIG_MODEL_FT1000MPMKVFLD), .model_name = "MARK-V Field FT-1000MP", .mfg_name = "Yaesu", - .version = "20210310.0", + .version = "20210318.0", .copyright = "LGPL", .status = RIG_STATUS_STABLE, .rig_type = RIG_TYPE_TRANSCEIVER, @@ -763,8 +764,10 @@ int ft1000mp_set_freq(RIG *rig, vfo_t vfo, freq_t freq) */ memcpy(&p->p_cmd, &ncmd[cmd_index].nseq, YAESU_CMD_LENGTH); + // round freq to 10Hz intervals due to rig restriction + freq = round(freq/10.0)*10.0; + to_bcd(p->p_cmd, freq / 10, 8); /* store bcd format in in p_cmd */ - /* TODO -- fix 10Hz resolution -- FS */ // cppcheck-suppress * rig_debug(RIG_DEBUG_TRACE, "%s: freq = %"PRIll" Hz\n", __func__, ----------------------------------------------------------------------- Summary of changes: rigs/yaesu/ft1000mp.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) hooks/post-receive -- Hamlib -- Ham radio control libraries |