hamlib-cvs-digest Mailing List for Ham Radio Control Libraries (Page 27)
Library to control radio transceivers and receivers
Brought to you by:
n0nb
You can subscribe to this list here.
2000 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(57) |
Nov
(27) |
Dec
(25) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2001 |
Jan
(41) |
Feb
(101) |
Mar
(60) |
Apr
(32) |
May
(32) |
Jun
(198) |
Jul
(95) |
Aug
(60) |
Sep
(48) |
Oct
(96) |
Nov
(27) |
Dec
(222) |
2002 |
Jan
(180) |
Feb
(46) |
Mar
(68) |
Apr
(11) |
May
(36) |
Jun
(34) |
Jul
(113) |
Aug
(42) |
Sep
(71) |
Oct
(65) |
Nov
(116) |
Dec
(40) |
2003 |
Jan
(32) |
Feb
(92) |
Mar
(29) |
Apr
(102) |
May
(21) |
Jun
(34) |
Jul
(3) |
Aug
(60) |
Sep
(30) |
Oct
(62) |
Nov
(57) |
Dec
(33) |
2004 |
Jan
(28) |
Feb
(46) |
Mar
(16) |
Apr
(14) |
May
(31) |
Jun
(21) |
Jul
(10) |
Aug
(80) |
Sep
(42) |
Oct
(11) |
Nov
(28) |
Dec
(13) |
2005 |
Jan
(35) |
Feb
(26) |
Mar
(20) |
Apr
(118) |
May
(2) |
Jun
(5) |
Jul
|
Aug
|
Sep
(5) |
Oct
(1) |
Nov
(13) |
Dec
(1) |
2006 |
Jan
(9) |
Feb
(25) |
Mar
(22) |
Apr
(6) |
May
|
Jun
|
Jul
(2) |
Aug
(1) |
Sep
(3) |
Oct
(46) |
Nov
(13) |
Dec
(7) |
2007 |
Jan
(9) |
Feb
(14) |
Mar
(3) |
Apr
|
May
(6) |
Jun
(1) |
Jul
|
Aug
(11) |
Sep
(7) |
Oct
(8) |
Nov
(41) |
Dec
(3) |
2008 |
Jan
(27) |
Feb
(16) |
Mar
(13) |
Apr
(23) |
May
(39) |
Jun
(4) |
Jul
(7) |
Aug
(1) |
Sep
(13) |
Oct
(52) |
Nov
(44) |
Dec
(55) |
2009 |
Jan
(72) |
Feb
(69) |
Mar
|
Apr
|
May
|
Jun
(13) |
Jul
(1) |
Aug
(6) |
Sep
(15) |
Oct
(11) |
Nov
(31) |
Dec
(20) |
2010 |
Jan
(24) |
Feb
(21) |
Mar
(22) |
Apr
(40) |
May
(38) |
Jun
(4) |
Jul
(2) |
Aug
(22) |
Sep
(19) |
Oct
(14) |
Nov
(5) |
Dec
(8) |
2011 |
Jan
(14) |
Feb
(36) |
Mar
(6) |
Apr
|
May
|
Jun
(23) |
Jul
(13) |
Aug
(8) |
Sep
(7) |
Oct
|
Nov
(3) |
Dec
(9) |
2012 |
Jan
(17) |
Feb
(13) |
Mar
(10) |
Apr
|
May
(1) |
Jun
(14) |
Jul
(4) |
Aug
(12) |
Sep
(2) |
Oct
(24) |
Nov
(14) |
Dec
(2) |
2013 |
Jan
(4) |
Feb
(3) |
Mar
(3) |
Apr
(3) |
May
(10) |
Jun
(4) |
Jul
(7) |
Aug
|
Sep
(15) |
Oct
(5) |
Nov
(1) |
Dec
(2) |
2014 |
Jan
|
Feb
(8) |
Mar
(1) |
Apr
(3) |
May
(1) |
Jun
|
Jul
|
Aug
(1) |
Sep
(3) |
Oct
(7) |
Nov
(6) |
Dec
(3) |
2015 |
Jan
(4) |
Feb
(5) |
Mar
(8) |
Apr
(8) |
May
(2) |
Jun
|
Jul
(4) |
Aug
(7) |
Sep
(8) |
Oct
|
Nov
(6) |
Dec
(4) |
2016 |
Jan
(6) |
Feb
(26) |
Mar
(3) |
Apr
(10) |
May
(6) |
Jun
(5) |
Jul
(1) |
Aug
(4) |
Sep
(3) |
Oct
(4) |
Nov
(3) |
Dec
(10) |
2017 |
Jan
(11) |
Feb
(11) |
Mar
(2) |
Apr
(1) |
May
(7) |
Jun
(2) |
Jul
(11) |
Aug
(9) |
Sep
(5) |
Oct
(5) |
Nov
(1) |
Dec
(2) |
2018 |
Jan
(5) |
Feb
(2) |
Mar
(19) |
Apr
(7) |
May
(11) |
Jun
(3) |
Jul
(4) |
Aug
(10) |
Sep
(2) |
Oct
(8) |
Nov
(6) |
Dec
(9) |
2019 |
Jan
(9) |
Feb
(6) |
Mar
(2) |
Apr
(4) |
May
(6) |
Jun
(9) |
Jul
(6) |
Aug
(3) |
Sep
(5) |
Oct
(2) |
Nov
(8) |
Dec
(9) |
2020 |
Jan
(15) |
Feb
(1) |
Mar
(18) |
Apr
(33) |
May
(43) |
Jun
(87) |
Jul
(45) |
Aug
(8) |
Sep
(43) |
Oct
(3) |
Nov
(5) |
Dec
(42) |
2021 |
Jan
(116) |
Feb
(40) |
Mar
(58) |
Apr
(48) |
May
(29) |
Jun
(2) |
Jul
|
Aug
(22) |
Sep
(18) |
Oct
(1) |
Nov
|
Dec
(3) |
2022 |
Jan
(1) |
Feb
(1) |
Mar
|
Apr
(1) |
May
(2) |
Jun
(1) |
Jul
|
Aug
(1) |
Sep
|
Oct
(6) |
Nov
(2) |
Dec
(9) |
2023 |
Jan
(10) |
Feb
|
Mar
|
Apr
(10) |
May
(3) |
Jun
(1) |
Jul
(2) |
Aug
(4) |
Sep
(1) |
Oct
|
Nov
(2) |
Dec
(3) |
2024 |
Jan
(4) |
Feb
(1) |
Mar
(2) |
Apr
(2) |
May
(5) |
Jun
(3) |
Jul
(1) |
Aug
(2) |
Sep
|
Oct
(2) |
Nov
(3) |
Dec
(9) |
2025 |
Jan
(5) |
Feb
(5) |
Mar
|
Apr
(10) |
May
(20) |
Jun
(43) |
Jul
(24) |
Aug
(21) |
Sep
|
Oct
|
Nov
|
Dec
|
From: Michael B. <mdb...@us...> - 2020-09-01 14:57:52
|
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 e459d4edc2bd7ff91e38974244b4a6e778cde119 (commit) via 3ef3a73b799626a35823d46971ef4466a60f8252 (commit) via c8a36998614ef500031d01040c341a271e1fa17f (commit) via 1138feb576eaf44adde6cb2979820dc15ab6a770 (commit) via 29ae878fa7d88fa7033f9f8057ef7391568b8341 (commit) via 6f4a996a9aa32d2eee207fc59bd6d17a24cf9c6e (commit) via 8ba082c6622068fa19cd6f0ef09cc53fda055f2b (commit) from 5639d49e489bbbc0ccf044ae2d17f7ded9971288 (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 e459d4edc2bd7ff91e38974244b4a6e778cde119 Author: Michael Black W9MDB <mdb...@ya...> Date: Tue Sep 1 09:06:46 2020 -0500 astyle files diff --git a/rigs/alinco/dxsr8.c b/rigs/alinco/dxsr8.c index e4d5a56f..82eab0ea 100644 --- a/rigs/alinco/dxsr8.c +++ b/rigs/alinco/dxsr8.c @@ -471,7 +471,7 @@ int dxsr8_get_mode(RIG *rig, vfo_t vfo, rmode_t *mode, pbwidth_t *width) return -RIG_EINVAL; } - filter=0; // avoid compiler warings of being possibly uninitialized + filter = 0; // avoid compiler warings of being possibly uninitialized retval = dxsr8_read_num(rig, AL "~RR_NAR" EOM, &filter); if (filter == 0) diff --git a/rigs/aor/aor.c b/rigs/aor/aor.c index 61c3cd25..9b3fb372 100644 --- a/rigs/aor/aor.c +++ b/rigs/aor/aor.c @@ -467,7 +467,7 @@ int aor_set_mode(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width) if (retval != RIG_OK) { return retval; } strncpy(mdbuf2, mdbuf + 4, 3); /* Extract first 'BW' part */ - mdbuf2[3]='\0'; // in case strnpy produces and un-terminated string + mdbuf2[3] = '\0'; // in case strnpy produces and un-terminated string mdbuf2_len = strlen(mdbuf2); retval = aor_transaction(rig, mdbuf2, mdbuf2_len, NULL, NULL); diff --git a/rigs/drake/drake.c b/rigs/drake/drake.c index c86fb152..1cc3c546 100644 --- a/rigs/drake/drake.c +++ b/rigs/drake/drake.c @@ -563,7 +563,7 @@ int drake_set_mem(RIG *rig, vfo_t vfo, int ch) len = sprintf(buf, "C%03d" EOM, ch); - ack_len=0; // fix compile-time warning "possibly uninitialized" + ack_len = 0; // fix compile-time warning "possibly uninitialized" retval = drake_transaction(rig, buf, len, ackbuf, &ack_len); if (ack_len != 2) @@ -853,7 +853,7 @@ int drake_get_chan(RIG *rig, channel_t *chan, int read_only) strncpy(chan->channel_desc, mdbuf + 25, 7); - chan->channel_desc[7]='\0'; // in case strncpy did not terminate the string + chan->channel_desc[7] = '\0'; // in case strncpy did not terminate the string //now put the radio back the way it was //we apparently can't do a read-only channel read diff --git a/rigs/icom/icom.c b/rigs/icom/icom.c index 3af67ae9..846acdfd 100644 --- a/rigs/icom/icom.c +++ b/rigs/icom/icom.c @@ -1314,6 +1314,7 @@ static int icom_set_it_new(RIG *rig, vfo_t vfo, shortfreq_t ts, int set_xit) } #if 0 // why is this here? We have another function to turn it on/off + if (ts == 0) // Turn off both RIT/XIT { if (rig->caps->has_get_func & RIG_FUNC_XIT) @@ -1339,6 +1340,7 @@ static int icom_set_it_new(RIG *rig, vfo_t vfo, shortfreq_t ts, int set_xit) retval = icom_set_func(rig, vfo, set_xit ? RIG_FUNC_XIT : RIG_FUNC_RIT, 1); } + #endif return retval; @@ -2065,7 +2067,7 @@ int icom_set_vfo(RIG *rig, vfo_t vfo) case RIG_VFO_MAIN_A: // we need to select Main before setting VFO case RIG_VFO_MAIN_B: - rig_debug(RIG_DEBUG_VERBOSE, "%s: MainA/B logic\n", __func__); + rig_debug(RIG_DEBUG_VERBOSE, "%s: MainA/B logic\n", __func__); retval = icom_transaction(rig, C_SET_VFO, S_MAIN, NULL, 0, ackbuf, &ack_len); @@ -2087,7 +2089,7 @@ int icom_set_vfo(RIG *rig, vfo_t vfo) case RIG_VFO_SUB_A: // we need to select Sub before setting VFO case RIG_VFO_SUB_B: - rig_debug(RIG_DEBUG_VERBOSE, "%s: SubA/B logic\n", __func__); + rig_debug(RIG_DEBUG_VERBOSE, "%s: SubA/B logic\n", __func__); retval = icom_transaction(rig, C_SET_VFO, S_SUB, NULL, 0, ackbuf, &ack_len); diff --git a/rigs/kenwood/kenwood.c b/rigs/kenwood/kenwood.c index 6e965a36..3ef057aa 100644 --- a/rigs/kenwood/kenwood.c +++ b/rigs/kenwood/kenwood.c @@ -1711,7 +1711,7 @@ int kenwood_set_rit(RIG *rig, vfo_t vfo, shortfreq_t rit) if (priv->has_rit2) // if backend shows it has the Set 2 command { char cmd[15]; // length required to make Apple-gcc happy (unicode-proof). - snprintf(cmd, sizeof(cmd)-1, "R%c%05d", rit > 0 ? 'U' : 'D', abs((int)rit)); + snprintf(cmd, sizeof(cmd) - 1, "R%c%05d", rit > 0 ? 'U' : 'D', abs((int)rit)); retval = kenwood_transaction(rig, cmd, NULL, 0); } else diff --git a/tests/ampctld.c b/tests/ampctld.c index 6f99b525..440c2ce1 100644 --- a/tests/ampctld.c +++ b/tests/ampctld.c @@ -598,6 +598,7 @@ int main(int argc, char *argv[]) handle_socket(arg); #endif } + // cppcheck-suppress * while (retcode == 0); diff --git a/tests/rotctl_parse.c b/tests/rotctl_parse.c index b660ccc9..ef931405 100644 --- a/tests/rotctl_parse.c +++ b/tests/rotctl_parse.c @@ -306,7 +306,7 @@ void hash_sort_by_model_id() /* Delete hash */ void hash_delete_all() { - struct mod_lst *current_model, *tmp=NULL; + struct mod_lst *current_model, *tmp = NULL; HASH_ITER(hh, models, current_model, tmp) { diff --git a/tests/rotctld.c b/tests/rotctld.c index 065a6ea7..c7bfa5e4 100644 --- a/tests/rotctld.c +++ b/tests/rotctld.c @@ -611,6 +611,7 @@ int main(int argc, char *argv[]) handle_socket(arg); #endif } + // cppcheck-suppress * while (retcode == 0); commit 3ef3a73b799626a35823d46971ef4466a60f8252 Merge: 5639d49e c8a36998 Author: Michael Black <mdb...@ya...> Date: Tue Sep 1 09:04:13 2020 -0500 Merge pull request #361 from g0gjv/master Correct RIT for older Yaesu and Icom rigs commit c8a36998614ef500031d01040c341a271e1fa17f Merge: 1138feb5 5639d49e Author: Mike Goodey <mi...@go...> Date: Tue Sep 1 14:42:26 2020 +0100 Merge branch 'master' of https://github.com/Hamlib/Hamlib commit 1138feb576eaf44adde6cb2979820dc15ab6a770 Author: Mike Goodey <mi...@go...> Date: Tue Sep 1 14:41:45 2020 +0100 Remove icom_set_rit - it doesn't (and can't) work - see README.icom diff --git a/rigs/icom/README.icom b/rigs/icom/README.icom index 39f5323b..34c9379d 100644 --- a/rigs/icom/README.icom +++ b/rigs/icom/README.icom @@ -41,3 +41,18 @@ icr8600 3 2 icr9000 2 2 icr9500 3 2 +2020-09, G0GJV Attempting to support RIT. I asked ICOM technical support + +"I am doing some work on the Hamlib amateur radio control library, and in +particular looking at control of RIT via CI-V on the Icom IC-9100 Is my +reading of the manual correct - on this (and most older Icom rigs) - +there is no RIT/XIT control available?" + +and received the answer + +"Hi Mike, +Yes that's right +Thanks +Virgil" + +So I've removed the erroneous icom_set_rit function. \ No newline at end of file diff --git a/rigs/icom/ic7100.c b/rigs/icom/ic7100.c index d0d8f816..5320c55e 100644 --- a/rigs/icom/ic7100.c +++ b/rigs/icom/ic7100.c @@ -360,8 +360,6 @@ const struct rig_caps ic7100_caps = .set_ptt = icom_set_ptt, .get_ptt = icom_get_ptt, - .set_rit = icom_set_rit, - .set_rptr_shift = icom_set_rptr_shift, .get_rptr_shift = icom_get_rptr_shift, .set_rptr_offs = icom_set_rptr_offs, diff --git a/rigs/icom/ic7410.c b/rigs/icom/ic7410.c index b6513f78..443fbf5c 100644 --- a/rigs/icom/ic7410.c +++ b/rigs/icom/ic7410.c @@ -239,8 +239,6 @@ const struct rig_caps ic7410_caps = .set_ant = icom_set_ant, .get_ant = icom_get_ant, - .set_rit = icom_set_rit, - .decode_event = icom_decode_event, .set_level = ic7410_set_level, .get_level = ic7410_get_level, diff --git a/rigs/icom/ic9100.c b/rigs/icom/ic9100.c index 4ac8da14..61f36039 100644 --- a/rigs/icom/ic9100.c +++ b/rigs/icom/ic9100.c @@ -252,8 +252,6 @@ const struct rig_caps ic9100_caps = .set_ptt = icom_set_ptt, .get_ptt = icom_get_ptt, - .set_rit = icom_set_rit, - .set_rptr_shift = icom_set_rptr_shift, .get_rptr_shift = icom_get_rptr_shift, .set_rptr_offs = icom_set_rptr_offs, diff --git a/rigs/icom/icom.c b/rigs/icom/icom.c index 66a1eb6c..3af67ae9 100644 --- a/rigs/icom/icom.c +++ b/rigs/icom/icom.c @@ -1256,37 +1256,6 @@ int icom_get_freq(RIG *rig, vfo_t vfo, freq_t *freq) return RIG_OK; } -int icom_set_rit(RIG *rig, vfo_t vfo, shortfreq_t rit) -{ - unsigned char freqbuf[MAXFRAMELEN], ackbuf[MAXFRAMELEN]; - int freq_len, ack_len = sizeof(ackbuf), retval; - - - rig_debug(RIG_DEBUG_VERBOSE, "%s called\n", __func__); - freq_len = 2; - /* - * to_bcd requires nibble len - */ - to_bcd(freqbuf, rit, freq_len * 2); - - retval = icom_transaction(rig, C_SET_OFFS, -1, freqbuf, freq_len, - ackbuf, &ack_len); - - if (retval != RIG_OK) - { - return retval; - } - - if (ack_len != 1 || ackbuf[0] != ACK) - { - rig_debug(RIG_DEBUG_ERR, "%s: ack NG (%#.2x), len=%d\n", __func__, - ackbuf[0], ack_len); - return -RIG_ERJCTED; - } - - return RIG_OK; -} - int icom_get_rit_new(RIG *rig, vfo_t vfo, shortfreq_t *ts) { unsigned char tsbuf[MAXFRAMELEN]; diff --git a/rigs/icom/icom.h b/rigs/icom/icom.h index 07e391a0..47a12f86 100644 --- a/rigs/icom/icom.h +++ b/rigs/icom/icom.h @@ -222,7 +222,6 @@ int icom_rig_close(RIG *rig); int icom_cleanup(RIG *rig); int icom_set_freq(RIG *rig, vfo_t vfo, freq_t freq); int icom_get_freq(RIG *rig, vfo_t vfo, freq_t *freq); -int icom_set_rit(RIG *rig, vfo_t vfo, shortfreq_t rit); int icom_get_rit_new(RIG *rig, vfo_t vfo, shortfreq_t *ts); int icom_set_rit_new(RIG *rig, vfo_t vfo, shortfreq_t ts); int icom_set_xit_new(RIG *rig, vfo_t vfo, shortfreq_t ts); diff --git a/rigs/icom/x108g.c b/rigs/icom/x108g.c index cd1fe8c7..cd2e6ade 100644 --- a/rigs/icom/x108g.c +++ b/rigs/icom/x108g.c @@ -271,8 +271,6 @@ const struct rig_caps x108g_caps = .set_ant = NULL, /*automatically set by rig depending band */ .get_ant = NULL, - .set_rit = icom_set_rit, - .decode_event = icom_decode_event, .set_level = icom_set_level, .get_level = icom_get_level, commit 29ae878fa7d88fa7033f9f8057ef7391568b8341 Author: Mike Goodey <mi...@go...> Date: Sat Aug 29 18:42:33 2020 +0100 Fixes to RIT code diff --git a/rigs/yaesu/ft450.h b/rigs/yaesu/ft450.h index 43f22d0f..e39cb291 100644 --- a/rigs/yaesu/ft450.h +++ b/rigs/yaesu/ft450.h @@ -67,8 +67,8 @@ #define FT450_FUNCS (RIG_FUNC_TONE|RIG_FUNC_TSQL|RIG_FUNC_LOCK|\ RIG_FUNC_MON|RIG_FUNC_NB|RIG_FUNC_NR|RIG_FUNC_VOX|\ - RIG_FUNC_FBKIN|RIG_FUNC_MN|RIG_FUNC_TUNER - RIG_FUNC_RIT|RIG_FUNC_XIT|\ + RIG_FUNC_FBKIN|RIG_FUNC_MN|RIG_FUNC_TUNER|\ + RIG_FUNC_RIT|RIG_FUNC_XIT\ ) #define FT450_VFO_OPS (RIG_OP_TUNE|RIG_OP_CPY|RIG_OP_XCHG|\ commit 6f4a996a9aa32d2eee207fc59bd6d17a24cf9c6e Author: Mike Goodey <mi...@go...> Date: Fri Aug 28 19:04:13 2020 +0100 Changes for RIT/XIT on other newcat rigs diff --git a/rigs/yaesu/ft2000.h b/rigs/yaesu/ft2000.h index ac637401..09d1d1b1 100644 --- a/rigs/yaesu/ft2000.h +++ b/rigs/yaesu/ft2000.h @@ -73,6 +73,7 @@ #define FT2000_FUNCS (RIG_FUNC_TONE|RIG_FUNC_TSQL|RIG_FUNC_LOCK|\ RIG_FUNC_MON|RIG_FUNC_NB|RIG_FUNC_NR|RIG_FUNC_VOX|\ RIG_FUNC_FBKIN|RIG_FUNC_COMP|RIG_FUNC_ANF|RIG_FUNC_MN|\ + RIG_FUNC_RIT|RIG_FUNC_XIT|\ RIG_FUNC_TUNER) /* TBC */ diff --git a/rigs/yaesu/ft450.h b/rigs/yaesu/ft450.h index cb4f0ac3..43f22d0f 100644 --- a/rigs/yaesu/ft450.h +++ b/rigs/yaesu/ft450.h @@ -67,7 +67,9 @@ #define FT450_FUNCS (RIG_FUNC_TONE|RIG_FUNC_TSQL|RIG_FUNC_LOCK|\ RIG_FUNC_MON|RIG_FUNC_NB|RIG_FUNC_NR|RIG_FUNC_VOX|\ - RIG_FUNC_FBKIN|RIG_FUNC_MN|RIG_FUNC_TUNER) + RIG_FUNC_FBKIN|RIG_FUNC_MN|RIG_FUNC_TUNER + RIG_FUNC_RIT|RIG_FUNC_XIT|\ + ) #define FT450_VFO_OPS (RIG_OP_TUNE|RIG_OP_CPY|RIG_OP_XCHG|\ RIG_OP_UP|RIG_OP_DOWN|RIG_OP_BAND_UP|RIG_OP_BAND_DOWN|\ diff --git a/rigs/yaesu/ft5000.h b/rigs/yaesu/ft5000.h index 821fd86c..cf452a48 100644 --- a/rigs/yaesu/ft5000.h +++ b/rigs/yaesu/ft5000.h @@ -73,6 +73,7 @@ #define FTDX5000_FUNCS (RIG_FUNC_TONE|RIG_FUNC_TSQL|RIG_FUNC_LOCK|\ RIG_FUNC_MON|RIG_FUNC_NB|RIG_FUNC_NR|RIG_FUNC_VOX|\ RIG_FUNC_FBKIN|RIG_FUNC_COMP|RIG_FUNC_ANF|RIG_FUNC_MN|\ + RIG_FUNC_RIT|RIG_FUNC_XIT|\ RIG_FUNC_TUNER) /* TBC */ diff --git a/rigs/yaesu/ft9000.h b/rigs/yaesu/ft9000.h index 56de9977..5cfc27d7 100644 --- a/rigs/yaesu/ft9000.h +++ b/rigs/yaesu/ft9000.h @@ -73,7 +73,9 @@ /* TBC */ #define FT9000_FUNCS (RIG_FUNC_TONE|RIG_FUNC_TSQL|RIG_FUNC_LOCK|\ RIG_FUNC_MON|RIG_FUNC_NB|RIG_FUNC_NR|RIG_FUNC_VOX|\ - RIG_FUNC_FBKIN|RIG_FUNC_COMP|RIG_FUNC_ANF|RIG_FUNC_MN) + RIG_FUNC_FBKIN|RIG_FUNC_COMP|RIG_FUNC_ANF|RIG_FUNC_MN|\ + RIG_FUNC_RIT|RIG_FUNC_XIT\ + ) /* TBC */ #define FT9000_VFO_OPS (RIG_OP_TUNE|RIG_OP_CPY|RIG_OP_XCHG|\ diff --git a/rigs/yaesu/ft950.h b/rigs/yaesu/ft950.h index 15cab3e1..64c4961d 100644 --- a/rigs/yaesu/ft950.h +++ b/rigs/yaesu/ft950.h @@ -64,6 +64,7 @@ #define FT950_FUNCS (RIG_FUNC_TONE|RIG_FUNC_TSQL|RIG_FUNC_LOCK|\ RIG_FUNC_MON|RIG_FUNC_NB|RIG_FUNC_NR|RIG_FUNC_VOX|\ RIG_FUNC_FBKIN|RIG_FUNC_COMP|RIG_FUNC_ANF|RIG_FUNC_MN|\ + RIG_FUNC_RIT|RIG_FUNC_XIT|\ RIG_FUNC_TUNER) #define FT950_VFO_OPS (RIG_OP_TUNE|RIG_OP_CPY|RIG_OP_XCHG|\ diff --git a/rigs/yaesu/newcat.c b/rigs/yaesu/newcat.c index 60df9dae..21b98e8a 100644 --- a/rigs/yaesu/newcat.c +++ b/rigs/yaesu/newcat.c @@ -253,7 +253,7 @@ static const yaesu_newcat_commands_t valid_commands[] = {"VT", FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, TRUE }, {"VV", TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE }, {"VX", TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE }, - {"XT", FALSE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE }, + {"XT", FALSE, TRUE, FALSE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE }, {"ZI", FALSE, FALSE, TRUE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, TRUE }, }; int valid_commands_count = sizeof(valid_commands) / sizeof( commit 8ba082c6622068fa19cd6f0ef09cc53fda055f2b Author: Mike Goodey <mi...@go...> Date: Fri Aug 28 18:16:17 2020 +0100 Changes for FT991 RIT/XIT diff --git a/rigs/yaesu/ft991.h b/rigs/yaesu/ft991.h index e7dc988a..e7e9aa1b 100644 --- a/rigs/yaesu/ft991.h +++ b/rigs/yaesu/ft991.h @@ -65,6 +65,7 @@ #define FT991_FUNCS (RIG_FUNC_TONE|RIG_FUNC_TSQL|RIG_FUNC_LOCK|\ RIG_FUNC_MON|RIG_FUNC_NB|RIG_FUNC_NR|RIG_FUNC_VOX|\ RIG_FUNC_FBKIN|RIG_FUNC_COMP|RIG_FUNC_ANF|RIG_FUNC_MN|\ + RIG_FUNC_RIT|RIG_FUNC_XIT|\ RIG_FUNC_TUNER) #define FT991_VFO_OPS (RIG_OP_TUNE|RIG_OP_CPY|RIG_OP_XCHG|\ diff --git a/rigs/yaesu/newcat.c b/rigs/yaesu/newcat.c index 3b2b048e..60df9dae 100644 --- a/rigs/yaesu/newcat.c +++ b/rigs/yaesu/newcat.c @@ -97,8 +97,9 @@ typedef struct _yaesu_newcat_commands const cal_table_float_t yaesu_default_swr_cal = { 4, - { // first cut at generic Yaesu table, need more points probably - // based on testing by Adam M7OTP on FT-991 + { + // first cut at generic Yaesu table, need more points probably + // based on testing by Adam M7OTP on FT-991 {12, 1.0f}, {39, 1.35f}, {89, 2.0f}, @@ -1158,9 +1159,9 @@ int newcat_get_ptt(RIG *rig, vfo_t vfo, ptt_t *ptt) *ptt = RIG_PTT_OFF; break; - case '1' : /* Just because, what the CAT Manual Shows */ - case '2' : /* FT-950 Radio: Mic, Dataport, CW "TX ON" */ - case '3' : /* FT-950 CAT port: Radio in "TX ON" mode [Not what the CAT Manual Shows] */ + case '1' : /* Just because, what the CAT Manual Shows */ + case '2' : /* FT-950 Radio: Mic, Dataport, CW "TX ON" */ + case '3' : /* FT-950 CAT port: Radio in "TX ON" mode [Not what the CAT Manual Shows] */ *ptt = RIG_PTT_ON; break; @@ -1575,9 +1576,9 @@ int newcat_set_rit(RIG *rig, vfo_t vfo, shortfreq_t rit) rit = - rig->caps->max_rit; /* - */ } - if (rit == 0) + if (rit == 0) // don't turn it off just because it is zero { - snprintf(priv->cmd_str, sizeof(priv->cmd_str), "RC%cRT0%c", cat_term, + snprintf(priv->cmd_str, sizeof(priv->cmd_str), "RC%c", cat_term); } else if (rit < 0) @@ -1599,7 +1600,7 @@ int newcat_get_rit(RIG *rig, vfo_t vfo, shortfreq_t *rit) { struct newcat_priv_data *priv = (struct newcat_priv_data *)rig->state.priv; char *retval; - char rit_on; + //char rit_on; int err; int offset = 0; @@ -1643,11 +1644,12 @@ int newcat_get_rit(RIG *rig, vfo_t vfo, shortfreq_t *rit) } retval = priv->ret_data + offset; - rit_on = retval[5]; + //rit_on = retval[5]; retval[5] = '\0'; - if (rit_on == '1') + //if (rit_on == '1') { + // return the current offset even if turned off *rit = (shortfreq_t) atoi(retval); } @@ -1675,7 +1677,8 @@ int newcat_set_xit(RIG *rig, vfo_t vfo, shortfreq_t xit) if (xit == 0) { - snprintf(priv->cmd_str, sizeof(priv->cmd_str), "RC%cXT0%c", cat_term, + // don't turn it off just because the offset is zero + snprintf(priv->cmd_str, sizeof(priv->cmd_str), "RC%c", cat_term); } else if (xit < 0) @@ -1697,7 +1700,7 @@ int newcat_get_xit(RIG *rig, vfo_t vfo, shortfreq_t *xit) { struct newcat_priv_data *priv = (struct newcat_priv_data *)rig->state.priv; char *retval; - char xit_on; + //char xit_on; int err; int offset = 0; @@ -1741,11 +1744,12 @@ int newcat_get_xit(RIG *rig, vfo_t vfo, shortfreq_t *xit) } retval = priv->ret_data + offset; - xit_on = retval[6]; + //xit_on = retval[6]; retval[5] = '\0'; - if (xit_on == '1') + //if (xit_on == '1') { + // return the offset even when turned off *xit = (shortfreq_t) atoi(retval); } @@ -3371,7 +3375,9 @@ int newcat_get_level(RIG *rig, vfo_t vfo, setting_t level, value_t *val) { val->f = rig_raw2val_float(atoi(retlvl), &rig->caps->swr_cal); } + break; + case RIG_LEVEL_AF: case RIG_LEVEL_MICGAIN: case RIG_LEVEL_RF: @@ -3687,6 +3693,26 @@ int newcat_set_func(RIG *rig, vfo_t vfo, setting_t func, int status) cat_term); break; + case RIG_FUNC_RIT: + if (!newcat_valid_command(rig, "RT")) + { + return -RIG_ENAVAIL; + } + + snprintf(priv->cmd_str, sizeof(priv->cmd_str), "RT%d%c", status ? 1 : 0, + cat_term); + break; + + case RIG_FUNC_XIT: + if (!newcat_valid_command(rig, "XT")) + { + return -RIG_ENAVAIL; + } + + snprintf(priv->cmd_str, sizeof(priv->cmd_str), "XT%d9%c", status ? 1 : 0, + cat_term); + break; + default: return -RIG_EINVAL; } @@ -3831,6 +3857,24 @@ int newcat_get_func(RIG *rig, vfo_t vfo, setting_t func, int *status) snprintf(priv->cmd_str, sizeof(priv->cmd_str), "AC%c", cat_term); break; + case RIG_FUNC_RIT: + if (!newcat_valid_command(rig, "RT")) + { + return -RIG_ENAVAIL; + } + + snprintf(priv->cmd_str, sizeof(priv->cmd_str), "RT%c", cat_term); + break; + + case RIG_FUNC_XIT: + if (!newcat_valid_command(rig, "XT")) + { + return -RIG_ENAVAIL; + } + + snprintf(priv->cmd_str, sizeof(priv->cmd_str), "XT%c", cat_term); + break; + default: return -RIG_EINVAL; } @@ -3876,6 +3920,14 @@ int newcat_get_func(RIG *rig, vfo_t vfo, setting_t func, int *status) *status = (retfunc[2] == '1') ? 1 : 0; break; + case RIG_FUNC_RIT: + *status = (retfunc[0] == '1') ? 1 : 0; + break; + + case RIG_FUNC_XIT: + *status = (retfunc[0] == '1') ? 1 : 0; + break; + default: return -RIG_EINVAL; } ----------------------------------------------------------------------- Summary of changes: rigs/alinco/dxsr8.c | 2 +- rigs/aor/aor.c | 2 +- rigs/drake/drake.c | 4 +-- rigs/icom/README.icom | 15 +++++++++ rigs/icom/ic7100.c | 2 -- rigs/icom/ic7410.c | 2 -- rigs/icom/ic9100.c | 2 -- rigs/icom/icom.c | 37 +++-------------------- rigs/icom/icom.h | 1 - rigs/icom/x108g.c | 2 -- rigs/kenwood/kenwood.c | 2 +- rigs/yaesu/ft2000.h | 1 + rigs/yaesu/ft450.h | 4 ++- rigs/yaesu/ft5000.h | 1 + rigs/yaesu/ft9000.h | 4 ++- rigs/yaesu/ft950.h | 1 + rigs/yaesu/ft991.h | 1 + rigs/yaesu/newcat.c | 82 +++++++++++++++++++++++++++++++++++++++++--------- tests/ampctld.c | 1 + tests/rotctl_parse.c | 2 +- tests/rotctld.c | 1 + 21 files changed, 104 insertions(+), 65 deletions(-) hooks/post-receive -- Hamlib -- Ham radio control libraries |
From: Michael B. <mdb...@us...> - 2020-09-01 11:46:43
|
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 5639d49e489bbbc0ccf044ae2d17f7ded9971288 (commit) from e4b571af0db86c4535b0cc64a73f050298a10a2c (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 5639d49e489bbbc0ccf044ae2d17f7ded9971288 Author: Michael Black W9MDB <mdb...@ya...> Date: Mon Aug 31 23:03:58 2020 -0500 Fix -Z time display https://github.com/Hamlib/Hamlib/issues/360 diff --git a/src/debug.c b/src/debug.c index 70fc6acc..1aacbb56 100644 --- a/src/debug.c +++ b/src/debug.c @@ -150,10 +150,12 @@ char *date_strget(char *buf, int buflen) { char tmp[16]; struct tm *mytm; + time_t t; struct timeval tv; - gettimeofday(&tv, NULL); - mytm = gmtime(&tv.tv_sec); + t = time(NULL); + mytm = gmtime(&t); strftime(buf, buflen, "%Y-%m-%d:%H:%M:%S.", mytm); + gettimeofday(&tv, NULL); sprintf(tmp, "%06ld", (long)tv.tv_usec); strcat(buf, tmp); return buf; ----------------------------------------------------------------------- Summary of changes: src/debug.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) hooks/post-receive -- Hamlib -- Ham radio control libraries |
From: Michael B. <mdb...@us...> - 2020-08-31 22:42:49
|
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 e4b571af0db86c4535b0cc64a73f050298a10a2c (commit) from 331d9773b05215b998364d72217c95941ffdd392 (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 e4b571af0db86c4535b0cc64a73f050298a10a2c Author: Michael Black W9MDB <mdb...@ya...> Date: Mon Aug 31 17:41:48 2020 -0500 https://github.com/Hamlib/Hamlib/issues/359 Increase TS950 timeout and post_write_delay due to errors seen with MicroKeyer III diff --git a/rigs/kenwood/ts950.c b/rigs/kenwood/ts950.c index e454b683..08e08378 100644 --- a/rigs/kenwood/ts950.c +++ b/rigs/kenwood/ts950.c @@ -74,8 +74,8 @@ const struct rig_caps ts950s_caps = .serial_parity = RIG_PARITY_NONE, .serial_handshake = RIG_HANDSHAKE_NONE, .write_delay = 0, - .post_write_delay = 0, - .timeout = 500, // this rig takes over 250ms to respond an IF command + .post_write_delay = 50, + .timeout = 600, // this rig takes over 250ms to respond an IF command .retry = 10, .has_get_func = RIG_FUNC_NONE, ----------------------------------------------------------------------- Summary of changes: rigs/kenwood/ts950.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) hooks/post-receive -- Hamlib -- Ham radio control libraries |
From: Michael B. <mdb...@us...> - 2020-08-21 13:07:34
|
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 331d9773b05215b998364d72217c95941ffdd392 (commit) from bc1e0cc678b67a487dc1054e9720cf29e3ded43a (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 331d9773b05215b998364d72217c95941ffdd392 Author: Michael Black W9MDB <mdb...@ya...> Date: Fri Aug 21 08:05:39 2020 -0500 Add minimal WRITE_DELAY to ft817 https://github.com/csete/gpredict/issues/227 diff --git a/rigs/yaesu/ft817.c b/rigs/yaesu/ft817.c index 2f950c1c..97b7586e 100644 --- a/rigs/yaesu/ft817.c +++ b/rigs/yaesu/ft817.c @@ -164,7 +164,7 @@ const struct rig_caps ft817_caps = RIG_MODEL(RIG_MODEL_FT817), .model_name = "FT-817", .mfg_name = "Yaesu", - .version = "20200710.0", + .version = "20200821.0", .copyright = "LGPL", .status = RIG_STATUS_STABLE, .rig_type = RIG_TYPE_TRANSCEIVER, diff --git a/rigs/yaesu/ft817.h b/rigs/yaesu/ft817.h index aaaf293a..30b3314b 100644 --- a/rigs/yaesu/ft817.h +++ b/rigs/yaesu/ft817.h @@ -33,7 +33,7 @@ /* * No need to wait between written characters. */ -#define FT817_WRITE_DELAY 0 +#define FT817_WRITE_DELAY 1 /* * Wait 'delay' milliseconds after writing a command sequence. ----------------------------------------------------------------------- Summary of changes: rigs/yaesu/ft817.c | 2 +- rigs/yaesu/ft817.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) hooks/post-receive -- Hamlib -- Ham radio control libraries |
From: Michael B. <mdb...@us...> - 2020-08-18 22:18:17
|
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 bc1e0cc678b67a487dc1054e9720cf29e3ded43a (commit) from 59358564c77b6048ec435b7362a7326252661b79 (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 bc1e0cc678b67a487dc1054e9720cf29e3ded43a Author: Michael Black W9MDB <mdb...@ya...> Date: Tue Aug 18 17:13:02 2020 -0500 https://github.com/Hamlib/Hamlib/issues/358 Added 50ms wait after serial port is opened. MicroKeyer was rejecting "ID" command as it was too fast. Values at 20ms or less weren't working so doing 2* safety factor This shouldn't harm any other things going on. diff --git a/src/serial.c b/src/serial.c index 526dc895..b3c9a3bb 100644 --- a/src/serial.c +++ b/src/serial.c @@ -227,6 +227,7 @@ int HAMLIB_API serial_open(hamlib_port_t *rp) } serial_flush(rp); // ensure nothing is there when we open + hl_usleep(50 * 1000); // give a little time for MicroKeyer to finish return RIG_OK; } @@ -335,6 +336,7 @@ int HAMLIB_API serial_setup(hamlib_port_t *rp) break; #ifdef B230400 + case 230400: speed = B230400; /* super awesome! */ break; ----------------------------------------------------------------------- Summary of changes: src/serial.c | 2 ++ 1 file changed, 2 insertions(+) hooks/post-receive -- Hamlib -- Ham radio control libraries |
From: Michael B. <mdb...@us...> - 2020-08-11 03:50:15
|
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 59358564c77b6048ec435b7362a7326252661b79 (commit) via 675a3673a94c6f743faaf17ea26e215d3a419eed (commit) via 4e83c351e77f243b7b6b78c609ac86130f734b43 (commit) from 65fbc1cd4bcc68f13963ba8d5cb2f04c9573fd90 (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 59358564c77b6048ec435b7362a7326252661b79 Author: Michael Black W9MDB <mdb...@ya...> Date: Mon Aug 10 22:46:08 2020 -0500 Add 230400 serial speed diff --git a/src/serial.c b/src/serial.c index f3643f66..526dc895 100644 --- a/src/serial.c +++ b/src/serial.c @@ -334,6 +334,12 @@ int HAMLIB_API serial_setup(hamlib_port_t *rp) speed = B115200; /* awesome! */ break; +#ifdef B230400 + case 230400: + speed = B230400; /* super awesome! */ + break; +#endif + default: rig_debug(RIG_DEBUG_ERR, "%s: unsupported rate specified: %d\n", commit 675a3673a94c6f743faaf17ea26e215d3a419eed Author: Michael Black W9MDB <mdb...@ya...> Date: Mon Aug 10 22:36:55 2020 -0500 Change debug in serial.c to hex diff --git a/src/serial.c b/src/serial.c index 9d66b200..f3643f66 100644 --- a/src/serial.c +++ b/src/serial.c @@ -345,10 +345,10 @@ int HAMLIB_API serial_setup(hamlib_port_t *rp) } /* TODO */ - rig_debug(RIG_DEBUG_TRACE, "%s: cfsetispeed=%d,%d\n", __func__, + rig_debug(RIG_DEBUG_TRACE, "%s: cfsetispeed=%d,0x%04x\n", __func__, rp->parm.serial.rate, speed); cfsetispeed(&options, speed); - rig_debug(RIG_DEBUG_TRACE, "%s: cfsetospeed=%d,%d\n", __func__, + rig_debug(RIG_DEBUG_TRACE, "%s: cfsetospeed=%d,0x%04x\n", __func__, rp->parm.serial.rate, speed); cfsetospeed(&options, speed); commit 4e83c351e77f243b7b6b78c609ac86130f734b43 Author: Michael Black W9MDB <mdb...@ya...> Date: Mon Aug 10 22:34:12 2020 -0500 Add some more debug to serial.c diff --git a/src/serial.c b/src/serial.c index 4e509512..9d66b200 100644 --- a/src/serial.c +++ b/src/serial.c @@ -345,9 +345,11 @@ int HAMLIB_API serial_setup(hamlib_port_t *rp) } /* TODO */ - rig_debug(RIG_DEBUG_TRACE, "%s: cfsetispeed=%d\n", __func__, speed); + rig_debug(RIG_DEBUG_TRACE, "%s: cfsetispeed=%d,%d\n", __func__, + rp->parm.serial.rate, speed); cfsetispeed(&options, speed); - rig_debug(RIG_DEBUG_TRACE, "%s: cfsetospeed=%d\n", __func__, speed); + rig_debug(RIG_DEBUG_TRACE, "%s: cfsetospeed=%d,%d\n", __func__, + rp->parm.serial.rate, speed); cfsetospeed(&options, speed); /* ----------------------------------------------------------------------- Summary of changes: src/serial.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) hooks/post-receive -- Hamlib -- Ham radio control libraries |
From: Michael B. <mdb...@us...> - 2020-08-11 03:26:44
|
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 65fbc1cd4bcc68f13963ba8d5cb2f04c9573fd90 (commit) from 59d22e07485b2bf3e155cba53bf85a877b95e88e (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 65fbc1cd4bcc68f13963ba8d5cb2f04c9573fd90 Author: Michael Black W9MDB <mdb...@ya...> Date: Mon Aug 10 22:26:25 2020 -0500 Add some debug to serial.c diff --git a/src/serial.c b/src/serial.c index 7824d563..4e509512 100644 --- a/src/serial.c +++ b/src/serial.c @@ -345,9 +345,9 @@ int HAMLIB_API serial_setup(hamlib_port_t *rp) } /* TODO */ - rig_debug(RIG_DEBUG_TRACE, "%s: cfsetispeed\n", __func__); + rig_debug(RIG_DEBUG_TRACE, "%s: cfsetispeed=%d\n", __func__, speed); cfsetispeed(&options, speed); - rig_debug(RIG_DEBUG_TRACE, "%s: cfsetospeed\n", __func__); + rig_debug(RIG_DEBUG_TRACE, "%s: cfsetospeed=%d\n", __func__, speed); cfsetospeed(&options, speed); /* @@ -364,6 +364,9 @@ int HAMLIB_API serial_setup(hamlib_port_t *rp) * Set data to requested values. * */ + rig_debug(RIG_DEBUG_TRACE, "%s: data_bits=%d\n", __func__, + rp->parm.serial.data_bits); + switch (rp->parm.serial.data_bits) { case 7: @@ -416,6 +419,8 @@ int HAMLIB_API serial_setup(hamlib_port_t *rp) * Set parity to requested values. * */ + rig_debug(RIG_DEBUG_TRACE, "%s: parity=%d\n", __func__, rp->parm.serial.parity); + switch (rp->parm.serial.parity) { case RIG_PARITY_NONE: ----------------------------------------------------------------------- Summary of changes: src/serial.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) hooks/post-receive -- Hamlib -- Ham radio control libraries |
From: Michael B. <mdb...@us...> - 2020-08-06 14:51:02
|
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 59d22e07485b2bf3e155cba53bf85a877b95e88e (commit) from 494a875d79c3b683d8a062b1efe45442d48aa33a (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 59d22e07485b2bf3e155cba53bf85a877b95e88e Author: Michael Black W9MDB <mdb...@ya...> Date: Thu Aug 6 09:50:45 2020 -0500 Fix spelling error in kenwood.c diff --git a/rigs/kenwood/kenwood.c b/rigs/kenwood/kenwood.c index b4636c88..6e965a36 100644 --- a/rigs/kenwood/kenwood.c +++ b/rigs/kenwood/kenwood.c @@ -757,7 +757,7 @@ int kenwood_open(RIG *rig) if (RIG_OK != err) { rig_debug(RIG_DEBUG_ERR, - "%s: no response to get_id from rig...contintuing anyways.\n", __func__); + "%s: no response to get_id from rig...continuing anyways.\n", __func__); } if (RIG_IS_TS2000 ----------------------------------------------------------------------- Summary of changes: rigs/kenwood/kenwood.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) hooks/post-receive -- Hamlib -- Ham radio control libraries |
From: Michael B. <mdb...@us...> - 2020-08-04 12:53:38
|
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 494a875d79c3b683d8a062b1efe45442d48aa33a (commit) from 6fbb039a69523ae5c181f64cbe6f37a6322b179c (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 494a875d79c3b683d8a062b1efe45442d48aa33a Author: Michael Black W9MDB <mdb...@ya...> Date: Tue Aug 4 07:52:30 2020 -0500 Add FT991 to RFPOWER scale 100 in newcat.c https://github.com/Hamlib/Hamlib/issues/354 diff --git a/rigs/yaesu/newcat.c b/rigs/yaesu/newcat.c index fec6f63a..3b2b048e 100644 --- a/rigs/yaesu/newcat.c +++ b/rigs/yaesu/newcat.c @@ -2552,6 +2552,7 @@ int newcat_set_level(RIG *rig, vfo_t vfo, setting_t level, value_t val) scale = newcat_is_rig(rig, RIG_MODEL_FT891) ? 100. : scale ; scale = newcat_is_rig(rig, RIG_MODEL_FT950) ? 100. : scale ; scale = newcat_is_rig(rig, RIG_MODEL_FT1200) ? 100. : scale ; + scale = newcat_is_rig(rig, RIG_MODEL_FT991) ? 100. : scale ; fpf = newcat_scale_float(scale, val.f); snprintf(priv->cmd_str, sizeof(priv->cmd_str), "PC%03d%c", fpf, cat_term); break; diff --git a/rigs/yaesu/newcat.h b/rigs/yaesu/newcat.h index eaf80169..0173388f 100644 --- a/rigs/yaesu/newcat.h +++ b/rigs/yaesu/newcat.h @@ -50,7 +50,7 @@ typedef char ncboolean; /* shared function version */ -#define NEWCAT_VER "20200729" +#define NEWCAT_VER "20200804" /* Hopefully large enough for future use, 128 chars plus '\0' */ #define NEWCAT_DATA_LEN 129 diff --git a/scripts/README.build-Windows b/scripts/README.build-Windows index cbeffcd3..9385a564 100644 --- a/scripts/README.build-Windows +++ b/scripts/README.build-Windows @@ -29,9 +29,9 @@ to be built. Download the latest libusb-1.0 from: https://sourceforge.net/projects/libusb/files/libusb-1.0/ -and unzip the archive in ~/builds +:nd unzip the archive in ~/builds -Any version of libusb from 1.0.20 is known to work. +Libusb 1.0.20 is known to work. Presumably any 1.X.X version should work. Several variables may need to be set differently at the top of the script file depending on your system. ----------------------------------------------------------------------- Summary of changes: rigs/yaesu/newcat.c | 1 + rigs/yaesu/newcat.h | 2 +- scripts/README.build-Windows | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) hooks/post-receive -- Hamlib -- Ham radio control libraries |
From: Michael B. <mdb...@us...> - 2020-08-01 12:20:17
|
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 6fbb039a69523ae5c181f64cbe6f37a6322b179c (commit) via 958e05a0276ddc2b4c16060ea4b62bd5d7390469 (commit) via d77383b903947dd919887550ae1bf6653ca6b7f9 (commit) via 54106100459c4cd3ce82761d545929c331a25122 (commit) via 8aa5126650b7d649347a6897b7ab0141b2ecff2d (commit) via 23d4cc73dc3723d6f688f6eaa8c54ed0d8a83bf9 (commit) via 9d64f642ce8e030cc9b18fb77a3c7003e8853152 (commit) from 6dbbe4a8ff55c3121f8736cf9c9582ba08c243a0 (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 6fbb039a69523ae5c181f64cbe6f37a6322b179c Merge: 54106100 958e05a0 Author: Michael Black W9MDB <mdb...@ya...> Date: Fri Jul 31 15:18:26 2020 -0500 Merge branch 'master' of https://github.com/Hamlib/Hamlib commit 958e05a0276ddc2b4c16060ea4b62bd5d7390469 Merge: 8aa51266 d77383b9 Author: Michael Black <mdb...@ya...> Date: Fri Jul 31 15:03:52 2020 -0500 Merge pull request #356 from g0gjv/master Implement RIT/XIT on ft1000mp commit d77383b903947dd919887550ae1bf6653ca6b7f9 Author: Mike Goodey <mi...@go...> Date: Fri Jul 31 18:34:15 2020 +0100 Implement RIT/XIT diff --git a/rigs/yaesu/ft1000mp.c b/rigs/yaesu/ft1000mp.c index c1b54442..befa3887 100644 --- a/rigs/yaesu/ft1000mp.c +++ b/rigs/yaesu/ft1000mp.c @@ -77,10 +77,12 @@ static const yaesu_cmd_set_t ncmd[] = { 1, { 0x00, 0x00, 0x00, 0x00, 0x05 } }, /* select vfo A */ { 1, { 0x00, 0x00, 0x00, 0x01, 0x05 } }, /* select vfo B */ { 0, { 0x00, 0x00, 0x00, 0x00, 0x06 } }, /* copy memory data to vfo A */ - { 0, { 0x00, 0x00, 0x00, 0x00, 0x09 } }, /* RX clarifier on */ - { 1, { 0x00, 0x00, 0x00, 0x01, 0x09 } }, /* RX clarifier off */ - { 1, { 0x00, 0x00, 0x00, 0x80, 0x09 } }, /* TX clarifier on */ - { 1, { 0x00, 0x00, 0x00, 0x81, 0x09 } }, /* TX clarifier off */ + { 1, { 0x00, 0x00, 0x00, 0x01, 0x09 } }, /* RX clarifier on */ + { 1, { 0x00, 0x00, 0x00, 0x00, 0x09 } }, /* RX clarifier off */ + { 1, { 0x00, 0x00, 0x00, 0x81, 0x09 } }, /* TX clarifier on */ + { 1, { 0x00, 0x00, 0x00, 0x80, 0x09 } }, /* TX clarifier off */ + { 0, { 0x00, 0x00, 0x00, 0xFF, 0x09 } }, /* set clarifier offset */ + { 0, { 0x00, 0x00, 0x00, 0x00, 0x0a } }, /* set VFOA freq */ { 0, { 0x00, 0x00, 0x00, 0x00, 0x8a } }, /* set VFOB freq */ @@ -138,9 +140,13 @@ static const yaesu_cmd_set_t ncmd[] = #define FT1000MP_OTHER_TX_MODES (RIG_MODE_CW| RIG_MODE_SSB|RIG_MODE_RTTY|RIG_MODE_FM) /* 100 W class */ #define FT1000MP_AM_TX_MODES (RIG_MODE_AM ) /* set 25W max */ -#define FT1000MP_FUNC_ALL (RIG_FUNC_FAGC|RIG_FUNC_NB|RIG_FUNC_COMP|RIG_FUNC_VOX|RIG_FUNC_TONE|RIG_FUNC_TSQL|RIG_FUNC_SBKIN|RIG_FUNC_FBKIN|RIG_FUNC_LOCK /* |RIG_FUNC_TUNER */) /* FIXME */ +#define FT1000MP_FUNC_ALL (RIG_FUNC_FAGC|RIG_FUNC_NB|RIG_FUNC_COMP|RIG_FUNC_VOX|RIG_FUNC_TONE|RIG_FUNC_TSQL \ + |RIG_FUNC_SBKIN|RIG_FUNC_FBKIN|RIG_FUNC_LOCK \ + |RIG_FUNC_RIT|RIG_FUNC_XIT \ + /* |RIG_FUNC_TUNER */) /* FIXME */ -#define FT1000MP_LEVEL_GET (RIG_LEVEL_RAWSTR|RIG_LEVEL_ALC|RIG_LEVEL_SWR|RIG_LEVEL_RFPOWER|RIG_LEVEL_COMP|RIG_LEVEL_MICGAIN|RIG_LEVEL_CWPITCH) +#define FT1000MP_LEVEL_GET (RIG_LEVEL_RAWSTR|RIG_LEVEL_ALC|RIG_LEVEL_SWR|RIG_LEVEL_RFPOWER|RIG_LEVEL_COMP| \ + RIG_LEVEL_MICGAIN|RIG_LEVEL_CWPITCH) #define FT1000MP_VFOS (RIG_VFO_A|RIG_VFO_B) #define FT1000MP_ANTS 0 /* FIXME: declare antenna connectors: ANT-A, ANT-B, RX ANT */ @@ -216,7 +222,7 @@ const struct rig_caps ft1000mp_caps = RIG_MODEL(RIG_MODEL_FT1000MP), .model_name = "FT-1000MP", .mfg_name = "Yaesu", - .version = "20200727.0", + .version = "20200731.0", .copyright = "LGPL", .status = RIG_STATUS_STABLE, .rig_type = RIG_TYPE_TRANSCEIVER, @@ -331,14 +337,17 @@ const struct rig_caps ft1000mp_caps = .set_split_vfo = ft1000mp_set_split_vfo, .get_split_vfo = ft1000mp_get_split_vfo, - .get_rit = ft1000mp_get_rit, + .get_rit = ft1000mp_get_rxit, .set_rit = ft1000mp_set_rit, - .get_xit = ft1000mp_get_xit, + .get_xit = ft1000mp_get_rxit, .set_xit = ft1000mp_set_xit, .get_level = ft1000mp_get_level, .set_ptt = ft1000mp_set_ptt, + .set_func = ft1000mp_set_func, + .get_func = ft1000mp_get_func, + /* TODO: the remaining ... */ }; @@ -347,7 +356,7 @@ const struct rig_caps ft1000mpmkv_caps = RIG_MODEL(RIG_MODEL_FT1000MPMKV), .model_name = "MARK-V FT-1000MP", .mfg_name = "Yaesu", - .version = "20200716.0", + .version = "20200731.0", .copyright = "LGPL", .status = RIG_STATUS_STABLE, .rig_type = RIG_TYPE_TRANSCEIVER, @@ -462,14 +471,17 @@ const struct rig_caps ft1000mpmkv_caps = .set_split_vfo = ft1000mp_set_split_vfo, .get_split_vfo = ft1000mp_get_split_vfo, - .get_rit = ft1000mp_get_rit, + .get_rit = ft1000mp_get_rxit, .set_rit = ft1000mp_set_rit, - .get_xit = ft1000mp_get_xit, + .get_xit = ft1000mp_get_rxit, .set_xit = ft1000mp_set_xit, .get_level = ft1000mp_get_level, .set_ptt = ft1000mp_set_ptt, + .set_func = ft1000mp_set_func, + .get_func = ft1000mp_get_func, + /* TODO: the remaining ... */ }; @@ -478,7 +490,7 @@ const struct rig_caps ft1000mpmkvfld_caps = RIG_MODEL(RIG_MODEL_FT1000MPMKVFLD), .model_name = "MARK-V Field FT-1000MP", .mfg_name = "Yaesu", - .version = "20200716.0", + .version = "20200731.0", .copyright = "LGPL", .status = RIG_STATUS_STABLE, .rig_type = RIG_TYPE_TRANSCEIVER, @@ -593,14 +605,17 @@ const struct rig_caps ft1000mpmkvfld_caps = .set_split_vfo = ft1000mp_set_split_vfo, .get_split_vfo = ft1000mp_get_split_vfo, - .get_rit = ft1000mp_get_rit, + .get_rit = ft1000mp_get_rxit, .set_rit = ft1000mp_set_rit, - .get_xit = ft1000mp_get_xit, + .get_xit = ft1000mp_get_rxit, .set_xit = ft1000mp_set_xit, .get_level = ft1000mp_get_level, .set_ptt = ft1000mp_set_ptt, + .set_func = ft1000mp_set_func, + .get_func = ft1000mp_get_func, + /* TODO: the remaining ... */ }; @@ -765,25 +780,10 @@ int ft1000mp_set_freq(RIG *rig, vfo_t vfo, freq_t freq) return RIG_OK; } - -/* - * Return Freq for a given VFO - * - */ - -int ft1000mp_get_freq(RIG *rig, vfo_t vfo, freq_t *freq) +int ft1000mp_get_vfo_data(RIG *rig, vfo_t vfo) { - struct ft1000mp_priv_data *priv; - unsigned char *p; - freq_t f; int cmd_index, len, retval; - rig_debug(RIG_DEBUG_VERBOSE, "%s: called\n", __func__); - - - priv = (struct ft1000mp_priv_data *)rig->state.priv; - - if (vfo == RIG_VFO_A || vfo == RIG_VFO_B) { cmd_index = FT1000MP_NATIVE_VFO_UPDATE; @@ -801,11 +801,31 @@ int ft1000mp_get_freq(RIG *rig, vfo_t vfo, freq_t *freq) */ retval = ft1000mp_get_update_data(rig, cmd_index, len); + return retval; +} +/* + * Return Freq for a given VFO + * + */ + +int ft1000mp_get_freq(RIG *rig, vfo_t vfo, freq_t *freq) +{ + struct ft1000mp_priv_data *priv; + unsigned char *p; + freq_t f; + int retval; + + rig_debug(RIG_DEBUG_VERBOSE, "%s: called\n", __func__); + + retval = ft1000mp_get_vfo_data(rig, vfo); + if (retval < 0) { return retval; } + priv = (struct ft1000mp_priv_data *)rig->state.priv; + if (vfo == RIG_VFO_B) { p = &priv->update_data[FT1000MP_SUMO_VFO_B_FREQ]; @@ -952,35 +972,20 @@ int ft1000mp_get_mode(RIG *rig, vfo_t vfo, rmode_t *mode, pbwidth_t *width) struct ft1000mp_priv_data *priv; unsigned char mymode; /* ft1000mp mode */ unsigned char mymode_ext; /* ft1000mp extra mode bit mode */ - int cmd_index, len, retval; + int retval; rig_debug(RIG_DEBUG_VERBOSE, "%s: called\n", __func__); - priv = (struct ft1000mp_priv_data *)rig->state.priv; - - if (vfo == RIG_VFO_A || vfo == RIG_VFO_B) - { - cmd_index = FT1000MP_NATIVE_VFO_UPDATE; - len = 2 * FT1000MP_STATUS_UPDATE_LENGTH; - } - else - { - /* RIG_VFO_CURR or RIG_VFO_MEM */ - cmd_index = FT1000MP_NATIVE_CURR_VFO_UPDATE; - len = FT1000MP_STATUS_UPDATE_LENGTH; - } - - /* - * get record from rig - */ - retval = ft1000mp_get_update_data(rig, cmd_index, len); + retval = ft1000mp_get_vfo_data(rig, vfo); if (retval < 0) { return retval; } + priv = (struct ft1000mp_priv_data *)rig->state.priv; + if (vfo == RIG_VFO_B) { mymode = priv->update_data[FT1000MP_SUMO_VFO_B_MODE]; @@ -1148,131 +1153,182 @@ int ft1000mp_get_vfo(RIG *rig, vfo_t *vfo) return RIG_OK; } - -/* - * set_rit only support vfo = RIG_VFO_CURR - */ -int ft1000mp_set_rit(RIG *rig, vfo_t vfo, shortfreq_t rit) +int ft1000mp_set_func(RIG *rig, vfo_t vfo, setting_t func, int status) { - struct rig_state *rs; struct ft1000mp_priv_data *priv; - unsigned char *cmd; /* points to sequence to send */ - - rig_debug(RIG_DEBUG_TRACE, "%s: called\n", __func__); + struct rig_state *rs; + unsigned char *cmd; rs = &rig->state; - priv = (struct ft1000mp_priv_data *)rs->priv; + priv = (struct ft1000mp_priv_data *)rig->state.priv; - rig_debug(RIG_DEBUG_TRACE, "%s: requested freq = %d Hz\n", __func__, (int)rit); + rig_debug(RIG_DEBUG_VERBOSE, "%s called func\n", __func__); - /* - * Copy native cmd freq_set to private cmd storage area - */ - memcpy(&priv->p_cmd, &ncmd[FT1000MP_NATIVE_RIT_ON].nseq, YAESU_CMD_LENGTH); + switch (func) + { + case RIG_FUNC_RIT: + if (status) + { + memcpy(&priv->p_cmd, &ncmd[FT1000MP_NATIVE_RIT_ON].nseq, YAESU_CMD_LENGTH); + } + else + { + memcpy(&priv->p_cmd, &ncmd[FT1000MP_NATIVE_RIT_OFF].nseq, YAESU_CMD_LENGTH); + } - to_bcd(priv->p_cmd, labs(rit) / 10, 4); /* store bcd format in in p_cmd */ - priv->p_cmd[2] = rit >= 0 ? 0x00 : 0xff; + cmd = priv->p_cmd; - cmd = priv->p_cmd; /* get native sequence */ - write_block(&rs->rigport, (char *) cmd, YAESU_CMD_LENGTH); + write_block(&rs->rigport, (char *) cmd, YAESU_CMD_LENGTH); + return RIG_OK; - return RIG_OK; -} + case RIG_FUNC_XIT: + if (status) + { + memcpy(&priv->p_cmd, &ncmd[FT1000MP_NATIVE_XIT_ON].nseq, YAESU_CMD_LENGTH); + } + else + { + memcpy(&priv->p_cmd, &ncmd[FT1000MP_NATIVE_XIT_OFF].nseq, YAESU_CMD_LENGTH); + } + cmd = priv->p_cmd; -/* - * Return RIT for a given VFO - * - */ + write_block(&rs->rigport, (char *) cmd, YAESU_CMD_LENGTH); break; + return RIG_OK; -int ft1000mp_get_rit(RIG *rig, vfo_t vfo, shortfreq_t *rit) + default: + rig_debug(RIG_DEBUG_ERR, "Unsupported set_func %s", rig_strfunc(func)); + return -RIG_EINVAL; + } + + return -RIG_EINVAL; +} +int ft1000mp_get_func(RIG *rig, vfo_t vfo, setting_t func, int *status) { + int retval; struct ft1000mp_priv_data *priv; unsigned char *p; - shortfreq_t f; - int cmd_index, len, retval; - - rig_debug(RIG_DEBUG_VERBOSE, "%s: called\n", __func__); priv = (struct ft1000mp_priv_data *)rig->state.priv; - if (vfo == RIG_VFO_CURR) + rig_debug(RIG_DEBUG_VERBOSE, "%s called\n", __func__); + + if (!status) { - vfo = rig->state.current_vfo; + return -RIG_EINVAL; } - if (vfo == RIG_VFO_A || vfo == RIG_VFO_B) + switch (func) { - cmd_index = FT1000MP_NATIVE_VFO_UPDATE; - len = 2 * FT1000MP_STATUS_UPDATE_LENGTH; - } - else + case RIG_FUNC_RIT: { - /* RIG_VFO_CURR or RIG_VFO_MEM */ - cmd_index = FT1000MP_NATIVE_CURR_VFO_UPDATE; - len = FT1000MP_STATUS_UPDATE_LENGTH; - } + retval = ft1000mp_get_vfo_data(rig, vfo); - /* - * get record from rig - */ - retval = ft1000mp_get_update_data(rig, cmd_index, len); + if (retval < 0) + { + return retval; + } - if (retval < 0) - { - return retval; - } + if (vfo == RIG_VFO_B) + { + p = &priv->update_data[FT1000MP_SUMO_VFO_B_MEM]; + } + else + { + p = &priv->update_data[FT1000MP_SUMO_VFO_A_MEM]; /* CURR_VFO has VFOA offset */ + } - if (vfo == RIG_VFO_B) - { - p = &priv->update_data[FT1000MP_SUMO_VFO_B_CLAR]; - } - else - { - p = &priv->update_data[FT1000MP_SUMO_VFO_A_CLAR]; /* CURR_VFO has VFOA offset */ + *status = (*p & 2) ? 1 : 0; + return RIG_OK; } - f = (p[0] << 8) + p[1]; - if (p[0] & 0x80) + case RIG_FUNC_XIT: { - f = (~(f - 1) & 0x7fff) * -1; // two's complement + retval = ft1000mp_get_vfo_data(rig, vfo); + + if (retval < 0) + { + return retval; + } + + if (vfo == RIG_VFO_B) + { + p = &priv->update_data[FT1000MP_SUMO_VFO_B_MEM]; + } + else + { + p = &priv->update_data[FT1000MP_SUMO_VFO_A_MEM]; /* CURR_VFO has VFOA offset */ + } + + *status = (*p & 1) ? 1 : 0; + return RIG_OK; } - f = f * 10 / 16; - rig_debug(RIG_DEBUG_TRACE, "%s: freq = %d Hz for VFO [%s]\n", __func__, (int)f, - rig_strvfo(vfo)); - *rit = f; /* return displayed frequency */ + default: + rig_debug(RIG_DEBUG_ERR, "Unsupported get_func %s", rig_strfunc(func)); + return -RIG_EINVAL; + } - return RIG_OK; + return -RIG_EINVAL; } - /* - * set_xit only support vfo = RIG_VFO_CURR + * set_rit only support vfo = RIG_VFO_CURR */ -int ft1000mp_set_xit(RIG *rig, vfo_t vfo, shortfreq_t xit) +int ft1000mp_set_rit(RIG *rig, vfo_t vfo, shortfreq_t rit) +{ + if (rit != 0) + { + ft1000mp_set_func(rig, vfo, RIG_FUNC_RIT, 1); + } + + return ft1000mp_set_rxit(rig, vfo, rit); +} + +int ft1000mp_set_xit(RIG *rig, vfo_t vfo, shortfreq_t rit) +{ + return ft1000mp_set_rxit(rig, vfo, rit); +} + +int ft1000mp_set_rxit(RIG *rig, vfo_t vfo, shortfreq_t rit) { struct rig_state *rs; struct ft1000mp_priv_data *priv; unsigned char *cmd; /* points to sequence to send */ + int direction = 0; rig_debug(RIG_DEBUG_TRACE, "%s: called\n", __func__); rs = &rig->state; priv = (struct ft1000mp_priv_data *)rs->priv; - rig_debug(RIG_DEBUG_TRACE, "%s: requested freq = %d Hz \n", __func__, (int)xit); + rig_debug(RIG_DEBUG_TRACE, "%s: requested freq = %d Hz\n", __func__, (int)rit); /* * Copy native cmd freq_set to private cmd storage area */ - memcpy(&priv->p_cmd, &ncmd[FT1000MP_NATIVE_XIT_ON].nseq, YAESU_CMD_LENGTH); + memcpy(&priv->p_cmd, &ncmd[FT1000MP_NATIVE_RXIT_SET].nseq, YAESU_CMD_LENGTH); + + if (rit < 0) + { + direction = 0xff; + rit = -rit; + } + + unsigned char rit_freq[10]; + + // yes, it really is this nasty and complicated! + + to_bcd_be(rit_freq, (rit - (rit / 1000) * 1000) / 10, 2); + priv->p_cmd[0] = rit_freq[0]; // 10 hz - to_bcd(priv->p_cmd, labs(xit) / 10, 4); /* store bcd format in in p_cmd */ - priv->p_cmd[2] = xit >= 0 ? 0x00 : 0xff; + to_bcd_be(rit_freq, rit / 1000, 2); + priv->p_cmd[1] = rit_freq[0]; // Khz + + priv->p_cmd[2] = direction; cmd = priv->p_cmd; /* get native sequence */ write_block(&rs->rigport, (char *) cmd, YAESU_CMD_LENGTH); @@ -1282,42 +1338,22 @@ int ft1000mp_set_xit(RIG *rig, vfo_t vfo, shortfreq_t xit) /* - * Return XIT for a given VFO + * Return RIT for a given VFO * */ -int ft1000mp_get_xit(RIG *rig, vfo_t vfo, shortfreq_t *xit) +int ft1000mp_get_rxit(RIG *rig, vfo_t vfo, shortfreq_t *rit) { struct ft1000mp_priv_data *priv; unsigned char *p; shortfreq_t f; - int cmd_index, len, retval; + int retval; rig_debug(RIG_DEBUG_VERBOSE, "%s: called\n", __func__); priv = (struct ft1000mp_priv_data *)rig->state.priv; - if (vfo == RIG_VFO_CURR) - { - vfo = rig->state.current_vfo; - } - - if (vfo == RIG_VFO_A || vfo == RIG_VFO_B) - { - cmd_index = FT1000MP_NATIVE_VFO_UPDATE; - len = 2 * FT1000MP_STATUS_UPDATE_LENGTH; - } - else - { - /* RIG_VFO_CURR or RIG_VFO_MEM */ - cmd_index = FT1000MP_NATIVE_CURR_VFO_UPDATE; - len = FT1000MP_STATUS_UPDATE_LENGTH; - } - - /* - * get record from rig - */ - retval = ft1000mp_get_update_data(rig, cmd_index, len); + retval = ft1000mp_get_vfo_data(rig, vfo); if (retval < 0) { @@ -1333,14 +1369,12 @@ int ft1000mp_get_xit(RIG *rig, vfo_t vfo, shortfreq_t *xit) p = &priv->update_data[FT1000MP_SUMO_VFO_A_CLAR]; /* CURR_VFO has VFOA offset */ } - /* big endian integer, kinda */ + f = (p[0] << 8) + p[1]; + if (p[0] & 0x80) { - f = (p[0] << 8) + p[1] - 65536; - } - else - { - f = (p[0] << 8) + p[1]; + f = ~(f - 1) & 0x7fff; // two's complement + f = -f; } f = f * 10 / 16; @@ -1348,11 +1382,12 @@ int ft1000mp_get_xit(RIG *rig, vfo_t vfo, shortfreq_t *xit) rig_debug(RIG_DEBUG_TRACE, "%s: freq = %d Hz for VFO [%s]\n", __func__, (int)f, rig_strvfo(vfo)); - *xit = f; /* return displayed frequency */ + *rit = f; /* return displayed frequency */ return RIG_OK; } + int ft1000mp_get_level(RIG *rig, vfo_t vfo, setting_t level, value_t *val) { struct ft1000mp_priv_data *priv; diff --git a/rigs/yaesu/ft1000mp.h b/rigs/yaesu/ft1000mp.h index e74dd90a..d85d2883 100644 --- a/rigs/yaesu/ft1000mp.h +++ b/rigs/yaesu/ft1000mp.h @@ -25,6 +25,8 @@ #ifndef _FT1000MP_H #define _FT1000MP_H 1 +//#include "rig.h" + #define FT1000MP_STATUS_FLAGS_LENGTH 5 /* 0xfa return size */ #define FT1000MP_STATUS_UPDATE_LENGTH 16 /* 0x10 U = 02 return size */ @@ -66,53 +68,55 @@ * */ -enum ft1000mp_native_cmd_e { - FT1000MP_NATIVE_SPLIT_OFF = 0, - FT1000MP_NATIVE_SPLIT_ON, - FT1000MP_NATIVE_RECALL_MEM, - FT1000MP_NATIVE_VFO_TO_MEM, - FT1000MP_NATIVE_VFO_A, - FT1000MP_NATIVE_VFO_B, - FT1000MP_NATIVE_M_TO_VFO, - FT1000MP_NATIVE_RIT_ON, - FT1000MP_NATIVE_RIT_OFF, - FT1000MP_NATIVE_XIT_ON, - FT1000MP_NATIVE_XIT_OFF, - FT1000MP_NATIVE_FREQA_SET, - FT1000MP_NATIVE_FREQB_SET, - FT1000MP_NATIVE_MODE_SET_LSB, - FT1000MP_NATIVE_MODE_SET_USB, - FT1000MP_NATIVE_MODE_SET_CW, - FT1000MP_NATIVE_MODE_SET_CWR, - FT1000MP_NATIVE_MODE_SET_AM, - FT1000MP_NATIVE_MODE_SET_AMS, - FT1000MP_NATIVE_MODE_SET_FM, - FT1000MP_NATIVE_MODE_SET_FMW, - FT1000MP_NATIVE_MODE_SET_RTTY_LSB, - FT1000MP_NATIVE_MODE_SET_RTTY_USB, - FT1000MP_NATIVE_MODE_SET_DATA_LSB, - FT1000MP_NATIVE_MODE_SET_DATA_FM, - FT1000MP_NATIVE_MODE_SET_LSB_B, - FT1000MP_NATIVE_MODE_SET_USB_B, - FT1000MP_NATIVE_MODE_SET_CW_B, - FT1000MP_NATIVE_MODE_SET_CWR_B, - FT1000MP_NATIVE_MODE_SET_AM_B, - FT1000MP_NATIVE_MODE_SET_AMS_B, - FT1000MP_NATIVE_MODE_SET_FM_B, - FT1000MP_NATIVE_MODE_SET_FMW_B, - FT1000MP_NATIVE_MODE_SET_RTTY_LSB_B, - FT1000MP_NATIVE_MODE_SET_RTTY_USB_B, - FT1000MP_NATIVE_MODE_SET_DATA_LSB_B, - FT1000MP_NATIVE_MODE_SET_DATA_FM_B, - FT1000MP_NATIVE_PACING, - FT1000MP_NATIVE_PTT_OFF, - FT1000MP_NATIVE_PTT_ON, - FT1000MP_NATIVE_VFO_UPDATE, - FT1000MP_NATIVE_CURR_VFO_UPDATE, - FT1000MP_NATIVE_UPDATE, - FT1000MP_NATIVE_AB, - FT1000MP_NATIVE_SIZE /* end marker, value indicates number of */ - /* native cmd entries */ +enum ft1000mp_native_cmd_e +{ + FT1000MP_NATIVE_SPLIT_OFF = 0, + FT1000MP_NATIVE_SPLIT_ON, + FT1000MP_NATIVE_RECALL_MEM, + FT1000MP_NATIVE_VFO_TO_MEM, + FT1000MP_NATIVE_VFO_A, + FT1000MP_NATIVE_VFO_B, + FT1000MP_NATIVE_M_TO_VFO, + FT1000MP_NATIVE_RIT_ON, + FT1000MP_NATIVE_RIT_OFF, + FT1000MP_NATIVE_XIT_ON, + FT1000MP_NATIVE_XIT_OFF, + FT1000MP_NATIVE_RXIT_SET, + FT1000MP_NATIVE_FREQA_SET, + FT1000MP_NATIVE_FREQB_SET, + FT1000MP_NATIVE_MODE_SET_LSB, + FT1000MP_NATIVE_MODE_SET_USB, + FT1000MP_NATIVE_MODE_SET_CW, + FT1000MP_NATIVE_MODE_SET_CWR, + FT1000MP_NATIVE_MODE_SET_AM, + FT1000MP_NATIVE_MODE_SET_AMS, + FT1000MP_NATIVE_MODE_SET_FM, + FT1000MP_NATIVE_MODE_SET_FMW, + FT1000MP_NATIVE_MODE_SET_RTTY_LSB, + FT1000MP_NATIVE_MODE_SET_RTTY_USB, + FT1000MP_NATIVE_MODE_SET_DATA_LSB, + FT1000MP_NATIVE_MODE_SET_DATA_FM, + FT1000MP_NATIVE_MODE_SET_LSB_B, + FT1000MP_NATIVE_MODE_SET_USB_B, + FT1000MP_NATIVE_MODE_SET_CW_B, + FT1000MP_NATIVE_MODE_SET_CWR_B, + FT1000MP_NATIVE_MODE_SET_AM_B, + FT1000MP_NATIVE_MODE_SET_AMS_B, + FT1000MP_NATIVE_MODE_SET_FM_B, + FT1000MP_NATIVE_MODE_SET_FMW_B, + FT1000MP_NATIVE_MODE_SET_RTTY_LSB_B, + FT1000MP_NATIVE_MODE_SET_RTTY_USB_B, + FT1000MP_NATIVE_MODE_SET_DATA_LSB_B, + FT1000MP_NATIVE_MODE_SET_DATA_FM_B, + FT1000MP_NATIVE_PACING, + FT1000MP_NATIVE_PTT_OFF, + FT1000MP_NATIVE_PTT_ON, + FT1000MP_NATIVE_VFO_UPDATE, + FT1000MP_NATIVE_CURR_VFO_UPDATE, + FT1000MP_NATIVE_UPDATE, + FT1000MP_NATIVE_AB, + FT1000MP_NATIVE_SIZE /* end marker, value indicates number of */ + /* native cmd entries */ }; @@ -124,18 +128,21 @@ typedef enum ft1000mp_native_cmd_e ft1000mp_native_cmd_t; * */ -#define MODE_SET_LSB 0x00 -#define MODE_SET_USB 0x01 -#define MODE_SET_CW 0x02 -#define MODE_SET_CWR 0x03 -#define MODE_SET_AM 0x04 -#define MODE_SET_AMS 0x05 -#define MODE_SET_FM 0x06 -#define MODE_SET_FMW 0x07 /* what width is that? */ -#define MODE_SET_RTTYL 0x08 -#define MODE_SET_RTTYU 0x09 -#define MODE_SET_PKTL 0x0a -#define MODE_SET_PKTF 0x0b +#define MODE_SET_LSB 0x00 +#define MODE_SET_USB 0x01 +#define MODE_SET_CW 0x02 +#define MODE_SET_CWR 0x03 +#define MODE_SET_AM 0x04 +#define MODE_SET_AMS 0x05 +#define MODE_SET_FM 0x06 +#define MODE_SET_FMW 0x07 /* what width is that? */ +#define MODE_SET_RTTYL 0x08 +#define MODE_SET_RTTYU 0x09 +#define MODE_SET_PKTL 0x0a +#define MODE_SET_PKTF 0x0b + + + /* @@ -196,6 +203,8 @@ typedef enum ft1000mp_native_cmd_e ft1000mp_native_cmd_t; #define FT1000MP_SUMO_VFO_B_MODE 0x17 #define FT1000MP_SUMO_VFO_A_IF 0x08 #define FT1000MP_SUMO_VFO_B_IF 0x18 +#define FT1000MP_SUMO_VFO_A_MEM 0x09 +#define FT1000MP_SUMO_VFO_B_MEM 0x19 /* mask extra mode bit from IF Filter status byte in VFO status block */ @@ -220,18 +229,24 @@ int ft1000mp_get_split_freq(RIG *rig, vfo_t vfo, freq_t *tx_freq); int ft1000mp_set_split_vfo(RIG *rig, vfo_t vfo, split_t split, vfo_t tx_vfo); int ft1000mp_get_split_vfo(RIG *rig, vfo_t vfo, split_t *split, vfo_t *tx_vfo); -int ft1000mp_set_mode(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width); /* select mode */ -int ft1000mp_get_mode(RIG *rig, vfo_t vfo, rmode_t *mode, pbwidth_t *width); /* get mode */ +int ft1000mp_set_mode(RIG *rig, vfo_t vfo, rmode_t mode, + pbwidth_t width); /* select mode */ +int ft1000mp_get_mode(RIG *rig, vfo_t vfo, rmode_t *mode, + pbwidth_t *width); /* get mode */ int ft1000mp_set_vfo(RIG *rig, vfo_t vfo); /* select vfo */ int ft1000mp_get_vfo(RIG *rig, vfo_t *vfo); /* get vfo */ int ft1000mp_set_rit(RIG *rig, vfo_t vfo, shortfreq_t rit); -int ft1000mp_get_rit(RIG *rig, vfo_t vfo, shortfreq_t *rit); -int ft1000mp_set_xit(RIG *rig, vfo_t vfo, shortfreq_t xit); -int ft1000mp_get_xit(RIG *rig, vfo_t vfo, shortfreq_t *xit); +int ft1000mp_set_xit(RIG *rig, vfo_t vfo, shortfreq_t rit); +int ft1000mp_set_rxit(RIG *rig, vfo_t vfo, shortfreq_t rit); +int ft1000mp_get_rxit(RIG *rig, vfo_t vfo, shortfreq_t *rit); int ft1000mp_get_level(RIG *rig, vfo_t vfo, setting_t level, value_t *val); int ft1000mp_set_ptt(RIG *rig, vfo_t vfo, ptt_t ptt); +int ft1000mp_set_func(RIG *rig, vfo_t vfo, setting_t func, int status); +int ft1000mp_get_func(RIG *rig, vfo_t vfo, setting_t func, int *status); + + #endif /* _FT1000MP_H */ commit 54106100459c4cd3ce82761d545929c331a25122 Author: Michael Black W9MDB <mdb...@ya...> Date: Wed Jul 29 16:07:06 2020 -0500 Fix RFPOWER scale for FT991 https://github.com/Hamlib/Hamlib/issues/354 diff --git a/rigs/yaesu/newcat.c b/rigs/yaesu/newcat.c index 365bc513..fec6f63a 100644 --- a/rigs/yaesu/newcat.c +++ b/rigs/yaesu/newcat.c @@ -3349,6 +3349,7 @@ int newcat_get_level(RIG *rig, vfo_t vfo, setting_t level, value_t *val) scale = newcat_is_rig(rig, RIG_MODEL_FT891) ? 100. : scale ; scale = newcat_is_rig(rig, RIG_MODEL_FT950) ? 100. : scale ; scale = newcat_is_rig(rig, RIG_MODEL_FT1200) ? 100. : scale ; + scale = newcat_is_rig(rig, RIG_MODEL_FT991) ? 100. : scale ; val->f = (float)atoi(retlvl) / scale; break; commit 8aa5126650b7d649347a6897b7ab0141b2ecff2d Author: Michael Black W9MDB <mdb...@ya...> Date: Wed Jul 29 16:03:54 2020 -0500 Add first cut of SWR conversion for Yaesu rigs https://github.com/Hamlib/Hamlib/issues/354 diff --git a/rigs/yaesu/newcat.c b/rigs/yaesu/newcat.c index 0ec2f0ed..365bc513 100644 --- a/rigs/yaesu/newcat.c +++ b/rigs/yaesu/newcat.c @@ -40,6 +40,7 @@ #include "iofunc.h" #include "serial.h" #include "misc.h" +#include "cal.h" #include "newcat.h" /* global variables */ @@ -93,6 +94,19 @@ typedef struct _yaesu_newcat_commands ncboolean ft101; } yaesu_newcat_commands_t; +const cal_table_float_t yaesu_default_swr_cal = +{ + 4, + { // first cut at generic Yaesu table, need more points probably + // based on testing by Adam M7OTP on FT-991 + {12, 1.0f}, + {39, 1.35f}, + {89, 2.0f}, + {242, 5.0f} + } +}; + + // Easy reference to rig model -- it is set in newcat_valid_command static ncboolean is_ft450; static ncboolean is_ft891; @@ -3346,11 +3360,20 @@ int newcat_get_level(RIG *rig, vfo_t vfo, setting_t level, value_t *val) val->f = (float)atoi(retlvl) / scale; break; + case RIG_LEVEL_SWR: + if (rig->caps->swr_cal.size == 0) + { + val->f = rig_raw2val_float(atoi(retlvl), &yaesu_default_swr_cal); + } + else + { + val->f = rig_raw2val_float(atoi(retlvl), &rig->caps->swr_cal); + } + break; case RIG_LEVEL_AF: case RIG_LEVEL_MICGAIN: case RIG_LEVEL_RF: case RIG_LEVEL_SQL: - case RIG_LEVEL_SWR: case RIG_LEVEL_ALC: val->f = (float)atoi(retlvl) / 255.; break; diff --git a/rigs/yaesu/newcat.h b/rigs/yaesu/newcat.h index eebe7ca3..eaf80169 100644 --- a/rigs/yaesu/newcat.h +++ b/rigs/yaesu/newcat.h @@ -50,7 +50,7 @@ typedef char ncboolean; /* shared function version */ -#define NEWCAT_VER "20200614" +#define NEWCAT_VER "20200729" /* Hopefully large enough for future use, 128 chars plus '\0' */ #define NEWCAT_DATA_LEN 129 commit 23d4cc73dc3723d6f688f6eaa8c54ed0d8a83bf9 Author: Michael Black W9MDB <mdb...@ya...> Date: Tue Jul 28 06:51:50 2020 -0500 Adding codeql build for github security analysis diff --git a/.github/codeql-analysis.yml b/.github/codeql-analysis.yml new file mode 100644 index 00000000..9b72a599 --- /dev/null +++ b/.github/codeql-analysis.yml @@ -0,0 +1,55 @@ +name: "CodeQL" + +on: + push: + branches: [master, ] + pull_request: + # The branches below must be a subset of the branches above + branches: [master] + schedule: + - cron: '0 5 * * 2' + +jobs: + analyse: + name: Analyse + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + with: + # We must fetch at least the immediate parents so that if this is + # a pull request then we can checkout the head. + fetch-depth: 2 + + # If this run was triggered by a pull request event, then checkout + # the head of the pull request instead of the merge commit. + - run: git checkout HEAD^2 + if: ${{ github.event_name == 'pull_request' }} + + # Initializes the CodeQL tools for scanning. + - name: Initialize CodeQL + uses: github/codeql-action/init@v1 + # Override language selection by uncommenting this and choosing your languages + # with: + # languages: go, javascript, csharp, python, cpp, java + + # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). + # If this step fails, then you should remove it and run the build manually (see below) + #- name: Autobuild + # uses: github/codeql-action/autobuild@v1 + + # ℹ️ Command-line programs to run using the OS shell. + # 📚 https://git.io/JvXDl + + # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines + # and modify them (or add more) to build your code if your project + # uses a compiled language + + - run: | + ./bootstrap + ./configure + make + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v1 commit 9d64f642ce8e030cc9b18fb77a3c7003e8853152 Author: Michael Black W9MDB <mdb...@ya...> Date: Mon Jul 27 12:54:37 2020 -0500 Fix FT1000MP set_rit -- helps if one reads the manual https://github.com/Hamlib/Hamlib/issues/353 diff --git a/rigs/yaesu/ft1000mp.c b/rigs/yaesu/ft1000mp.c index 6a60f38a..c1b54442 100644 --- a/rigs/yaesu/ft1000mp.c +++ b/rigs/yaesu/ft1000mp.c @@ -216,7 +216,7 @@ const struct rig_caps ft1000mp_caps = RIG_MODEL(RIG_MODEL_FT1000MP), .model_name = "FT-1000MP", .mfg_name = "Yaesu", - .version = "20200716.0", + .version = "20200727.0", .copyright = "LGPL", .status = RIG_STATUS_STABLE, .rig_type = RIG_TYPE_TRANSCEIVER, @@ -1170,10 +1170,8 @@ int ft1000mp_set_rit(RIG *rig, vfo_t vfo, shortfreq_t rit) */ memcpy(&priv->p_cmd, &ncmd[FT1000MP_NATIVE_RIT_ON].nseq, YAESU_CMD_LENGTH); - // scaled 2's complement - rit = ((~(rit*16/10))&0xffff)+1; - priv->p_cmd[0] = rit>>8; - priv->p_cmd[1] = rit&0xff; + to_bcd(priv->p_cmd, labs(rit) / 10, 4); /* store bcd format in in p_cmd */ + priv->p_cmd[2] = rit >= 0 ? 0x00 : 0xff; cmd = priv->p_cmd; /* get native sequence */ write_block(&rs->rigport, (char *) cmd, YAESU_CMD_LENGTH); @@ -1238,7 +1236,7 @@ int ft1000mp_get_rit(RIG *rig, vfo_t vfo, shortfreq_t *rit) if (p[0] & 0x80) { - f = ~(f - 1) & 0x7fff; // two's complement + f = (~(f - 1) & 0x7fff) * -1; // two's complement } f = f * 10 / 16; ----------------------------------------------------------------------- Summary of changes: .github/codeql-analysis.yml | 55 +++++++ rigs/yaesu/ft1000mp.c | 341 ++++++++++++++++++++++++-------------------- rigs/yaesu/ft1000mp.h | 143 ++++++++++--------- rigs/yaesu/newcat.c | 26 +++- rigs/yaesu/newcat.h | 2 +- 5 files changed, 347 insertions(+), 220 deletions(-) create mode 100644 .github/codeql-analysis.yml hooks/post-receive -- Hamlib -- Ham radio control libraries |
From: Michael B. <mdb...@us...> - 2020-07-26 20:29:39
|
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 6dbbe4a8ff55c3121f8736cf9c9582ba08c243a0 (commit) via 83249fb36a365863ff71ec0d535b13d32e934711 (commit) from 31115b6a161fe147f8f70e6528051aaf1d82e6cb (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 6dbbe4a8ff55c3121f8736cf9c9582ba08c243a0 Author: Michael Black W9MDB <mdb...@ya...> Date: Sun Jul 26 15:17:42 2020 -0500 Fix FT1000MP set_rit https://github.com/Hamlib/Hamlib/issues/353 diff --git a/rigs/yaesu/ft1000mp.c b/rigs/yaesu/ft1000mp.c index b4608d87..6a60f38a 100644 --- a/rigs/yaesu/ft1000mp.c +++ b/rigs/yaesu/ft1000mp.c @@ -1170,8 +1170,10 @@ int ft1000mp_set_rit(RIG *rig, vfo_t vfo, shortfreq_t rit) */ memcpy(&priv->p_cmd, &ncmd[FT1000MP_NATIVE_RIT_ON].nseq, YAESU_CMD_LENGTH); - to_bcd(priv->p_cmd, labs(rit) / 10, 4); /* store bcd format in in p_cmd */ - priv->p_cmd[2] = rit >= 0 ? 0x00 : 0xff; + // scaled 2's complement + rit = ((~(rit*16/10))&0xffff)+1; + priv->p_cmd[0] = rit>>8; + priv->p_cmd[1] = rit&0xff; cmd = priv->p_cmd; /* get native sequence */ write_block(&rs->rigport, (char *) cmd, YAESU_CMD_LENGTH); commit 83249fb36a365863ff71ec0d535b13d32e934711 Author: Michael Black W9MDB <mdb...@ya...> Date: Sun Jul 26 15:07:52 2020 -0500 Fix FT1000MP RIT read for negative numbers Fix FT1000MP debug statement https://github.com/Hamlib/Hamlib/issues/353 https://github.com/Hamlib/Hamlib/issues/352 diff --git a/rigs/yaesu/ft1000mp.c b/rigs/yaesu/ft1000mp.c index e7ab1097..b4608d87 100644 --- a/rigs/yaesu/ft1000mp.c +++ b/rigs/yaesu/ft1000mp.c @@ -711,8 +711,6 @@ int ft1000mp_set_freq(RIG *rig, vfo_t vfo, freq_t freq) struct ft1000mp_priv_data *p; unsigned char *cmd; /* points to sequence to send */ int cmd_index = 0; - // cppcheck-suppress * - char *fmt = "%s: requested freq after conversion = %"PRIll" Hz\n"; rig_debug(RIG_DEBUG_TRACE, "%s: ft1000mp_set_freq called\n", __func__); @@ -756,7 +754,10 @@ int ft1000mp_set_freq(RIG *rig, vfo_t vfo, freq_t freq) to_bcd(p->p_cmd, freq / 10, 8); /* store bcd format in in p_cmd */ /* TODO -- fix 10Hz resolution -- FS */ - rig_debug(RIG_DEBUG_TRACE, fmt, __func__, (int64_t)from_bcd(p->p_cmd, 8) * 10); + // cppcheck-suppress * + rig_debug(RIG_DEBUG_TRACE, + "%s: requested freq after conversion = %"PRIll" Hz\n", __func__, + (int64_t)from_bcd(p->p_cmd, 8) * 10); cmd = p->p_cmd; /* get native sequence */ write_block(&rig_s->rigport, (char *) cmd, YAESU_CMD_LENGTH); @@ -1231,12 +1232,11 @@ int ft1000mp_get_rit(RIG *rig, vfo_t vfo, shortfreq_t *rit) p = &priv->update_data[FT1000MP_SUMO_VFO_A_CLAR]; /* CURR_VFO has VFOA offset */ } - /* big endian integer, kinda */ - f = ((p[0] & 0x7f) << 8) + p[1]; + f = (p[0] << 8) + p[1]; if (p[0] & 0x80) { - f *= -1; + f = ~(f - 1) & 0x7fff; // two's complement } f = f * 10 / 16; ----------------------------------------------------------------------- Summary of changes: rigs/yaesu/ft1000mp.c | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) hooks/post-receive -- Hamlib -- Ham radio control libraries |
From: Michael B. <mdb...@us...> - 2020-07-24 19:23:55
|
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 31115b6a161fe147f8f70e6528051aaf1d82e6cb (commit) via 119f5e6eb98902177cbfdd5db9967cb1c309a644 (commit) from 298a1be19acbce66681597703430e77432c874d6 (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 31115b6a161fe147f8f70e6528051aaf1d82e6cb Author: Michael Black W9MDB <mdb...@ya...> Date: Fri Jul 24 14:23:38 2020 -0500 deprecate itu_region diff --git a/dummy/netrigctl.c b/dummy/netrigctl.c index b51a62c1..5ce28495 100644 --- a/dummy/netrigctl.c +++ b/dummy/netrigctl.c @@ -234,7 +234,7 @@ static int netrigctl_open(RIG *rig) return (ret < 0) ? ret : -RIG_EPROTO; } - rs->itu_region = atoi(buf); + rs->deprecated_itu_region = atoi(buf); for (i = 0; i < FRQRANGESIZ; i++) { diff --git a/include/hamlib/rig.h b/include/hamlib/rig.h index e919aa88..b382f9d1 100644 --- a/include/hamlib/rig.h +++ b/include/hamlib/rig.h @@ -1970,7 +1970,7 @@ struct rig_state { double vfo_comp; /*!< VFO compensation in PPM, 0.0 to disable */ - int itu_region; /*!< ITU region to select among freq_range_t */ + int deprecated_itu_region; /*!< ITU region to select among freq_range_t */ freq_range_t rx_range_list[FRQRANGESIZ]; /*!< Receive frequency range list */ freq_range_t tx_range_list[FRQRANGESIZ]; /*!< Transmit frequency range list */ commit 119f5e6eb98902177cbfdd5db9967cb1c309a644 Author: Michael Black W9MDB <mdb...@ya...> Date: Fri Jul 24 12:57:33 2020 -0500 Remove itu_region from rigctl_paparse.c and replace with constant 0 -- it's not used at all by any rig diff --git a/tests/rigctl_parse.c b/tests/rigctl_parse.c index 708205a4..ce37d0a5 100644 --- a/tests/rigctl_parse.c +++ b/tests/rigctl_parse.c @@ -4004,7 +4004,11 @@ declare_proto_rig(dump_state) #define RIGCTLD_PROT_VER 1 fprintf(fout, "%d\n", RIGCTLD_PROT_VER); fprintf(fout, "%d\n", rig->caps->rig_model); +#if 0 // deprecated -- not one rig uses this fprintf(fout, "%d\n", rs->itu_region); +#else // need to print something to maintain backward compatbility + fprintf(fout, "%d\n", 0); +#endif for (i = 0; i < FRQRANGESIZ && !RIG_IS_FRNG_END(rs->rx_range_list[i]); i++) { ----------------------------------------------------------------------- Summary of changes: dummy/netrigctl.c | 2 +- include/hamlib/rig.h | 2 +- tests/rigctl_parse.c | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) hooks/post-receive -- Hamlib -- Ham radio control libraries |
From: Michael B. <mdb...@us...> - 2020-07-24 14:04:39
|
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 298a1be19acbce66681597703430e77432c874d6 (commit) via 0ed89a77c89f31f5e85a35c3cecca818752e3f0c (commit) via 5be146cb2f5c9ffaf15eba8ca6573d46e709cce9 (commit) via 238d90ab06d9a1b133590e2e81eb0d6852dda73d (commit) via a507bfec80c92ae36702a2a08f9003467cc1d233 (commit) via d7b332c3f7d28573aec2a234d3c40ee6b7f000a0 (commit) from f133483dd8d6946e185bb00b1c0d1c8cbefbed5b (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 298a1be19acbce66681597703430e77432c874d6 Merge: 0ed89a77 5be146cb Author: Michael Black W9MDB <mdb...@ya...> Date: Fri Jul 24 08:52:29 2020 -0500 Merge branch 'master' of https://github.com/Hamlib/Hamlib commit 0ed89a77c89f31f5e85a35c3cecca818752e3f0c Author: Michael Black W9MDB <mdb...@ya...> Date: Fri Jul 24 08:52:21 2020 -0500 Remove time() from date_strget as monotonicity was broken using this diff --git a/src/debug.c b/src/debug.c index edf94112..76e0f2ef 100644 --- a/src/debug.c +++ b/src/debug.c @@ -149,12 +149,10 @@ void HAMLIB_API rig_set_debug_time_stamp(int flag) char *date_strget(char *buf, int buflen) { char tmp[16]; - time_t mytime; struct tm *mytm; struct timeval tv; - mytime = time(NULL); - mytm = gmtime(&mytime); gettimeofday(&tv, NULL); + mytm = gmtime(&tv.tv_sec); strftime(buf, buflen, "%Y-%m-%d:%H:%M:%S.", mytm); sprintf(tmp, "%06ld", (long)tv.tv_usec); strcat(buf, tmp); commit 5be146cb2f5c9ffaf15eba8ca6573d46e709cce9 Merge: f133483d 238d90ab Author: Michael Black <mdb...@ya...> Date: Fri Jul 24 08:50:59 2020 -0500 Merge pull request #351 from dforsi/fix/fix-typos Fix/fix typos commit 238d90ab06d9a1b133590e2e81eb0d6852dda73d Author: Daniele Forsi <df...@gm...> Date: Fri Jul 24 08:26:40 2020 +0200 Fix more spelling errors Fixed by hand. diff --git a/rigs/yaesu/newcat.c b/rigs/yaesu/newcat.c index cfe40577..0ec2f0ed 100644 --- a/rigs/yaesu/newcat.c +++ b/rigs/yaesu/newcat.c @@ -6321,7 +6321,7 @@ int newcat_get_vfo_mode(RIG *rig, vfo_t *vfo_mode) /* - * Writed data and waits for response + * Writes data and waits for response * input: complete CAT command string including termination in cmd_str * output: complete CAT command answer string in ret_data * return: RIG_OK or error diff --git a/rotators/meade/meade.c b/rotators/meade/meade.c index bce8bcd9..b842eecc 100644 --- a/rotators/meade/meade.c +++ b/rotators/meade/meade.c @@ -68,20 +68,20 @@ struct meade_priv_data * Serial Cable. * * | Command | Attribute | Return value | Description | - * -------------------------------------------------------------------- - * | :Me# | - | - | Moves telescope east | - * | :Mn# | - | - | Moves telescope north | - * | :Ms# | - | - | Moves telescope south | - * | :Mw# | - | - | Moves telescope west | - * | :AL# | - | - | Set to Land mode | - * | :Sz DDD*MM# | D,M | 1' == OK | Set Target azimuth | - * | :SasDD*MM# | s,D,M | 1' == OK | Set Target elevation | - * | :Mw# | - | - | Moves telescope west | - * | :Q# | - | - | Halt all slewing | - * | :SoDD# | D | '1' == OK | Set minimal elevation | - * | :ShDD# | D | '1' == OK | Set maximal elevation | - * | :MA# | - | '0' == OK | GoTo Target | - * | :D# | - | 0x7F == YES | Check if active movement | + * --------------------------------------------------------------------- + * | :Me# | - | - | Moves telescope east | + * | :Mn# | - | - | Moves telescope north | + * | :Ms# | - | - | Moves telescope south | + * | :Mw# | - | - | Moves telescope west | + * | :AL# | - | - | Set to Land mode | + * | :Sz DDD*MM# | D,M | 1' == OK | Set Target azimuth | + * | :SasDD*MM# | s,D,M | 1' == OK | Set Target elevation | + * | :Mw# | - | - | Moves telescope west | + * | :Q# | - | - | Halt all slewing | + * | :SoDD# | D | '1' == OK | Set minimal elevation | + * | :ShDD# | D | '1' == OK | Set maximal elevation | + * | :MA# | - | '0' == OK | GoTo Target | + * | :D# | - | 0x7F == YES | Check if active movement | * */ commit a507bfec80c92ae36702a2a08f9003467cc1d233 Author: Daniele Forsi <df...@gm...> Date: Fri Jul 24 09:06:37 2020 +0200 Fix more spelling errors As the previous commit, but adding --interactive=2 and ba codespell --write-changes --interactive=2 --summary --skip=*.m4 --ignore-words-list="ba,develope,get's,quitt,setts,som,ue,vektor" diff --git a/rigs/icom/optoscan.c b/rigs/icom/optoscan.c index 86484836..da37e6cd 100644 --- a/rigs/icom/optoscan.c +++ b/rigs/icom/optoscan.c @@ -788,7 +788,7 @@ static int optoscan_send_freq(RIG *rig, pltstate_t *state) /* read echo'd chars only...there will be no ACK from this command * * Note: - * It may have waited fro pltstate->usleep_time before reading the echo'd + * It may have waited for pltstate->usleep_time before reading the echo'd * chars, but the read will be blocking anyway. --SF * */ return icom_transaction(rig, C_CTL_MISC, S_OPTO_NXT, buff, 6, NULL, NULL); diff --git a/rigs/kenwood/README.ts2k b/rigs/kenwood/README.ts2k index cbc92a6d..acbfecac 100644 --- a/rigs/kenwood/README.ts2k +++ b/rigs/kenwood/README.ts2k @@ -25,7 +25,7 @@ File change summary: (Hopefully, I'll keep this updated...) Makefile.am Added ts2k.c, ts2k.h ts2k.status current status in the form of rigctl help - Takes alot of time. May or may not be kept + Takes a lot of time. May or may not be kept up to date. Anybody write an expect script? ts2k.c New ts2k_menu.c (not implemented; work to allow menus to set the diff --git a/rigs/tentec/jupiter.c b/rigs/tentec/jupiter.c index f0148a13..eecb4697 100644 --- a/rigs/tentec/jupiter.c +++ b/rigs/tentec/jupiter.c @@ -1103,7 +1103,7 @@ int tt538_get_func(RIG *rig, vfo_t vfo, setting_t func, int *status) * |__|__|__| (a 3 bit value, 0 - 7 indicating NB "strength" * 4 2 1 * - * Apparently the "ON" / "OFF" state ot the NB is NOT available for reading. This + * Apparently the "ON" / "OFF" state of the NB is NOT available for reading. This * state is visible in the Jupiter's menu. Hamlib does not support a "level" for * NB. We only recognize zero (off) or non-zero (on) for this function on read. */ diff --git a/rotators/meade/meade.c b/rotators/meade/meade.c index 03bab098..bce8bcd9 100644 --- a/rotators/meade/meade.c +++ b/rotators/meade/meade.c @@ -60,7 +60,7 @@ struct meade_priv_data * Not the full set of available commands is used, the list here shows * only the commands of the telescope used by hamlib * - * All used Commands are supportet by Meade Telescopes with LX-200 protocol + * All used Commands are supported by Meade Telescopes with LX-200 protocol * (e.g. DS-2000 with Autostar) and should also work with the LX16 and * LX200GPS. * Tested only with DS-2000 and AutoStar 494 together with Meade 506 i2c to @@ -398,7 +398,7 @@ static int meade_park(ROT *rot) } /* - * Reset: Nothing to do exept parking + * Reset: Nothing to do except parking */ static int meade_reset(ROT *rot, rot_reset_t reset) { commit d7b332c3f7d28573aec2a234d3c40ee6b7f000a0 Author: Daniele Forsi <df...@gm...> Date: Fri Jul 24 09:02:12 2020 +0200 Fix spelling errors Fixed using the following command: codespell --write-changes --summary --skip=*.m4 --ignore-words-list="develope,get's,quitt,setts,som,ue,vektor" codespell --write-changes --summary --skip=aclocal.m4,lib --ignore-words-list="develope,get's,quitt,setts,som,ue,vektor" Codespell home page: https://github.com/codespell-project/codespell diff --git a/INSTALL b/INSTALL index e1aef730..81b451bf 100644 --- a/INSTALL +++ b/INSTALL @@ -317,7 +317,7 @@ non-default --prefix is passed to 'configure', the 'lappend' line in tcltest.tcl script will need to be modified accordingly so the script can load the Hamlib package. As TCL doesn't seem to have a "standard" location for additional packages and since there seemed to be no common location among distributions, -this path was chosen abitrarily. Any patches to improve installation path +this path was chosen arbitrarily. Any patches to improve installation path discovery of local packages are welcome. Lua binding will be installed into $(libdir)/lua/$(LUA_VERSION) (default). diff --git a/NEWS b/NEWS index b36d773a..6ac54b6f 100644 --- a/NEWS +++ b/NEWS @@ -62,7 +62,7 @@ Version 3.2 * New Flrig backend, Mike, W9MDB * New model, IC-M710, Mike, W9MDB * Build instructions and test script for Python3 - * Rename autogen.sh to bootsrap and don't call configure + * Rename autogen.sh to bootstrap and don't call configure * micro-ham support. Christoph, DL1YCF * New rotator, SPID MD-01/02 in ROT2 mode, Norvald Ryeng, LA6YKA * New model, Flex 6400/6600, Mike, W9MDB @@ -378,13 +378,13 @@ Version 1.2.0 - locator and dec/dms interface rework - bump library CURRENT version info * new backends: Lowe (HF-235), FlexRadio (SDR-1000), - skelton TAPR (DSP-10), skelton RFT, + skeleton TAPR (DSP-10), skeleton RFT, Ten-Tec models and many new models & fixes * new rotator backends: sartek * frontend: emulated transceive mode using polling * icom: implemented retry, esp. useful for CI-V * icom: pipelined tuning on Optoscan's - * microtune: no need of root priviledges anymore + * microtune: no need of root privileges anymore * bindings: added Python, new install method (perl is installed in $prefix) * rigmem: new command to load/store memory content from/to XML file * port: NetBSD & FreeBSD, mingw32(Windows) port, MacOSX ready diff --git a/PLAN b/PLAN index 2ce15616..d22b25b5 100644 --- a/PLAN +++ b/PLAN @@ -83,7 +83,7 @@ o available "set mode" items (ie. rig setup), and provide a way to modify them o DSP ? o max memory channel -o per rig timeout/retry (can be overriden) +o per rig timeout/retry (can be overridden) o Write some memory channel handling (name, mode, freq/vfo, duplex, split, ..) Any other ideas? diff --git a/README.betatester b/README.betatester index 622f2330..7d091772 100644 --- a/README.betatester +++ b/README.betatester @@ -64,7 +64,7 @@ The advantage of the Git snapshot is that you won't need as many tools installed to build Hamlib as the work of the GNU Build System has already been done. Most of the other packages listed below will be needed. If you tell the 'configure' script to build certain parts of Hamlib like -documentation or scripting language bindings the relavent optional packages +documentation or scripting language bindings the relevant optional packages will be needed. See 'configure --help' for more information. Here is a list of development packages needed for a complete build of the diff --git a/README.developer b/README.developer index 140c068a..1c57945b 100644 --- a/README.developer +++ b/README.developer @@ -181,7 +181,7 @@ the hamlib-developer mailing list. See section 8.3. One of the most powerful features of Git is its ability to make working with branches easy. It also allows the developers to "cherry pick" patches from the master development branch into stable release branches. In this manner -we can accomodate patches submitted against a stable release and merge them +we can accommodate patches submitted against a stable release and merge them into master as well. Such parallel development is a new feature for our project and there will be a learning curve! @@ -513,11 +513,11 @@ So far, Hamlib has been tested successfully under the following systems: Note: The '.' character is a Git wildcard that includes all new and modified files in your working tree. - The '-m' option may be ommitted, in which case Git will start + The '-m' option may be omitted, in which case Git will start your default editor for a longer commit message. Commit messages generally have the form of a short subject line, then a blank line, and then as much text (broken into paragraphs as - needed) as needed for a good decription of the commit. + needed) as needed for a good description of the commit. Assuming your working tree was cloned from the SF.net repository or N0NB's GitHub repository, you can now issue a pull request @@ -722,7 +722,7 @@ the rules hereunder: * Touching the frontend (files in src/ and include/hamlib) always requires discussion beforehand on the hamlib-developer list. * Announce on the hamlib-developer list if you're about to do serious - maintainance work + maintenance work Thanks for contributing and have fun! diff --git a/README.release b/README.release index acc11410..d661fdc6 100644 --- a/README.release +++ b/README.release @@ -69,11 +69,11 @@ remote repository, "origin"): ABI_REVISION, and ABI_AGE are set in configure.ac. ABI_VERSION should be advanced when the ABI is affected by changes in the library interface. ABI_REVISION is the revision and indicates source changes in Hamlib but no - change in ABI. ABI_AGE reflects backward compatibity to a previous version. + change in ABI. ABI_AGE reflects backward compatibility to a previous version. Per the libtool manual, this value is subtracted from ABI_VERSION to note compatible prior versions. Per the libtool manual, so long as the library interface is added to and nothing is removed or changed, backward - compatibity should exist. When the API is changed, ABI_VERSION will be + compatibility should exist. When the API is changed, ABI_VERSION will be advanced, ABI_REVISION will be reset to 0, and ABI_AGE may be advanced pending API/ABI changes. @@ -113,7 +113,7 @@ See README.build-win32 for information on prerequisites, etc. * Build Windows DLL with stdcall convention (script in progress): Ditto but with HAMLIB_API set to __stdcall in include/hamlib/rig_dll.h before re-compiling. - Subsitute cdecl by stdcall in README.txt. + Substitute cdecl by stdcall in README.txt. * Release the file(s) diff --git a/bindings/Makefile.am b/bindings/Makefile.am index 682f7385..a3b590f6 100644 --- a/bindings/Makefile.am +++ b/bindings/Makefile.am @@ -157,7 +157,7 @@ hamlibtcl_la_DATA = pkgIndex.tcl # set by $(hamlibtcl_ladir) hamlibtcl_la_LTLIBRARIES = $(tcl_ltlib) -# Having the first occurance of 'hamlib' capitalized seemed to cause confusion +# Having the first occurrence of 'hamlib' capitalized seemed to cause confusion # for the TCL interpreter loading the Hamlib module. pkgIndex.tcl: Makefile $(AM_V_at)echo 'package ifneeded hamlib $(PKG_VER) [list load [file join $$dir $(DLL)] Hamlib]' > pkgIndex.tcl diff --git a/bindings/README.python b/bindings/README.python index 10f36e28..38fe157b 100644 --- a/bindings/README.python +++ b/bindings/README.python @@ -31,7 +31,7 @@ the main source directory. Adjust your paths accordingly. Adjust your --prefix option as needed (installation to the user's home directory is shown to avoid root privileges). -Asssuming that Python2 is the default installed Python interpreter, build +Assuming that Python2 is the default installed Python interpreter, build its bindings first: ../hamlib/configure --with-python-binding --prefix=$HOME/local @@ -154,7 +154,7 @@ paths separated by colons. In this case, if PYTHONPATH was already set the new path is prepended to its prior setting. While setting the environment variable is good for a one-off run, a more -permanent solution can be acheived by placing a file that ends in .pth in a +permanent solution can be achieved by placing a file that ends in .pth in a directory that Python will process when starting. The special place is: ~/.local/lib64/python3.6/site-packages diff --git a/configure.ac b/configure.ac index e650f08d..05098a62 100644 --- a/configure.ac +++ b/configure.ac @@ -307,7 +307,7 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[struct{char a;int b;}s[8]={[3]={.b=5}};]])], [AC_MSG_RESULT(yes)], [AC_MSG_ERROR(["" -"You need a C99 compliant C compiler that supports struct/array intializers." +"You need a C99 compliant C compiler that supports struct/array initializers." "Have you considered GCC lately?."]) ]) diff --git a/cppcheck.sh b/cppcheck.sh index a73f6fbd..ef58eb4e 100755 --- a/cppcheck.sh +++ b/cppcheck.sh @@ -2,7 +2,7 @@ # Author Michael Black W9MDB # This SUPPRESS setting results in no warnings as of 2020-01-14 -# There are things that could still be done...especialy in the C++ area +# There are things that could still be done...especially in the C++ area echo "See cppcheck.log when done" echo "There should be no errors or warnings" echo "This takes several hours to run" diff --git a/doc/README.man-pages b/doc/README.man-pages index 88434b3d..cfd5eec5 100644 --- a/doc/README.man-pages +++ b/doc/README.man-pages @@ -12,7 +12,7 @@ make up the roff system. Documentation written in roff can be transformed into a number of formats for final publication. For the Hamlib project, the output formats are the classic man(1) format to a terminal screen, HTML, and PDF. While groff includes a -number of macro pacakges suitable for a variety of document styles, Hamlib +number of macro packages suitable for a variety of document styles, Hamlib source files are written using the man(7) macro package. The layout of Hamlib man pages generally follow the format specified in man-pages(7). The macros used in the man pages format is specified in groff_man(7). diff --git a/doc/man1/rigctld.1 b/doc/man1/rigctld.1 index 9007909d..5813636a 100644 --- a/doc/man1/rigctld.1 +++ b/doc/man1/rigctld.1 @@ -313,7 +313,7 @@ below). . .TP .BR \-X ", " \-\-twiddle = \fIseconds\fP -Enables timeout when VFO twiddling is detected. Some functons will be ignored. +Enables timeout when VFO twiddling is detected. Some functions will be ignored. .IP Should only be needed when controlling software should be "paused" .B -v diff --git a/dummy/netrigctl.c b/dummy/netrigctl.c index 89a5dd32..b51a62c1 100644 --- a/dummy/netrigctl.c +++ b/dummy/netrigctl.c @@ -548,7 +548,7 @@ static int netrigctl_open(RIG *rig) } else { - // not an error -- just a warning for backward compatibily + // not an error -- just a warning for backward compatibility rig_debug(RIG_DEBUG_ERR, "%s: unknown setting='%s'\n", __func__, buf); } } @@ -625,7 +625,7 @@ static int netrigctl_get_freq(RIG *rig, vfo_t vfo, freq_t *freq) char cmd[CMD_MAX]; char buf[BUF_MAX]; char vfostr[6] = ""; -#if 0 // disable until we figure out if we can do this without breaking backwards compability +#if 0 // disable until we figure out if we can do this without breaking backwards compatibility char vfotmp[16]; #endif @@ -2231,7 +2231,7 @@ struct rig_caps netrigctl_caps = .timeout = 1000, /* enough for the worst rig we have */ .retry = 5, /* 5 seconds total */ - /* following fields updated in rig_state at openning time */ + /* following fields updated in rig_state at opening time */ .has_get_func = RIG_FUNC_NONE, .has_set_func = RIG_FUNC_NONE, .has_get_level = RIG_LEVEL_NONE, diff --git a/dummy/trxmanager.c b/dummy/trxmanager.c index d6c6baeb..51fa9d0e 100644 --- a/dummy/trxmanager.c +++ b/dummy/trxmanager.c @@ -67,7 +67,7 @@ #define FLRIG_MODE_PKTFM 'E' #define FLRIG_MODE_PKTAM 'F' // Hamlib doesn't support D2/D3 modes in hamlib yet -// So we define them here but they aren't implmented +// So we define them here but they aren't implemented #define FLRIG_MODE_PKTLSB2 'G' #define FLRIG_MODE_PKTUSB2 'H' #define FLRIG_MODE_PKTFM2 'I' diff --git a/extra/gnuradio/gnuradio.cc b/extra/gnuradio/gnuradio.cc index dc3f4d4e..5fdc97ae 100644 --- a/extra/gnuradio/gnuradio.cc +++ b/extra/gnuradio/gnuradio.cc @@ -220,7 +220,7 @@ static void *gnuradio_process(void *arg) priv = (struct gnuradio_priv_data*)rig->state.priv; - /* the mutex lock is not to gurantee reentrancy of rig_debug, + /* the mutex lock is not to guarantee reentrancy of rig_debug, * this is just to know when backend want us start running */ pthread_mutex_lock(&priv->mutex_process); diff --git a/extra/kylix/HamlibComponents.pas b/extra/kylix/HamlibComponents.pas index 1ad1286f..9e029bd0 100644 --- a/extra/kylix/HamlibComponents.pas +++ b/extra/kylix/HamlibComponents.pas @@ -115,7 +115,7 @@ constructor TRotatorComponent.CreateRotator(AOwner: TComponent; AModel: rot_mode begin inherited Create(AOwner); - {* Initialize the library for the spesified model *} + {* Initialize the library for the specified model *} FRot := rot_init(AModel); if (FRot = nil) then raise ERotatorException.Create('Rig initialization error'); @@ -291,7 +291,7 @@ constructor TRigComponent.CreateRig(AOwner: TComponent; AModel: integer); begin inherited Create(AOwner); - {* Initialize the library for the spesified model *} + {* Initialize the library for the specified model *} FRig := rig_init(AModel); if (FRig = nil) then raise ERigException.Create('Rig initialization error'); diff --git a/extra/kylix/hamlib_rigapi.pas b/extra/kylix/hamlib_rigapi.pas index 4db8471e..4a42bc2b 100644 --- a/extra/kylix/hamlib_rigapi.pas +++ b/extra/kylix/hamlib_rigapi.pas @@ -25,7 +25,7 @@ const {* * Error codes that can be returned by the Hamlib functions *} - RIG_OK = 0; {* completed sucessfully *} + RIG_OK = 0; {* completed successfully *} RIG_EINVAL = 1; {* invalid parameter *} RIG_ECONF = 2; {* invalid configuration (serial,..) *} RIG_ENOMEM = 3; {* memory shortage *} @@ -81,7 +81,7 @@ type * Basic rig type, can store some useful * info about different radios. Each lib must * be able to populate this structure, so we can make - * useful enquiries about capablilities. + * useful enquiries about capabilities. *} rig_port_e = ( RIG_PORT_NONE = 0, {* as bizarre as it could be :) *} @@ -663,7 +663,7 @@ type {* Basic rig type, can store some useful * info about different radios. Each lib must * be able to populate this structure, so we can make - * useful enquiries about capablilities. + * useful enquiries about capabilities. *} {* diff --git a/extra/kylix/hamlib_rotapi.pas b/extra/kylix/hamlib_rotapi.pas index 4d04be8f..c94d0be6 100644 --- a/extra/kylix/hamlib_rotapi.pas +++ b/extra/kylix/hamlib_rotapi.pas @@ -31,7 +31,7 @@ type rot_model_t = integer; rot_reset_t = integer; - PRot = ^TRot; // forward decleration + PRot = ^TRot; // forward declaration rot_caps = packed record rot_model : rot_model_t; diff --git a/extra/kylix/tests/HamlibRadioForm.pas b/extra/kylix/tests/HamlibRadioForm.pas index 3e5ce1b5..ef72f85b 100644 --- a/extra/kylix/tests/HamlibRadioForm.pas +++ b/extra/kylix/tests/HamlibRadioForm.pas @@ -69,7 +69,7 @@ begin except on e: ERigException do begin - ShowMessage('Error occured while using the rig: %s', [e.Message]); + ShowMessage('Error occurred while using the rig: %s', [e.Message]); FRigComponent.CloseRig; FRigComponent.Free; end; @@ -114,7 +114,7 @@ end; procedure TRadioForm.MagicCheckButtonClick(Sender: TObject); begin if FRigComponent.checkMagic - then ShowMessage('Magic check succeded.') + then ShowMessage('Magic check succeeded.') else ShowMessage('Magic check FAILED!!!'); end; diff --git a/include/hamlib/amplifier.h b/include/hamlib/amplifier.h index 990df157..7d61cea8 100644 --- a/include/hamlib/amplifier.h +++ b/include/hamlib/amplifier.h @@ -136,7 +136,7 @@ enum amp_level_e /* Basic amp type, can store some useful info about different amplifiers. Each * lib must be able to populate this structure, so we can make useful - * enquiries about capablilities. + * enquiries about capabilities. */ /** diff --git a/include/hamlib/amplist.h b/include/hamlib/amplist.h index 8f1544d7..42808d83 100644 --- a/include/hamlib/amplist.h +++ b/include/hamlib/amplist.h @@ -61,7 +61,7 @@ * * The dummy backend, as the name suggests, is a backend which performs * no hardware operations and always behaves as one would expect. It can - * be thought of as a hardware simulator and is very usefull for testing + * be thought of as a hardware simulator and is very useful for testing * client applications. */ /** diff --git a/include/hamlib/rig.h b/include/hamlib/rig.h index b6d1a8d8..e919aa88 100644 --- a/include/hamlib/rig.h +++ b/include/hamlib/rig.h @@ -533,7 +533,7 @@ typedef enum { * \brief PTT status */ typedef enum { - RIG_PTT_OFF = 0, /*!< PTT desactivated */ + RIG_PTT_OFF = 0, /*!< PTT deactivated */ RIG_PTT_ON, /*!< PTT activated */ RIG_PTT_ON_MIC, /*!< PTT Mic only, fallbacks on RIG_PTT_ON if unavailable */ RIG_PTT_ON_DATA /*!< PTT Data (Mic-muted), fallbacks on RIG_PTT_ON if unavailable */ @@ -1920,13 +1920,13 @@ struct rig_cache { int timeout_ms; // the cache timeout for invalidating itself vfo_t vfo; freq_t freq; // to be deprecated - // othe abstraction here is based on dual vfo rigs and mapped to all others + // other abstraction here is based on dual vfo rigs and mapped to all others // So we have four possible states of rig // MainA, MainB, SubA, SubB // Main is the Main VFO and Sub is for the 2nd VFO // Most rigs have MainA and MainB // Dual VFO rigs can have SubA and SubB too - // For dual VFO rigs simplex opeations are all done on MainA/MainB -- ergo this abstraction + // For dual VFO rigs simplex operations are all done on MainA/MainB -- ergo this abstraction freq_t freqMainA; // VFO_A, VFO_MAIN, and VFO_MAINA freq_t freqMainB; // VFO_B, VFO_SUB, and VFO_MAINB freq_t freqSubA; // VFO_SUBA diff --git a/include/hamlib/riglist.h b/include/hamlib/riglist.h index 559aa160..6f1e8327 100644 --- a/include/hamlib/riglist.h +++ b/include/hamlib/riglist.h @@ -56,7 +56,7 @@ * * The dummy backend, as the name suggests, is a backend which performs no * hardware operations and always behaves as one would expect. It can be - * thought of as a hardware simulator and is very usefull for testing client + * thought of as a hardware simulator and is very useful for testing client * applications. * * It has also been expanded to provide support to "virtual" type of rigs @@ -327,7 +327,7 @@ /* * Radio Shack - * Actualy, they might be either Icom or Uniden. TBC --SF + * Actually, they might be either Icom or Uniden. TBC --SF */ #define RIG_RADIOSHACK 7 #define RIG_BACKEND_RADIOSHACK "radioshack" diff --git a/include/hamlib/rotator.h b/include/hamlib/rotator.h index 9258b257..b577a477 100644 --- a/include/hamlib/rotator.h +++ b/include/hamlib/rotator.h @@ -186,7 +186,7 @@ typedef enum { * \def ROT_MOVE_CW * \brief A macro that returns the flag for the \b clockwise direction. * - * This macro defines the value of the \b clockwise direction wich can be + * This macro defines the value of the \b clockwise direction which can be * used with the rot_move() function. This value is equivalent to * ROT_MOVE_RIGHT . * @@ -198,7 +198,7 @@ typedef enum { /* Basic rot type, can store some useful info about different rotators. Each * lib must be able to populate this structure, so we can make useful - * enquiries about capablilities. + * enquiries about capabilities. */ /** diff --git a/include/hamlib/rotlist.h b/include/hamlib/rotlist.h index b629ed6b..4481c22f 100644 --- a/include/hamlib/rotlist.h +++ b/include/hamlib/rotlist.h @@ -66,7 +66,7 @@ * * The dummy backend, as the name suggests, is a backend which performs * no hardware operations and always behaves as one would expect. It can - * be thought of as a hardware simulator and is very usefull for testing + * be thought of as a hardware simulator and is very useful for testing * client applications. */ /** diff --git a/macros/ax_lua.m4 b/macros/ax_lua.m4 index 9feb3522..7607c5fe 100644 --- a/macros/ax_lua.m4 +++ b/macros/ax_lua.m4 @@ -82,7 +82,7 @@ # appropriate Automake primary, e.g. lua_SCRIPS or luaexec_LIBRARIES. # # If an acceptable Lua interpreter is found, then ACTION-IF-FOUND is -# performed, otherwise ACTION-IF-NOT-FOUND is preformed. If ACTION-IF-NOT- +# performed, otherwise ACTION-IF-NOT-FOUND is performed. If ACTION-IF-NOT- # FOUND is blank, then it will default to printing an error. To prevent # the default behavior, give ':' as an action. # diff --git a/rigs/adat/adat.c b/rigs/adat/adat.c index 098f47c1..1e96dce7 100644 --- a/rigs/adat/adat.c +++ b/rigs/adat/adat.c @@ -567,7 +567,7 @@ static adat_cmd_list_t adat_cmd_list_recover_from_error = // --------------------------------------------------------------------------- -// IMPLEMEMTATION +// IMPLEMENTATION // --------------------------------------------------------------------------- // --------------------------------------------------------------------------- diff --git a/rigs/alinco/dx77.c b/rigs/alinco/dx77.c index fb2ebc0c..97ab9bac 100644 --- a/rigs/alinco/dx77.c +++ b/rigs/alinco/dx77.c @@ -83,7 +83,7 @@ #define CMD_RDATA "3H" /* Current Data read */ #define CMD_RSPLT "3I" /* Split read */ #define CMD_RPOWER "3J" /* Transmitter Output read */ -#define CMD_RSELECT "3K" /* SELECT Postion read */ +#define CMD_RSELECT "3K" /* SELECT Position read */ #define DX77_ALL_MODES (RIG_MODE_AM|RIG_MODE_CW|RIG_MODE_SSB|RIG_MODE_FM) diff --git a/rigs/aor/ar7030.c b/rigs/aor/ar7030.c index 2a5c8953..a10a6a22 100644 --- a/rigs/aor/ar7030.c +++ b/rigs/aor/ar7030.c @@ -154,19 +154,19 @@ static void setMemPtr(RIG *rig, int page, int address) { rxr_writeByte(rig, 0x50 + page); //Set Page - if (address <= 0xFF) //*** <= 8 Bit Adresse *** + if (address <= 0xFF) //*** <= 8 Bit Address *** { rxr_writeByte(rig, 0x30 + (address >> 4)); //Set H-Register 4 Bits rxr_writeByte(rig, 0x40 + (address & - 0x0F)); //Set Adress(12 Bits = (4 Bit H Register) + 8 Bit) + 0x0F)); //Set Address(12 Bits = (4 Bit H Register) + 8 Bit) } - else //*** > 8 Bit Adresse *** + else //*** > 8 Bit Address *** { rxr_writeByte(rig, 0x30 + ((address >> 4) & 0x0F)) ;//Set H-Register 4 Bits rxr_writeByte(rig, 0x40 + (address & - 0x0F)); //Set Adress(12 Bits = (4 Bit H Register) + 8 Bit) + 0x0F)); //Set Address(12 Bits = (4 Bit H Register) + 8 Bit) rxr_writeByte(rig, 0x10 + (address >> - 8)); //Set Adress high(12 Bits=(4 Bit H Register)+8 Bit) + 8)); //Set Address high(12 Bits=(4 Bit H Register)+8 Bit) } } diff --git a/rigs/aor/ar7030p_utils.c b/rigs/aor/ar7030p_utils.c index 702099b2..aafce3c5 100644 --- a/rigs/aor/ar7030p_utils.c +++ b/rigs/aor/ar7030p_utils.c @@ -954,7 +954,7 @@ int bcd2Int(const unsigned char bcd) * * \param int Integer value (0-99) * - * \return 2 digit BCD equvalent (0-99), 0xff on failure + * \return 2 digit BCD equivalent (0-99), 0xff on failure */ unsigned char int2BCD(const unsigned int val) { @@ -1042,7 +1042,7 @@ int getCalLevel(RIG *rig, unsigned char rawAgc, int *dbm) } else { - step = 20; /* HACK - try and fix mimimum AGC readings */ + step = 20; /* HACK - try and fix minimum AGC readings */ } rig_debug(RIG_DEBUG_VERBOSE, "%s: got step size %d\n", __func__, step); diff --git a/rigs/barrett/barrett.c b/rigs/barrett/barrett.c index c251a425..cf4c8d3b 100644 --- a/rigs/barrett/barrett.c +++ b/rigs/barrett/barrett.c @@ -429,7 +429,7 @@ int barrett_set_freq(RIG *rig, vfo_t vfo, freq_t freq) rig_debug(RIG_DEBUG_VERBOSE, "%s: vfo=%s freq=%.0f\n", __func__, rig_strvfo(vfo), freq); - // If we are not explicity asking for VFO_B then we'll set the receive side also + // If we are not explicitly asking for VFO_B then we'll set the receive side also if (vfo != RIG_VFO_B) { char *response = NULL; @@ -765,7 +765,7 @@ int barrett_get_level(RIG *rig, vfo_t vfo, setting_t level, value_t *val) } else { - rig_debug(RIG_DEBUG_ERR, "%s: unable to parse STRENGHT from %s\n", + rig_debug(RIG_DEBUG_ERR, "%s: unable to parse STRENGTH from %s\n", __func__, response); return -RIG_EPROTO; } diff --git a/rigs/drake/drake.c b/rigs/drake/drake.c index 0fc86fa0..c86fb152 100644 --- a/rigs/drake/drake.c +++ b/rigs/drake/drake.c @@ -722,7 +722,7 @@ int drake_get_chan(RIG *rig, channel_t *chan, int read_only) return RIG_OK; } - //now decypher it + //now decipher it retval = drake_transaction(rig, "RA" EOM, 3, mdbuf, &mdbuf_len); if (retval != RIG_OK) diff --git a/rigs/drake/r8a.c b/rigs/drake/r8a.c index 581b262b..56a65060 100644 --- a/rigs/drake/r8a.c +++ b/rigs/drake/r8a.c @@ -121,7 +121,7 @@ const struct rig_caps r8a_caps = .max_xit = Hz(0), .max_ifshift = Hz(0), .targetable_vfo = 0, - .transceive = RIG_TRN_OFF, /* TODO: acutally has RIG_TRN_RIG */ + .transceive = RIG_TRN_OFF, /* TODO: actually has RIG_TRN_RIG */ .bank_qty = 0, .chan_desc_sz = 7, .vfo_ops = R8A_VFO_OPS, diff --git a/rigs/drake/r8b.c b/rigs/drake/r8b.c index 178a10cc..65d3710a 100644 --- a/rigs/drake/r8b.c +++ b/rigs/drake/r8b.c @@ -121,7 +121,7 @@ const struct rig_caps r8b_caps = .max_xit = Hz(0), .max_ifshift = Hz(0), .targetable_vfo = 0, - .transceive = RIG_TRN_OFF, /* TODO: acutally has RIG_TRN_RIG */ + .transceive = RIG_TRN_OFF, /* TODO: actually has RIG_TRN_RIG */ .bank_qty = 0, .chan_desc_sz = 7, .vfo_ops = R8B_VFO_OPS, diff --git a/rigs/elad/elad.c b/rigs/elad/elad.c index 5173fed6..b6d46d54 100644 --- a/rigs/elad/elad.c +++ b/rigs/elad/elad.c @@ -160,7 +160,7 @@ const struct confparams elad_cfg_params[] = * * returns: * RIG_OK - if no error occurred. - * RIG_EIO - if an I/O error occured while sending/receiving data. + * RIG_EIO - if an I/O error occurred while sending/receiving data. * RIG_ETIMEOUT - if timeout expires without any characters received. * RIG_REJECTED - if a negative acknowledge was received or command not * recognized by rig. @@ -431,7 +431,7 @@ transaction_quit: * expected Value of expected string length * * Returns: - * RIG_OK - if no error occured. + * RIG_OK - if no error occurred. * RIG_EPROTO if returned string and expected are not equal * Error from elad_transaction() if any * diff --git a/rigs/elad/elad.h b/rigs/elad/elad.h index 171831b8..f55f0cfb 100644 --- a/rigs/elad/elad.h +++ b/rigs/elad/elad.h @@ -77,7 +77,7 @@ struct elad_priv_data { int k2_md_rtty; /* K2 RTTY mode available flag, 1 = RTTY, 0 = N/A */ char *fw_rev; /* firmware revision level */ int trn_state; /* AI state discovered at startup */ - unsigned fw_rev_uint; /* firmware revison as a number 1.07 -> 107 */ + unsigned fw_rev_uint; /* firmware revision as a number 1.07 -> 107 */ char verify_cmd[4]; /* command used to verify set commands */ int is_emulation; /* flag for TS-2000 emulations */ void * data; /* model specific data */ diff --git a/rigs/flexradio/dttsp.c b/rigs/flexradio/dttsp.c index 6c42bbef..84ac4196 100644 --- a/rigs/flexradio/dttsp.c +++ b/rigs/flexradio/dttsp.c @@ -192,7 +192,7 @@ const struct rig_caps dttsp_rig_caps = .transceive = RIG_TRN_OFF, .attenuator = { RIG_DBLST_END, }, .preamp = { RIG_DBLST_END, }, - /* In fact, RX and TX ranges are dependant on the tuner */ + /* In fact, RX and TX ranges are dependent on the tuner */ .rx_range_list1 = { { .startf = kHz(150), .endf = MHz(1500), .modes = DTTSP_MODES, .low_power = -1, .high_power = -1, DTTSP_VFO @@ -276,7 +276,7 @@ const struct rig_caps dttsp_udp_rig_caps = .transceive = RIG_TRN_OFF, .attenuator = { RIG_DBLST_END, }, .preamp = { RIG_DBLST_END, }, - /* In fact, RX and TX ranges are dependant on the tuner */ + /* In fact, RX and TX ranges are dependent on the tuner */ .rx_range_list1 = { { .startf = kHz(150), .endf = MHz(1500), .modes = DTTSP_MODES, .low_power = -1, .high_power = -1, DTTSP_VFO diff --git a/rigs/icmarine/icmarine.c b/rigs/icmarine/icmarine.c index d56a01e4..0d0233ed 100644 --- a/rigs/icmarine/icmarine.c +++ b/rigs/icmarine/icmarine.c @@ -234,7 +234,7 @@ int icmarine_get_conf(RIG *rig, token_t token, char *val) * We assume that rig!=NULL, rig->state!= NULL, data!=NULL, data_len!=NULL * * cmd: mandatory - * param: only 1 optional NMEA paramter, NULL for none (=query) + * param: only 1 optional NMEA parameter, NULL for none (=query) * response: optional (holding BUFSZ bytes) */ int icmarine_transaction(RIG *rig, const char *cmd, const char *param, @@ -258,7 +258,7 @@ int icmarine_transaction(RIG *rig, const char *cmd, const char *param, rig_flush(&rs->rigport); - /* command formating */ + /* command formatting */ cmd_len = snprintf(cmdbuf, BUFSZ, "$PICOA,%02d,%02u,%s", CONTROLLER_ID, priv->remote_id, diff --git a/rigs/icom/frame.c b/rigs/icom/frame.c index bb91b2f9..4165206d 100644 --- a/rigs/icom/frame.c +++ b/rigs/icom/frame.c @@ -149,7 +149,7 @@ int icom_one_transaction(RIG *rig, int cmd, int subcmd, * read what we just sent, because TX and RX are looped, * and discard it... * - if what we read is not what we sent, then it means - * a collision on the CI-V bus occured! + * a collision on the CI-V bus occurred! * - if we get a timeout, then retry to send the frame, * up to rs->retry times. */ @@ -158,7 +158,7 @@ int icom_one_transaction(RIG *rig, int cmd, int subcmd, if (retval == -RIG_ETIMEOUT || retval == 0) { - /* Nothing recieved, CI-V interface is not echoing */ + /* Nothing received, CI-V interface is not echoing */ // cppcheck-suppress * Unhold_Decode(rig); return -RIG_BUSERROR; @@ -230,7 +230,7 @@ int icom_one_transaction(RIG *rig, int cmd, int subcmd, /* * wait for ACK ... - * FIXME: handle pading/collisions + * FIXME: handle padding/collisions * ACKFRMLEN is the smallest frame we can expect from the rig */ buf[0] = 0; diff --git a/rigs/icom/ic271.c b/rigs/icom/ic271.c index 7ad42b6e..751705c6 100644 --- a/rigs/icom/ic271.c +++ b/rigs/icom/ic271.c @@ -39,7 +39,7 @@ * IC-271 A/E * IC-271 H is high power (75W) * - * Independant transmit/receive + * Independent transmit/receive * * specs: http://www.qsl.net/sm7vhs/radio/icom/Ic271/specs.htm * diff --git a/rigs/icom/ic703.c b/rigs/icom/ic703.c index d47f90e9..95ff4a26 100644 --- a/rigs/icom/ic703.c +++ b/rigs/icom/ic703.c @@ -177,11 +177,11 @@ const struct rig_caps ic703_caps = }, /* mode/filter list, remember: order matters! */ .filters = { - {RIG_MODE_SSB | RIG_MODE_CW | RIG_MODE_RTTY | RIG_MODE_CWR | RIG_MODE_RTTYR, kHz(2.4)}, /* bultin FL-272 */ - {RIG_MODE_AM, kHz(9)}, /* mid w/ bultin FL-94 */ - {RIG_MODE_AM, kHz(2.4)}, /* narrow w/ bultin FL-272 */ - {RIG_MODE_FM, kHz(15)}, /* ?? TBC, mid w/ bultin FL-23+SFPC455E */ - {RIG_MODE_FM, kHz(9)}, /* narrow w/ bultin FL-94 */ + {RIG_MODE_SSB | RIG_MODE_CW | RIG_MODE_RTTY | RIG_MODE_CWR | RIG_MODE_RTTYR, kHz(2.4)}, /* builtin FL-272 */ + {RIG_MODE_AM, kHz(9)}, /* mid w/ builtin FL-94 */ + {RIG_MODE_AM, kHz(2.4)}, /* narrow w/ builtin FL-272 */ + {RIG_MODE_FM, kHz(15)}, /* ?? TBC, mid w/ builtin FL-23+SFPC455E */ + {RIG_MODE_FM, kHz(9)}, /* narrow w/ builtin FL-94 */ RIG_FLT_END, }, .str_cal = IC703_STR_CAL, diff --git a/rigs/icom/ic706.c b/rigs/icom/ic706.c index 07701ae0..f9a6f25d 100644 --- a/rigs/icom/ic706.c +++ b/rigs/icom/ic706.c @@ -238,11 +238,11 @@ const struct rig_caps ic706_caps = /* mode/filter list, remember: order matters! */ .filters = { - {RIG_MODE_SSB | RIG_MODE_CW | RIG_MODE_RTTY, kHz(2.4)}, /* bultin FL-272 */ - {RIG_MODE_AM, kHz(8)}, /* mid w/ bultin FL-94 */ - {RIG_MODE_AM, kHz(2.4)}, /* narrow w/ bultin FL-272 */ - {RIG_MODE_FM, kHz(15)}, /* ?? TBC, mid w/ bultin FL-23+SFPC455E */ - {RIG_MODE_FM, kHz(8)}, /* narrow w/ bultin FL-94 */ + {RIG_MODE_SSB | RIG_MODE_CW | RIG_MODE_RTTY, kHz(2.4)}, /* builtin FL-272 */ + {RIG_MODE_AM, kHz(8)}, /* mid w/ builtin FL-94 */ + {RIG_MODE_AM, kHz(2.4)}, /* narrow w/ builtin FL-272 */ + {RIG_MODE_FM, kHz(15)}, /* ?? TBC, mid w/ builtin FL-23+SFPC455E */ + {RIG_MODE_FM, kHz(8)}, /* narrow w/ builtin FL-94 */ {RIG_MODE_WFM, kHz(230)}, /* WideFM, filter FL?? */ RIG_FLT_END, }, @@ -379,11 +379,11 @@ const struct rig_caps ic706mkii_caps = /* mode/filter list, remember: order matters! */ .filters = { - {RIG_MODE_SSB | RIG_MODE_CW | RIG_MODE_RTTY, kHz(2.4)}, /* bultin FL-272 */ - {RIG_MODE_AM, kHz(8)}, /* mid w/ bultin FL-94 */ - {RIG_MODE_AM, kHz(2.4)}, /* narrow w/ bultin FL-272 */ - {RIG_MODE_FM, kHz(15)}, /* ?? TBC, mid w/ bultin FL-23+SFPC455E */ - {RIG_MODE_FM, kHz(8)}, /* narrow w/ bultin FL-94 */ + {RIG_MODE_SSB | RIG_MODE_CW | RIG_MODE_RTTY, kHz(2.4)}, /* builtin FL-272 */ + {RIG_MODE_AM, kHz(8)}, /* mid w/ builtin FL-94 */ + {RIG_MODE_AM, kHz(2.4)}, /* narrow w/ builtin FL-272 */ + {RIG_MODE_FM, kHz(15)}, /* ?? TBC, mid w/ builtin FL-23+SFPC455E */ + {RIG_MODE_FM, kHz(8)}, /* narrow w/ builtin FL-94 */ {RIG_MODE_WFM, kHz(230)}, /* WideFM, filter FL?? */ RIG_FLT_END, }, @@ -565,11 +565,11 @@ const struct rig_caps ic706mkiig_caps = }, /* mode/filter list, remember: order matters! */ .filters = { - {RIG_MODE_SSB | RIG_MODE_CW | RIG_MODE_RTTY, kHz(2.4)}, /* bultin FL-272 */ - {RIG_MODE_AM, kHz(8)}, /* mid w/ bultin FL-94 */ - {RIG_MODE_AM, kHz(2.4)}, /* narrow w/ bultin FL-272 */ - {RIG_MODE_FM, kHz(15)}, /* ?? TBC, mid w/ bultin FL-23+SFPC455E */ - {RIG_MODE_FM, kHz(8)}, /* narrow w/ bultin FL-94 */ + {RIG_MODE_SSB | RIG_MODE_CW | RIG_MODE_RTTY, kHz(2.4)}, /* builtin FL-272 */ + {RIG_MODE_AM, kHz(8)}, /* mid w/ builtin FL-94 */ + {RIG_MODE_AM, kHz(2.4)}, /* narrow w/ builtin FL-272 */ + {RIG_MODE_FM, kHz(15)}, /* ?? TBC, mid w/ builtin FL-23+SFPC455E */ + {RIG_MODE_FM, kHz(8)}, /* narrow w/ builtin FL-94 */ {RIG_MODE_WFM, kHz(230)}, /* WideFM, filter FL?? */ RIG_FLT_END, }, diff --git a/rigs/icom/ic7100.c b/rigs/icom/ic7100.c index 79f590bd..d0d8f816 100644 --- a/rigs/icom/ic7100.c +++ b/rigs/icom/ic7100.c @@ -1,5 +1,5 @@ /* - * Hamlib CI-V backend - description of IC-9100 (HF/VHF/UHF All-Mode Tranceiver) + * Hamlib CI-V backend - description of IC-9100 (HF/VHF/UHF All-Mode Transceiver) * Copyright (c) 2000-2011 by Stephane Fillod * * diff --git a/rigs/icom/ic718.c b/rigs/icom/ic718.c index 620daa4a..5583694e 100644 --- a/rigs/icom/ic718.c +++ b/rigs/icom/ic718.c @@ -160,13 +160,13 @@ const struct rig_caps ic718_caps = }, /* mode/filter list, remember: order matters! */ .filters = { - {RIG_MODE_SSB | RIG_MODE_CW | RIG_MODE_RTTY, kHz(2.1)}, /* bultin */ + {RIG_MODE_SSB | RIG_MODE_CW | RIG_MODE_RTTY, kHz(2.1)}, /* builtin */ {RIG_MODE_CW | RIG_MODE_RTTY, Hz(500)}, /* FL-52A */ {RIG_MODE_CW | RIG_MODE_RTTY, Hz(250)}, /* FL-53A */ {RIG_MODE_SSB, kHz(2.8)}, /* FL-96 */ {RIG_MODE_SSB | RIG_MODE_CW | RIG_MODE_CWR | RIG_MODE_RTTY | RIG_MODE_RTTYR, kHz(1.8)}, /* FL-222 */ - {RIG_MODE_AM, kHz(6)}, /* mid w/ bultin FL-94 */ - {RIG_MODE_AM, kHz(2.4)}, /* narrow w/ bultin FL-272 */ + {RIG_MODE_AM, kHz(6)}, /* mid w/ builtin FL-94 */ + {RIG_MODE_AM, kHz(2.4)}, /* narrow w/ builtin FL-272 */ RIG_FLT_END, }, diff --git a/rigs/icom/ic746.c b/rigs/icom/ic746.c index 63b8b1fe..1037e898 100644 --- a/rigs/icom/ic746.c +++ b/rigs/icom/ic746.c @@ -513,7 +513,7 @@ const struct rig_caps ic746pro_caps = {RIG_MODE_FM, kHz(15)}, {RIG_MODE_FM, kHz(7)}, - /* There are 5 rtty filters when rtty filter mode is set (default condition) { 1k, 500, 350, 300, 250 }. These are fixed. If rtty filter mode is unset there are 3 general IF filters { 2.4k, 500, 250 are the defaults }. These can be changed. There is a "twin-peak" filter mode as well. It boosts the 2125 and 2295 recieve frequency reponse. The S_FUNC_RF (rtty filter) turns the rtty filter mode on and off. */ + /* There are 5 rtty filters when rtty filter mode is set (default condition) { 1k, 500, 350, 300, 250 }. These are fixed. If rtty filter mode is unset there are 3 general IF filters { 2.4k, 500, 250 are the defaults }. These can be changed. There is a "twin-peak" filter mode as well. It boosts the 2125 and 2295 receive frequency response. The S_FUNC_RF (rtty filter) turns the rtty filter mode on and off. */ {RIG_MODE_CW | RIG_MODE_CWR | RIG_MODE_RTTY | RIG_MODE_RTTYR, Hz(500)}, /* RTTY & "normal" IF Filters */ {RIG_MODE_CW | RIG_MODE_CWR | RIG_MODE_RTTY | RIG_MODE_RTTYR, Hz(250)}, /* RTTY & "narrow" IF Filters */ diff --git a/rigs/icom/ic775.c b/rigs/icom/ic775.c index fd78ddda..99aa1d73 100644 --- a/rigs/icom/ic775.c +++ b/rigs/icom/ic775.c @@ -155,11 +155,11 @@ const struct rig_caps ic775_caps = }, /* mode/filter list, remember: order matters! */ .filters = { - {RIG_MODE_SSB | RIG_MODE_CW | RIG_MODE_RTTY, kHz(2.4)}, /* bultin FL-272 */ - {RIG_MODE_AM, kHz(8)}, /* mid w/ bultin FL-94 */ - {RIG_MODE_AM, kHz(2.4)}, /* narrow w/ bultin FL-272 */ - {RIG_MODE_FM, kHz(15)}, /* ?? TBC, mid w/ bultin FL-23+SFPC455E */ - {RIG_MODE_FM, kHz(8)}, /* narrow w/ bultin FL-94 */ + {RIG_MODE_SSB | RIG_MODE_CW | RIG_MODE_RTTY, kHz(2.4)}, /* builtin FL-272 */ + {RIG_MODE_AM, kHz(8)}, /* mid w/ builtin FL-94 */ + {RIG_MODE_AM, kHz(2.4)}, /* narrow w/ builtin FL-272 */ + {RIG_MODE_FM, kHz(15)}, /* ?? TBC, mid w/ builtin FL-23+SFPC455E */ + {RIG_MODE_FM, kHz(8)}, /* narrow w/ builtin FL-94 */ RIG_FLT_END, }, diff --git a/rigs/icom/ic820h.c b/rigs/icom/ic820h.c index 0609077b..f3175220 100644 --- a/rigs/icom/ic820h.c +++ b/rigs/icom/ic820h.c @@ -1,5 +1,5 @@ /* - * Hamlib CI-V backend - description of IC-820H (VHF/UHF All-Mode Tranceiver) + * Hamlib CI-V backend - description of IC-820H (VHF/UHF All-Mode Transceiver) * Contributed by Francois Retief <fgr...@su...> * Copyright (c) 2000-2010 by Stephane Fillod * diff --git a/rigs/icom/ic821h.c b/rigs/icom/ic821h.c index 442ca217..39b0597b 100644 --- a/rigs/icom/ic821h.c +++ b/rigs/icom/ic821h.c @@ -1,5 +1,5 @@ /* - * Hamlib CI-V backend - description of IC-821H (VHF/UHF All-Mode Tranceiver) + * Hamlib CI-V backend - description of IC-821H (VHF/UHF All-Mode Transceiver) * Contributed by Francois Retief <fgr...@su...> * Copyright (c) 2000-2010 by Stephane Fillod * diff --git a/rigs/icom/ic9100.c b/rigs/icom/ic9100.c index 165c2749..4ac8da14 100644 --- a/rigs/icom/ic9100.c +++ b/rigs/icom/ic9100.c @@ -1,5 +1,5 @@ /* - * Hamlib CI-V backend - description of IC-9100 (HF/VHF/UHF All-Mode Tranceiver) + * Hamlib CI-V backend - description of IC-9100 (HF/VHF/UHF All-Mode Transceiver) * Copyright (c) 2000-2011 by Stephane Fillod * * diff --git a/rigs/icom/icom.c b/rigs/icom/icom.c index f79773c6..66a1eb6c 100644 --- a/rigs/icom/icom.c +++ b/rigs/icom/icom.c @@ -1578,7 +1578,7 @@ int icom_set_mode_with_data(RIG *rig, vfo_t vfo, rmode_t mode, switch (mode) { case RIG_MODE_PKTUSB: - // xFE xFE x6E xE0 x1A x06 x01 xFD switchs mod input from MIC to ACC + // xFE xFE x6E xE0 x1A x06 x01 xFD switches mod input from MIC to ACC // This apparently works for IC-756ProIII but nobody has asked for it yet icom_mode = RIG_MODE_USB; break; @@ -4716,7 +4716,7 @@ int icom_set_split_vfo(RIG *rig, vfo_t vfo, split_t split, vfo_t tx_vfo) vfo = rig->state.current_vfo; } - // This should automaticaly switch between satmode on/off based on the requested split vfo + // This should automatically switch between satmode on/off based on the requested split vfo if (rig->caps->has_get_func & RIG_FUNC_SATMODE) { if ((tx_vfo == RIG_VFO_SUB || tx_vfo == RIG_VFO_MAIN) @@ -6406,7 +6406,7 @@ int icom_set_ant(RIG *rig, vfo_t vfo, ant_t ant, value_t option) /* * icom_get_ant * Assumes rig!=NULL, rig->state.priv!=NULL - * only meaningfull for HF + * only meaningful for HF */ int icom_get_ant(RIG *rig, vfo_t vfo, ant_t ant, value_t *option, ant_t *ant_curr, ant_t *ant_tx, ant_t *ant_rx) @@ -7272,7 +7272,7 @@ DECLARE_PROBERIG_BACKEND(icom) /* * try all possible addresses on the CI-V bus - * FIXME: actualy, old rigs do not support C_RD_TRXID cmd! + * FIXME: actually, old rigs do not support C_RD_TRXID cmd! * Try to be smart, and deduce model depending * on freq range, return address, and * available commands. diff --git a/rigs/icom/icom_defs.h b/rigs/icom/icom_defs.h index 840419e3..529f6fd0 100644 --- a/rigs/icom/icom_defs.h +++ b/rigs/icom/icom_defs.h @@ -526,7 +526,7 @@ /* * Tokens for Extra Level and Parameters common to multiple rigs. Use token # > 99. Defined here so they * will be available in ICOM name space. They have different internal commands primarily in dsp rigs. These - * tokens are used ext_lvl and ext_parm funtions in the individual rig files. + * tokens are used ext_lvl and ext_parm functions in the individual rig files. * Extra parameters which are rig specific should be coded in the individual rig files and token #s < 100. */ diff --git a/rigs/icom/icr7000.c b/rigs/icom/icr7000.c index 1f0f777f..dbc5ca8c 100644 --- a/rigs/icom/icr7000.c +++ b/rigs/icom/icr7000.c @@ -309,7 +309,7 @@ static int r7000_set_freq(RIG *rig, vfo_t vfo, freq_t freq) long long f = (long long)freq; /* - * The R7000 cannot set freqencies higher than 1GHz, + * The R7000 cannot set frequencies higher than 1GHz, * this is done by flipping a switch on the front panel and * stripping the most significant digit. * This is the only change with the common icom_set_freq diff --git a/rigs/jrc/jrc.c b/rigs/jrc/jrc.c index 3f665ccf..c4bf4e11 100644 --- a/rigs/jrc/jrc.c +++ b/rigs/jrc/jrc.c @@ -1358,7 +1358,7 @@ int jrc_set_mem(RIG *rig, vfo_t vfo, int ch) cmd_len = sprintf(cmdbuf, "C%03d" EOM, ch); - /* don't care about the Automatic reponse from receiver */ + /* don't care about the Automatic response from receiver */ return jrc_transaction(rig, cmdbuf, cmd_len, membuf, &mem_len); } diff --git a/rigs/kenwood/README.ts2k b/rigs/kenwood/README.ts2k index 6dc39240..cbc92a6d 100644 --- a/rigs/kenwood/README.ts2k +++ b/rigs/kenwood/README.ts2k @@ -36,7 +36,7 @@ File change summary: (Hopefully, I'll keep this updated...) (Currently every menu item number and text is entered but the menu default is not set. For example, grig can't be expected to know every rig's menu's. in work!) - It just occured to me that it would be very nice to + It just occurred to me that it would be very nice to have a default hamlib menu. If a rig don't have any or no menu functions yet, the levels and other items can be presented as a default menu. diff --git a/rigs/kenwood/ic10.c b/rigs/kenwood/ic10.c index 5039ebcf..3f276355 100644 --- a/rigs/kenwood/ic10.c +++ b/rigs/kenwood/ic10.c @@ -121,7 +121,7 @@ transaction: if (strncmp("ID", buffer, 2)) { - rig_debug(RIG_DEBUG_ERR, "%s: expected ID reponse and got %s\n", __func__, + rig_debug(RIG_DEBUG_ERR, "%s: expected ID response and got %s\n", __func__, buffer); return retval; } @@ -147,7 +147,7 @@ transaction: } /* - * Get the anwser of IF command, with retry handling + * Get the answer of IF command, with retry handling */ static int get_ic10_if(RIG *rig, char *data) { diff --git a/rigs/kenwood/kenwood.c b/rigs/kenwood/kenwood.c index a2c6fc86..b4636c88 100644 --- a/rigs/kenwood/kenwood.c +++ b/rigs/kenwood/kenwood.c @@ -221,7 +221,7 @@ const struct confparams kenwood_cfg_params[] = * * returns: * RIG_OK - if no error occurred. - * RIG_EIO - if an I/O error occured while sending/receiving data. + * RIG_EIO - if an I/O error occurred while sending/receiving data. * RIG_ETIMEOUT - if timeout expires without any characters received. * RIG_REJECTED - if a negative acknowledge was received or command not * recognized by rig. @@ -566,7 +566,7 @@ transaction_quit: * expected Value of expected string length * * Returns: - * RIG_OK - if no error occured. + * RIG_OK - if no error occurred. * RIG_EPROTO if returned string and expected are not equal * Error from kenwood_transaction() if any * diff --git a/rigs/kenwood/kenwood.h b/rigs/kenwood/kenwood.h index 16fb01c7..879e2cd4 100644 --- a/rigs/kenwood/kenwood.h +++ b/rigs/kenwood/kenwood.h @@ -116,7 +116,7 @@ struct kenwood_priv_data int k2_md_rtty; /* K2 RTTY mode available flag, 1 = RTTY, 0 = N/A */ char *fw_rev; /* firmware revision level */ int trn_state; /* AI state discovered at startup */ - unsigned fw_rev_uint; /* firmware revison as a number 1.07 -> 107 */ + unsigned fw_rev_uint; /* firmware revision as a number 1.07 -> 107 */ char verify_cmd[4]; /* command used to verify set commands */ int is_emulation; /* flag for TS-2000 emulations */ void *data; /* model specific data */ diff --git a/rigs/kenwood/pihpsdr.c b/rigs/kenwood/pihpsdr.c index a7a3cebe..5c1b3838 100644 --- a/rigs/kenwood/pihpsdr.c +++ b/rigs/kenwood/pihpsdr.c @@ -388,7 +388,7 @@ int pihspdr_get_channel(RIG *rig, channel_t *chan, int read_only) /* Memory group no */ chan->scan_group = buf[ 40 ] - '0'; - /* Fileds 38-39 contain tuning step as a number 00 - 09. + /* Fields 38-39 contain tuning step as a number 00 - 09. Tuning step depends on this number and the mode, just save it for now */ buf[ 40 ] = '\0'; @@ -633,7 +633,7 @@ int pihspdr_set_channel(RIG *rig, const channel_t *chan) } else { - tone = -1; /* -1 because we will add 1 when outputing; this is necessary as CTCSS codes are numbered from 1 */ + tone = -1; /* -1 because we will add 1 when outputting; this is necessary as CTCSS codes are numbered from 1 */ } /* find CTCSS code */ diff --git a/rigs/kenwood/th.c b/rigs/kenwood/th.c index 942018df..1a352e59 100644 --- a/rigs/kenwood/th.c +++ b/rigs/kenwood/th.c @@ -1418,7 +1418,7 @@ th_set_ctcss_tone(RIG *rig, vfo_t vfo, tone_t tone) return -RIG_EINVAL; } - i += (i == 0) ? 1 : 2; /* Correct for TH-D7A index anomally */ + i += (i == 0) ? 1 : 2; /* Correct for TH-D7A index anomaly */ snprintf(tonebuf, sizeof tonebuf, "TN %02d", i); return kenwood_transaction(rig, tonebuf, tonebuf, sizeof tonebuf); } @@ -1496,7 +1496,7 @@ th_set_ctcss_sql(RIG *rig, vfo_t vfo, tone_t tone) return -RIG_EINVAL; } - i += (i == 0) ? 1 : 2; /* Correct for TH-D7A index anomally */ + i += (i == 0) ? 1 : 2; /* Correct for TH-D7A index anomaly */ snprintf(tonebuf, sizeof tonebuf, "CTN %02d", i); return kenwood_transaction(rig, tonebuf, tonebuf, sizeof tonebuf); } diff --git a/rigs/kenwood/thd74.c b/rigs/kenwood/thd74.c index 61649672..2605b721 100644 --- a/rigs/kenwood/thd74.c +++ b/rigs/kenwood/thd74.c @@ -1108,7 +1108,7 @@ static int thd74_set_parm(RIG *rig, setting_t parm, value_t val) switch (parm) { - case RIG_PARM_TIME: // FIXME check val, send formated via RT + case RIG_PARM_TIME: // FIXME check val, send formatted via RT default: return -RIG_EINVAL; } diff --git a/rigs/kenwood/ts2000.c b/rigs/kenwood/ts2000.c index 1be085de..2cef024c 100644 --- a/rigs/kenwood/ts2000.c +++ b/rigs/kenwood/ts2000.c @@ -415,7 +415,7 @@ int ts2000_get_channel(RIG *rig, channel_t *chan, int read_only) /* Memory group no */ chan->scan_group = buf[ 40 ] - '0'; - /* Fileds 38-39 contain tuning step as a number 00 - 09. + /* Fields 38-39 contain tuning step as a number 00 - 09. Tuning step depends on this number and the mode, just save it for now */ buf[ 40 ] = '\0'; @@ -665,7 +665,7 @@ int ts2000_set_channel(RIG *rig, const channel_t *chan) } else { - tone = -1; /* -1 because we will add 1 when outputing; this is necessary as CTCSS codes are numbered from 1 */ + tone = -1; /* -1 because we will add 1 when outputting; this is necessary as CTCSS codes are numbered from 1 */ } /* find CTCSS code */ diff --git a/rigs/kenwood/ts2000.txt b/rigs/kenwood/ts2000.txt index e98b737f..132e6027 100644 --- a/rigs/kenwood/ts2000.txt +++ b/rigs/kenwood/ts2000.txt @@ -3,7 +3,7 @@ Version: June 6, 2002 This document provides some data on translating commands from the TS-2000 to/from hamlib. It shows the sequence that should be used - to acheive a particular function result. Sometimes a particular + to achieve a particular function result. Sometimes a particular sequence should be called. --D. Edmons, kd7eni @@ -52,7 +52,7 @@ rig_init() "id;" ts2000_init() "?;" If this occurs, one of the above may be the cause. Also, the user may have a menu currently selected using the rig front panel. I currently don't know any way to get - this info from the rig. I highly reccomend that a + this info from the rig. I highly recommend that a message be sent to the user if "?;" occurs on more than one retry, that he/she must deselect this manually. There is no other way. (I've enabled "ai2;" and no @@ -67,13 +67,13 @@ rig_cleanup() none rig_get_freq() Independent of PTT/CTRL rig_set_freq() "fa...;... [truncated message content] |
From: Michael B. <mdb...@us...> - 2020-07-23 14:00:44
|
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 f133483dd8d6946e185bb00b1c0d1c8cbefbed5b (commit) via 10f7f8da70311f1fcfc4434b51a5c1c66d18cd7b (commit) via 956b29a0aa4eba8eed43b086fb5cb4c548e29407 (commit) from 038b87b29913b5264c00eafaf06a3cc13dc16db7 (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 f133483dd8d6946e185bb00b1c0d1c8cbefbed5b Merge: 10f7f8da 956b29a0 Author: Michael Black W9MDB <mdb...@ya...> Date: Thu Jul 23 09:00:16 2020 -0500 Add 4m EUR to FTDX101D commit 10f7f8da70311f1fcfc4434b51a5c1c66d18cd7b Author: Michael Black W9MDB <mdb...@ya...> Date: Thu Jul 23 08:57:58 2020 -0500 Add 4m EUR to FTDX101D diff --git a/include/bandplan.h b/include/bandplan.h index 4b43271d..c70dca9e 100644 --- a/include/bandplan.h +++ b/include/bandplan.h @@ -141,6 +141,9 @@ #define FRQ_RNG_6m_REGION2(md,lp,hp,v,a) \ { MHz(50),MHz(54), (md), (lp), (hp), (v), (a), "ITU2" } +#define FRQ_RNG_4m_REGION2(md,lp,hp,v,a) \ + { MHz(70),MHz(70.5), (md), (lp), (hp), (v), (a), "ITU2" } + #define FRQ_RNG_2m_REGION2(md,lp,hp,v,a) \ { MHz(144),MHz(148), (md), (lp), (hp), (v), (a), "ITU2" } diff --git a/rigs/yaesu/ft5000.c b/rigs/yaesu/ft5000.c index 8c9dc135..8ccef479 100644 --- a/rigs/yaesu/ft5000.c +++ b/rigs/yaesu/ft5000.c @@ -99,29 +99,29 @@ const struct rig_caps ftdx5000_caps = .rx_range_list1 = { /* General coverage + ham, ANT_5 is RX only antenna */ - {kHz(30), MHz(60), FTDX5000_ALL_RX_MODES, -1, -1, FTDX5000_VFO_ALL, FTDX5000_TX_ANTS | RIG_ANT_5}, + {kHz(30), MHz(60), FTDX5000_ALL_RX_MODES, -1, -1, FTDX5000_VFO_ALL, FTDX5000_TX_ANTS | RIG_ANT_5, "USA"}, RIG_FRNG_END, }, .tx_range_list1 = { FRQ_RNG_HF(1, FTDX5000_OTHER_TX_MODES, W(5), W(200), FTDX5000_VFO_ALL, FTDX5000_TX_ANTS), FRQ_RNG_HF(1, FTDX5000_AM_TX_MODES, W(2), W(75), FTDX5000_VFO_ALL, FTDX5000_TX_ANTS), /* AM class */ - FRQ_RNG_6m(1, FTDX5000_OTHER_TX_MODES, W(5), W(200), FTDX5000_VFO_ALL, FTDX5000_TX_ANTS), - FRQ_RNG_6m(1, FTDX5000_AM_TX_MODES, W(2), W(75), FTDX5000_VFO_ALL, FTDX5000_TX_ANTS), /* AM class */ + FRQ_RNG_6m_REGION1(FTDX5000_OTHER_TX_MODES, W(5), W(200), FTDX5000_VFO_ALL, FTDX5000_TX_ANTS), + FRQ_RNG_6m_REGION1(FTDX5000_AM_TX_MODES, W(2), W(75), FTDX5000_VFO_ALL, FTDX5000_TX_ANTS), /* AM class */ RIG_FRNG_END, }, .rx_range_list2 = { - {kHz(30), MHz(60), FTDX5000_ALL_RX_MODES, -1, -1, FTDX5000_VFO_ALL, FTDX5000_TX_ANTS | RIG_ANT_5}, + {kHz(30), MHz(60), FTDX5000_ALL_RX_MODES, -1, -1, FTDX5000_VFO_ALL, FTDX5000_TX_ANTS | RIG_ANT_5, "EUR"}, RIG_FRNG_END, }, .tx_range_list2 = { FRQ_RNG_HF(2, FTDX5000_OTHER_TX_MODES, W(5), W(200), FTDX5000_VFO_ALL, FTDX5000_TX_ANTS), FRQ_RNG_HF(2, FTDX5000_AM_TX_MODES, W(2), W(75), FTDX5000_VFO_ALL, FTDX5000_TX_ANTS), /* AM class */ - FRQ_RNG_6m(2, FTDX5000_OTHER_TX_MODES, W(5), W(200), FTDX5000_VFO_ALL, FTDX5000_TX_ANTS), - FRQ_RNG_6m(2, FTDX5000_AM_TX_MODES, W(2), W(75), FTDX5000_VFO_ALL, FTDX5000_TX_ANTS), /* AM class */ + FRQ_RNG_6m_REGION2(FTDX5000_OTHER_TX_MODES, W(5), W(200), FTDX5000_VFO_ALL, FTDX5000_TX_ANTS), + FRQ_RNG_6m_REGION2(FTDX5000_AM_TX_MODES, W(2), W(75), FTDX5000_VFO_ALL, FTDX5000_TX_ANTS), /* AM class */ RIG_FRNG_END, }, @@ -271,7 +271,7 @@ const struct rig_caps ftdx3000_caps = .rx_range_list1 = { /* General coverage + ham, ANT_5 is RX only antenna */ - {kHz(30), MHz(60), FTDX5000_ALL_RX_MODES, -1, -1, FTDX5000_VFO_ALL, FTDX5000_TX_ANTS | RIG_ANT_5}, + {kHz(30), MHz(60), FTDX5000_ALL_RX_MODES, -1, -1, FTDX5000_VFO_ALL, FTDX5000_TX_ANTS | RIG_ANT_5, "USA"}, RIG_FRNG_END, }, @@ -285,7 +285,7 @@ const struct rig_caps ftdx3000_caps = }, .rx_range_list2 = { - {kHz(30), MHz(60), FTDX5000_ALL_RX_MODES, -1, -1, FTDX5000_VFO_ALL, FTDX5000_TX_ANTS | RIG_ANT_5}, + {kHz(30), MHz(60), FTDX5000_ALL_RX_MODES, -1, -1, FTDX5000_VFO_ALL, FTDX5000_TX_ANTS | RIG_ANT_5, "EUR"}, RIG_FRNG_END, }, @@ -388,7 +388,7 @@ const struct rig_caps ftdx101d_caps = .mfg_name = "Yaesu", .version = NEWCAT_VER ".0", .copyright = "LGPL", - .status = RIG_STATUS_BETA, + .status = RIG_STATUS_STABLE, .rig_type = RIG_TYPE_TRANSCEIVER, .ptt_type = RIG_PTT_RIG, .dcd_type = RIG_DCD_NONE, @@ -434,7 +434,7 @@ const struct rig_caps ftdx101d_caps = .rx_range_list1 = { /* General coverage + ham, ANT_5 is RX only antenna */ - {kHz(30), MHz(60), FTDX5000_ALL_RX_MODES, -1, -1, FTDX5000_VFO_ALL, FTDX5000_TX_ANTS | RIG_ANT_5}, + {kHz(30), MHz(60), FTDX5000_ALL_RX_MODES, -1, -1, FTDX5000_VFO_ALL, FTDX5000_TX_ANTS | RIG_ANT_5, "USA"}, RIG_FRNG_END, }, @@ -448,7 +448,7 @@ const struct rig_caps ftdx101d_caps = }, .rx_range_list2 = { - {kHz(30), MHz(60), FTDX5000_ALL_RX_MODES, -1, -1, FTDX5000_VFO_ALL, FTDX5000_TX_ANTS | RIG_ANT_5}, + {kHz(30), MHz(60), FTDX5000_ALL_RX_MODES, -1, -1, FTDX5000_VFO_ALL, FTDX5000_TX_ANTS | RIG_ANT_5, "EUR"}, RIG_FRNG_END, }, @@ -457,6 +457,8 @@ const struct rig_caps ftdx101d_caps = FRQ_RNG_HF(2, FTDX5000_AM_TX_MODES, W(2), W(75), FTDX5000_VFO_ALL, FTDX5000_TX_ANTS), /* AM class */ FRQ_RNG_6m(2, FTDX5000_OTHER_TX_MODES, W(5), W(200), FTDX5000_VFO_ALL, FTDX5000_TX_ANTS), FRQ_RNG_6m(2, FTDX5000_AM_TX_MODES, W(2), W(75), FTDX5000_VFO_ALL, FTDX5000_TX_ANTS), /* AM class */ + FRQ_RNG_4m_REGION2(FTDX5000_OTHER_TX_MODES, W(5), W(200), FTDX5000_VFO_ALL, FTDX5000_TX_ANTS), + FRQ_RNG_4m_REGION2(FTDX5000_AM_TX_MODES, W(2), W(75), FTDX5000_VFO_ALL, FTDX5000_TX_ANTS), /* AM class */ RIG_FRNG_END, }, commit 956b29a0aa4eba8eed43b086fb5cb4c548e29407 Author: Michael Black W9MDB <mdb...@ya...> Date: Thu Jul 23 08:24:03 2020 -0500 Add 4m to FTDX101D and promote to stable diff --git a/rigs/yaesu/ft5000.c b/rigs/yaesu/ft5000.c index 8c9dc135..180d962d 100644 --- a/rigs/yaesu/ft5000.c +++ b/rigs/yaesu/ft5000.c @@ -388,7 +388,7 @@ const struct rig_caps ftdx101d_caps = .mfg_name = "Yaesu", .version = NEWCAT_VER ".0", .copyright = "LGPL", - .status = RIG_STATUS_BETA, + .status = RIG_STATUS_STABLE, .rig_type = RIG_TYPE_TRANSCEIVER, .ptt_type = RIG_PTT_RIG, .dcd_type = RIG_DCD_NONE, @@ -457,6 +457,8 @@ const struct rig_caps ftdx101d_caps = FRQ_RNG_HF(2, FTDX5000_AM_TX_MODES, W(2), W(75), FTDX5000_VFO_ALL, FTDX5000_TX_ANTS), /* AM class */ FRQ_RNG_6m(2, FTDX5000_OTHER_TX_MODES, W(5), W(200), FTDX5000_VFO_ALL, FTDX5000_TX_ANTS), FRQ_RNG_6m(2, FTDX5000_AM_TX_MODES, W(2), W(75), FTDX5000_VFO_ALL, FTDX5000_TX_ANTS), /* AM class */ + FRQ_RNG_4m(2, FTDX5000_OTHER_TX_MODES, W(5), W(200), FTDX5000_VFO_ALL, FTDX5000_TX_ANTS), + FRQ_RNG_4m(2, FTDX5000_AM_TX_MODES, W(2), W(75), FTDX5000_VFO_ALL, FTDX5000_TX_ANTS), /* AM class */ RIG_FRNG_END, }, ----------------------------------------------------------------------- Summary of changes: include/bandplan.h | 3 +++ rigs/yaesu/ft5000.c | 24 +++++++++++++----------- 2 files changed, 16 insertions(+), 11 deletions(-) hooks/post-receive -- Hamlib -- Ham radio control libraries |
From: Michael B. <mdb...@us...> - 2020-07-20 19:48:48
|
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 038b87b29913b5264c00eafaf06a3cc13dc16db7 (commit) from 133a8acd30dcc21eef468e021a6e04ec424fd922 (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 038b87b29913b5264c00eafaf06a3cc13dc16db7 Author: Michael Black W9MDB <mdb...@ya...> Date: Mon Jul 20 12:02:05 2020 -0500 Add lua 5.4 support https://github.com/Hamlib/Hamlib/issues/349 diff --git a/configure.ac b/configure.ac index f9b27382..e650f08d 100644 --- a/configure.ac +++ b/configure.ac @@ -602,7 +602,7 @@ AC_MSG_RESULT([$cf_with_lua_binding]) dnl AX_LUA_DEVEL from macros/ax_lua_devel.m4 AS_IF([test x"${cf_with_lua_binding}" = "xyes"],[ - AX_PROG_LUA([5.2], [5.4]) + AX_PROG_LUA([5.2], [5.5]) AX_LUA_HEADERS AX_LUA_LIBS ----------------------------------------------------------------------- Summary of changes: configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) hooks/post-receive -- Hamlib -- Ham radio control libraries |
From: Michael B. <mdb...@us...> - 2020-07-20 12:45:35
|
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 133a8acd30dcc21eef468e021a6e04ec424fd922 (commit) via c7eec2c7887209da4e288acdd4143d055d54f04b (commit) via 4efbddd0e8f51054beb8b63c0038af82eb19c83f (commit) from 614ffe8dab047d2b34d3fe6acf25e631eef65140 (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 133a8acd30dcc21eef468e021a6e04ec424fd922 Author: Michael Black W9MDB <mdb...@ya...> Date: Mon Jul 20 14:42:46 2020 +0200 Fix icom MainA/B SubA/B VFO selection https://github.com/Hamlib/Hamlib/issues/348 diff --git a/rigs/icom/icom.c b/rigs/icom/icom.c index 5878979c..f79773c6 100644 --- a/rigs/icom/icom.c +++ b/rigs/icom/icom.c @@ -2096,7 +2096,8 @@ int icom_set_vfo(RIG *rig, vfo_t vfo) case RIG_VFO_MAIN_A: // we need to select Main before setting VFO case RIG_VFO_MAIN_B: - retval = icom_transaction(rig, C_SET_VFO, RIG_VFO_MAIN, NULL, 0, + rig_debug(RIG_DEBUG_VERBOSE, "%s: MainA/B logic\n", __func__); + retval = icom_transaction(rig, C_SET_VFO, S_MAIN, NULL, 0, ackbuf, &ack_len); if (retval != RIG_OK) @@ -2111,13 +2112,14 @@ int icom_set_vfo(RIG *rig, vfo_t vfo) return -RIG_ERJCTED; } - icvfo = RIG_VFO_MAIN_A ? S_VFOA : S_VFOB; + icvfo = vfo == RIG_VFO_MAIN_A ? S_VFOA : S_VFOB; break; case RIG_VFO_SUB_A: // we need to select Sub before setting VFO case RIG_VFO_SUB_B: - retval = icom_transaction(rig, C_SET_VFO, RIG_VFO_SUB, NULL, 0, + rig_debug(RIG_DEBUG_VERBOSE, "%s: SubA/B logic\n", __func__); + retval = icom_transaction(rig, C_SET_VFO, S_SUB, NULL, 0, ackbuf, &ack_len); if (retval != RIG_OK) @@ -2132,7 +2134,7 @@ int icom_set_vfo(RIG *rig, vfo_t vfo) return -RIG_ERJCTED; } - icvfo = RIG_VFO_SUB_A ? S_VFOA : S_VFOB; + icvfo = vfo == RIG_VFO_SUB_A ? S_VFOA : S_VFOB; break; diff --git a/rigs/icom/icom.h b/rigs/icom/icom.h index f016345a..07e391a0 100644 --- a/rigs/icom/icom.h +++ b/rigs/icom/icom.h @@ -31,7 +31,7 @@ #include <sys/time.h> #endif -#define BACKEND_VER "20200719" +#define BACKEND_VER "20200720" /* * defines used by comp_cal_str in rig.c commit c7eec2c7887209da4e288acdd4143d055d54f04b Author: Michael Black W9MDB <mdb...@ya...> Date: Sun Jul 19 17:24:04 2020 -0500 Add comment to flex6xxx.c diff --git a/rigs/kenwood/flex6xxx.c b/rigs/kenwood/flex6xxx.c index 4dd6f720..a1f598c2 100644 --- a/rigs/kenwood/flex6xxx.c +++ b/rigs/kenwood/flex6xxx.c @@ -72,10 +72,10 @@ static rmode_t powersdr_mode_table[KENWOOD_MODE_TABLE_MAX] = [5] = RIG_MODE_FM, [6] = RIG_MODE_AM, [7] = RIG_MODE_PKTUSB, - [8] = RIG_MODE_NONE, + [8] = RIG_MODE_NONE, // SPEC -- not implemented [8] = RIG_MODE_PKTLSB, [10] = RIG_MODE_SAM, - [11] = RIG_MODE_NONE + [11] = RIG_MODE_NONE // DRM -- not implemented }; static struct kenwood_priv_caps f6k_priv_caps = commit 4efbddd0e8f51054beb8b63c0038af82eb19c83f Author: Michael Black W9MDB <mdb...@ya...> Date: Sun Jul 19 17:21:23 2020 -0500 Add ability to set Icom MAIN_VFO_A/B and SUB_VFO_A/B https://github.com/Hamlib/Hamlib/issues/348 diff --git a/rigs/icom/icom.c b/rigs/icom/icom.c index 5e8af135..5878979c 100644 --- a/rigs/icom/icom.c +++ b/rigs/icom/icom.c @@ -2111,8 +2111,7 @@ int icom_set_vfo(RIG *rig, vfo_t vfo) return -RIG_ERJCTED; } - rig->state.current_vfo = vfo; - return RIG_OK; + icvfo = RIG_VFO_MAIN_A ? S_VFOA : S_VFOB; break; @@ -2133,8 +2132,7 @@ int icom_set_vfo(RIG *rig, vfo_t vfo) return -RIG_ERJCTED; } - rig->state.current_vfo = vfo; - return RIG_OK; + icvfo = RIG_VFO_SUB_A ? S_VFOA : S_VFOB; break; diff --git a/rigs/icom/icom.h b/rigs/icom/icom.h index 5efb6283..f016345a 100644 --- a/rigs/icom/icom.h +++ b/rigs/icom/icom.h @@ -31,7 +31,7 @@ #include <sys/time.h> #endif -#define BACKEND_VER "20200715" +#define BACKEND_VER "20200719" /* * defines used by comp_cal_str in rig.c ----------------------------------------------------------------------- Summary of changes: rigs/icom/icom.c | 12 ++++++------ rigs/icom/icom.h | 2 +- rigs/kenwood/flex6xxx.c | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) hooks/post-receive -- Hamlib -- Ham radio control libraries |
From: Michael B. <mdb...@us...> - 2020-07-19 04:02:00
|
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 614ffe8dab047d2b34d3fe6acf25e631eef65140 (commit) via b135aa3da6c7172d9235f51e22cb24b4e286f3f9 (commit) from 3e06b86fc7f44cbdc2beb00914cc3a4fc18c4c72 (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 614ffe8dab047d2b34d3fe6acf25e631eef65140 Author: Michael Black W9MDB <mdb...@ya...> Date: Sat Jul 18 22:56:42 2020 -0500 PowerSDR rig now recognizes 10 modes 0-11 but not SPEC or DRM yet Bandwidth returns now accurately reflect bandwith on Thetis (tested) Setting bandwidth for PKTUSB/PKTLSB uses 150Hz for lo and hi=width For example PKTUSB/6000 will set lo=150 and hi=6000 https://github.com/Hamlib/Hamlib/issues/344 diff --git a/rigs/kenwood/flex6xxx.c b/rigs/kenwood/flex6xxx.c index c77e16fa..4dd6f720 100644 --- a/rigs/kenwood/flex6xxx.c +++ b/rigs/kenwood/flex6xxx.c @@ -62,12 +62,34 @@ static rmode_t flex_mode_table[KENWOOD_MODE_TABLE_MAX] = [9] = RIG_MODE_PKTUSB }; +static rmode_t powersdr_mode_table[KENWOOD_MODE_TABLE_MAX] = +{ + [0] = RIG_MODE_LSB, + [1] = RIG_MODE_USB, + [2] = RIG_MODE_DSB, + [3] = RIG_MODE_CWR, + [4] = RIG_MODE_CW, + [5] = RIG_MODE_FM, + [6] = RIG_MODE_AM, + [7] = RIG_MODE_PKTUSB, + [8] = RIG_MODE_NONE, + [8] = RIG_MODE_PKTLSB, + [10] = RIG_MODE_SAM, + [11] = RIG_MODE_NONE +}; + static struct kenwood_priv_caps f6k_priv_caps = { .cmdtrm = EOM_KEN, .mode_table = flex_mode_table, }; +static struct kenwood_priv_caps powersdr_priv_caps = +{ + .cmdtrm = EOM_KEN, + .mode_table = powersdr_mode_table, +}; + #define DSP_BW_NUM 8 static int dsp_bw_ssb[DSP_BW_NUM] = @@ -90,6 +112,37 @@ static int dsp_bw_dig[DSP_BW_NUM] = 3000, 2000, 1500, 1000, 600, 300, 150, 100 }; +// PowerSDR settings +#define DSP_BW_NUM_POWERSDR 12 + +static int dsp_bw_ssb_powersdr[DSP_BW_NUM_POWERSDR] = +{ + 5000, 4400, 3800, 3300, 2900, 2700, 2400, 2100, 1800, 1000, 0, 0 +}; + +static int dsp_bw_am_powersdr[DSP_BW_NUM_POWERSDR] = +{ + 16000, 12000, 10000, 8000, 6600, 5200, 4000, 3100, 2900, 2400, 0, 0 +}; + +static int dsp_bw_cw_powersdr[DSP_BW_NUM_POWERSDR] = +{ + 1000, 800, 600, 500, 400, 250, 150, 100, 50, 25, 0, 0 +}; + +static int dsp_bw_dig_powersdr[DSP_BW_NUM_POWERSDR] = +{ + 3000, 2500, 2000, 1500, 1000, 800, 600, 300, 150, 75, 0, 0 +}; + +#if 0 // not used yet +static int dsp_bw_sam_powersdr[DSP_BW_NUM_POWERSDR] = +{ + 20000, 18000, 16000, 12000, 10000, 9000, 8000, 7000, 6000, 5000, 0, 0 +}; +#endif + + /* Private helper functions */ static int flex6k_get_mode(RIG *rig, vfo_t vfo, rmode_t *mode, pbwidth_t *width) @@ -123,7 +176,8 @@ static int flex6k_get_mode(RIG *rig, vfo_t vfo, rmode_t *mode, pbwidth_t *width) /* * The Flex CAT interface does not support FW for reading filter width, - * so use the ZZFI or ZZFJ command + * so use the ZZFI + * Have to determine what to do with receiver#2 if anybody ever asks */ switch (vfo) { @@ -150,13 +204,14 @@ static int flex6k_get_mode(RIG *rig, vfo_t vfo, rmode_t *mode, pbwidth_t *width) if (index >= DSP_BW_NUM) { rig_debug(RIG_DEBUG_ERR, - "flex6k_get_mode: unexpected ZZF[IJ] answer, index=%d\n", index); + "%s: unexpected ZZF[IJ] answer, index=%d\n", __func__, index); return -RIG_ERJCTED; } switch (*mode) { case RIG_MODE_AM: + case RIG_MODE_DSB: *width = dsp_bw_am[index]; break; @@ -187,6 +242,75 @@ static int flex6k_get_mode(RIG *rig, vfo_t vfo, rmode_t *mode, pbwidth_t *width) return RIG_OK; } +static int powersdr_get_mode(RIG *rig, vfo_t vfo, rmode_t *mode, + pbwidth_t *width) +{ + struct kenwood_priv_caps *caps = kenwood_caps(rig); + char modebuf[10]; + int retval; + + rig_debug(RIG_DEBUG_VERBOSE, "%s called\n", __func__); + + if (!mode || !width) + { + return -RIG_EINVAL; + } + + retval = kenwood_safe_transaction(rig, "ZZMD", modebuf, 10, 6); + + if (retval != RIG_OK) + { + return retval; + } + + *mode = kenwood2rmode(atoi(&modebuf[4]), caps->mode_table); + + if ((vfo == RIG_VFO_VFO) || (vfo == RIG_VFO_CURR)) + { + vfo = rig->state.current_vfo; + rig_debug(RIG_DEBUG_VERBOSE, "%s: setting VFO to current\n", __func__); + } + + /* + * The Flex CAT interface does not support FW for reading filter width, + * so use the ZZFI or ZZFJ command + */ + switch (vfo) + { + int lo, hi; + + case RIG_VFO_A: + case RIG_VFO_B: + retval = kenwood_safe_transaction(rig, "ZZFL", modebuf, 10, 9); + + if (retval != RIG_OK) + { + return retval; + } + + lo = atoi(&modebuf[4]); + retval = kenwood_safe_transaction(rig, "ZZFH", modebuf, 10, 9); + + if (retval != RIG_OK) + { + return retval; + } + + hi = atoi(&modebuf[4]); + rig_debug(RIG_DEBUG_VERBOSE, "%s: lo=%d, hi=%d\n", __func__, lo, hi); + *width = hi - lo; + break; + + default: + rig_debug(RIG_DEBUG_ERR, "%s: unsupported VFO %s\n", __func__, rig_strvfo(vfo)); + return -RIG_EINVAL; + } + + return RIG_OK; +} + +/* Private helper functions */ + static int flex6k_find_width(rmode_t mode, pbwidth_t width, int *ridx) { int *w_a; // Width array, these are all ordered in descending order! @@ -238,6 +362,58 @@ static int flex6k_find_width(rmode_t mode, pbwidth_t width, int *ridx) return RIG_OK; } +static int powersdr_find_width(rmode_t mode, pbwidth_t width, int *ridx) +{ + int *w_a; // Width array, these are all ordered in descending order! + int idx = 0; + + rig_debug(RIG_DEBUG_VERBOSE, "%s called\n", __func__); + + switch (mode) + { + case RIG_MODE_AM: + w_a = dsp_bw_am_powersdr; + break; + + case RIG_MODE_CW: + case RIG_MODE_CWR: + w_a = dsp_bw_cw_powersdr; + break; + + case RIG_MODE_USB: + case RIG_MODE_LSB: + w_a = dsp_bw_ssb_powersdr; + break; + + //case RIG_MODE_FM: + //*width = 3000; /* not supported yet, needs followup */ + //break; + case RIG_MODE_PKTLSB: + case RIG_MODE_PKTUSB: + w_a = dsp_bw_dig_powersdr; + break; + + default: + rig_debug(RIG_DEBUG_ERR, "%s: unsupported mode %s\n", __func__, + rig_strrmode(mode)); + return -RIG_EINVAL; + } + + // return the first smaller or equal possibility + while ((idx < DSP_BW_NUM) && (w_a[idx] > width)) + { + idx++; + } + + if (idx >= DSP_BW_NUM) + { + idx = DSP_BW_NUM - 1; + } + + *ridx = idx; + return RIG_OK; +} + static int flex6k_set_mode(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width) { struct kenwood_priv_caps *caps = kenwood_caps(rig); @@ -308,6 +484,87 @@ static int flex6k_set_mode(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width) return RIG_OK; } + +static int powersdr_set_mode(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width) +{ + struct kenwood_priv_caps *caps = kenwood_caps(rig); + char buf[64]; + char kmode; + int idx; + int err; + + rig_debug(RIG_DEBUG_VERBOSE, "%s called mode=%s, width=%d\n", __func__, + rig_strrmode(mode), (int)width); + + kmode = rmode2kenwood(mode, caps->mode_table); + + if (kmode < 0) + { + rig_debug(RIG_DEBUG_WARN, "%s: unsupported mode '%s'\n", + __func__, rig_strrmode(mode)); + return -RIG_EINVAL; + } + + sprintf(buf, "ZZMD%02d", kmode); + err = kenwood_transaction(rig, buf, NULL, 0); + + if (err != RIG_OK) + { + return err; + } + + if ((vfo == RIG_VFO_VFO) || (vfo == RIG_VFO_CURR)) + { + vfo = rig->state.current_vfo; + rig_debug(RIG_DEBUG_VERBOSE, "%s: setting VFO to current\n", __func__); + } + + if (RIG_PASSBAND_NOCHANGE == width) { return err; } + + err = powersdr_find_width(mode, width, &idx); + + if (err != RIG_OK) + { + return err; + } + + /* + * The Flex CAT interface does not support FW for reading filter width, + * so use the ZZFI or ZZFJ command + */ + switch (vfo) + { + case RIG_VFO_B: + case RIG_VFO_A: + if ((mode == RIG_MODE_PKTUSB || mode == RIG_MODE_PKTLSB) && width > 3000) + { + // 150Hz on the low end should be enough + // Set high to the width requested + sprintf(buf, "ZZFL00150;ZZFH%05d;", (int)width); + } + else + { + sprintf(buf, "ZZFI%02d;", idx); + } + + break; + + // what do we do about RX2 ?? + + default: + rig_debug(RIG_DEBUG_ERR, "%s: unsupported VFO %s\n", __func__, rig_strvfo(vfo)); + return -RIG_EINVAL; + } + + err = kenwood_transaction(rig, buf, NULL, 0); + + if (err != RIG_OK) + { + return err; + } + + return RIG_OK; +} /* * flex6k_get_ptt */ @@ -504,9 +761,9 @@ const struct rig_caps powersdr_caps = RIG_MODEL(RIG_MODEL_POWERSDR), .model_name = "PowerSDR", .mfg_name = "FlexRadio", - .version = "20200528.0", + .version = "20200716.0", .copyright = "LGPL", - .status = RIG_STATUS_BETA, + .status = RIG_STATUS_STABLE, .rig_type = RIG_TYPE_TRANSCEIVER, .ptt_type = RIG_PTT_RIG, .dcd_type = RIG_DCD_NONE, @@ -518,12 +775,12 @@ const struct rig_caps powersdr_caps = .serial_parity = RIG_PARITY_NONE, .serial_handshake = RIG_HANDSHAKE_NONE, .write_delay = 0, - .post_write_delay = 0, /* ms */ + .post_write_delay = 20, // The combination of timeout and retry is important // We need at least 3 seconds to do profile switches // Hitting the timeout is OK as long as we retry // Previous note showed FA/FB may take up to 500ms on band change - .timeout = 250, + .timeout = 800, // some band transitions can take 600ms .retry = 3, .has_get_func = RIG_FUNC_NONE, /* has VOX but not implemented here */ @@ -536,7 +793,6 @@ const struct rig_caps powersdr_caps = .parm_gran = {}, //.extlevels = elecraft_ext_levels, //.extparms = kenwood_cfg_params, - .post_write_delay = 20, .preamp = { RIG_DBLST_END, }, .attenuator = { RIG_DBLST_END, }, .max_rit = Hz(0), @@ -604,7 +860,7 @@ const struct rig_caps powersdr_caps = {RIG_MODE_FM, kHz(13)}, /* TBC */ RIG_FLT_END, }, - .priv = (void *)& f6k_priv_caps, + .priv = (void *)& powersdr_priv_caps, .rig_init = kenwood_init, .rig_cleanup = kenwood_cleanup, @@ -612,8 +868,8 @@ const struct rig_caps powersdr_caps = .rig_close = kenwood_close, .set_freq = kenwood_set_freq, .get_freq = kenwood_get_freq, - .set_mode = flex6k_set_mode, - .get_mode = flex6k_get_mode, + .set_mode = powersdr_set_mode, + .get_mode = powersdr_get_mode, .set_vfo = kenwood_set_vfo, .get_vfo = kenwood_get_vfo_if, .set_split_vfo = kenwood_set_split_vfo, commit b135aa3da6c7172d9235f51e22cb24b4e286f3f9 Author: Michael Black W9MDB <mdb...@ya...> Date: Sat Jul 18 22:54:46 2020 -0500 Promote ic7100 to STABLE diff --git a/rigs/icom/ic7100.c b/rigs/icom/ic7100.c index 851fefbe..79f590bd 100644 --- a/rigs/icom/ic7100.c +++ b/rigs/icom/ic7100.c @@ -198,7 +198,7 @@ const struct rig_caps ic7100_caps = .mfg_name = "Icom", .version = BACKEND_VER ".0", .copyright = "LGPL", - .status = RIG_STATUS_ALPHA, + .status = RIG_STATUS_STABLE, .rig_type = RIG_TYPE_TRANSCEIVER, .ptt_type = RIG_PTT_RIG, .dcd_type = RIG_DCD_RIG, ----------------------------------------------------------------------- Summary of changes: rigs/icom/ic7100.c | 2 +- rigs/kenwood/flex6xxx.c | 276 ++++++++++++++++++++++++++++++++++++++++++++++-- 2 files changed, 267 insertions(+), 11 deletions(-) hooks/post-receive -- Hamlib -- Ham radio control libraries |
From: Michael B. <mdb...@us...> - 2020-07-18 18:04:33
|
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 3e06b86fc7f44cbdc2beb00914cc3a4fc18c4c72 (commit) from 44a88d24e85f2feb293c7b944ecc3f89e98839c0 (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 3e06b86fc7f44cbdc2beb00914cc3a4fc18c4c72 Author: Michael Black W9MDB <mdb...@ya...> Date: Sat Jul 18 13:04:15 2020 -0500 Add CWR an RTTYR to ic756.c diff --git a/rigs/icom/ic756.c b/rigs/icom/ic756.c index 0fba1e50..9c740424 100644 --- a/rigs/icom/ic756.c +++ b/rigs/icom/ic756.c @@ -37,13 +37,13 @@ #include "bandplan.h" -#define IC756_ALL_RX_MODES (RIG_MODE_AM|RIG_MODE_CW|RIG_MODE_SSB|RIG_MODE_RTTY|RIG_MODE_FM) +#define IC756_ALL_RX_MODES (RIG_MODE_AM|RIG_MODE_CW|RIG_MODE_CWR|RIG_MODE_SSB|RIG_MODE_RTTY|RIG_MODE_RTTYR|RIG_MODE_FM) #define IC756_1HZ_TS_MODES IC756_ALL_RX_MODES /* * 100W in all modes but AM (40W) */ -#define IC756_OTHER_TX_MODES (RIG_MODE_CW|RIG_MODE_SSB|RIG_MODE_RTTY|RIG_MODE_FM) +#define IC756_OTHER_TX_MODES (RIG_MODE_CW|RIG_MODE_CWR|RIG_MODE_SSB|RIG_MODE_RTTY|RIG_MODE_RTTYR|RIG_MODE_FM) #define IC756_AM_TX_MODES (RIG_MODE_AM) #define IC756PRO_FUNC_ALL (RIG_FUNC_NB|RIG_FUNC_COMP|RIG_FUNC_VOX|RIG_FUNC_TONE|RIG_FUNC_TSQL|RIG_FUNC_SBKIN|RIG_FUNC_FBKIN|RIG_FUNC_NR|RIG_FUNC_MON|RIG_FUNC_MN|RIG_FUNC_RF|RIG_FUNC_ANF) @@ -226,9 +226,11 @@ const struct rig_caps ic756_caps = }, /* mode/filter list, remember: order matters! */ .filters = { - {RIG_MODE_SSB | RIG_MODE_RTTY, kHz(2.4)}, + {RIG_MODE_SSB | RIG_MODE_RTTY | RIG_MODE_RTTYR, kHz(2.4)}, {RIG_MODE_CW, kHz(2.4)}, {RIG_MODE_CW, Hz(500)}, + {RIG_MODE_CWR, kHz(2.4)}, + {RIG_MODE_CWR, Hz(500)}, {RIG_MODE_AM, kHz(9)}, {RIG_MODE_AM, kHz(2.4)}, {RIG_MODE_FM, kHz(15)}, @@ -386,8 +388,9 @@ const struct rig_caps ic756pro_caps = }, /* mode/filter list, remember: order matters! */ .filters = { - {RIG_MODE_SSB | RIG_MODE_RTTY, kHz(2.4)}, + {RIG_MODE_SSB | RIG_MODE_RTTY | RIG_MODE_RTTYR, kHz(2.4)}, {RIG_MODE_CW, Hz(500)}, + {RIG_MODE_CWR, Hz(500)}, {RIG_MODE_AM, kHz(8)}, {RIG_MODE_AM, kHz(2.4)}, {RIG_MODE_FM, kHz(15)}, @@ -539,7 +542,7 @@ const struct rig_caps ic756pro2_caps = RIG_MODEL(RIG_MODEL_IC756PROII), .model_name = "IC-756PROII", .mfg_name = "Icom", - .version = BACKEND_VER ".0", + .version = BACKEND_VER ".1", .copyright = "LGPL", .status = RIG_STATUS_STABLE, .rig_type = RIG_TYPE_TRANSCEIVER, ----------------------------------------------------------------------- Summary of changes: rigs/icom/ic756.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) hooks/post-receive -- Hamlib -- Ham radio control libraries |
From: Michael B. <mdb...@us...> - 2020-07-17 14:20:37
|
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 44a88d24e85f2feb293c7b944ecc3f89e98839c0 (commit) via 981035195805d6f9c3faf2c9fcef686d46dffe8c (commit) from 664cfaa0c6423c8dd1e92a4485766775458ab3e2 (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 44a88d24e85f2feb293c7b944ecc3f89e98839c0 Merge: 664cfaa0 98103519 Author: Michael Black <mdb...@ya...> Date: Fri Jul 17 09:13:49 2020 -0500 Merge pull request #346 from df7cb/typos Fix two typos commit 981035195805d6f9c3faf2c9fcef686d46dffe8c Author: Ervin Hegedus <ai...@gm...> Date: Fri Jul 17 15:36:28 2020 +0200 Fix two typos diff --git a/rigs/rs/gp2000.c b/rigs/rs/gp2000.c index cbf9c5ab..ac69e3b4 100644 --- a/rigs/rs/gp2000.c +++ b/rigs/rs/gp2000.c @@ -490,7 +490,7 @@ gp2000_get_info(RIG *rig) break; default: - printf("Unknown reponse: %s\n", p); + printf("Unknown response: %s\n", p); } diff --git a/rigs/winradio/g313-posix.c b/rigs/winradio/g313-posix.c index 7324c627..ba09ec56 100644 --- a/rigs/winradio/g313-posix.c +++ b/rigs/winradio/g313-posix.c @@ -196,7 +196,7 @@ int g313_open(RIG *rig) return -RIG_EIO; /* huh! */ } - rig_debug(RIG_DEBUG_VERBOSE, "%s: Openned G313\n", __func__); + rig_debug(RIG_DEBUG_VERBOSE, "%s: Opened G313\n", __func__); /* Make sure the receiver is switched on */ SetPower(priv->hRadio, 1); ----------------------------------------------------------------------- Summary of changes: rigs/rs/gp2000.c | 2 +- rigs/winradio/g313-posix.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) hooks/post-receive -- Hamlib -- Ham radio control libraries |
From: Michael B. <mdb...@us...> - 2020-07-17 12:50:43
|
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 664cfaa0c6423c8dd1e92a4485766775458ab3e2 (commit) via 40b5a0f37fdb64edb33abe0f27d469f806295ae2 (commit) via c708513d081922017772e8c9fbcad93b270e9696 (commit) via 31c7441338b26c30b2186813ae661897b780fe83 (commit) via d0bff25bb9ac7fb02c524e144c5ebe2e0e8b1b1a (commit) via a00a4b3623b362dafa83f60567b8f2e8fbcc1594 (commit) via d36c5c5179698ede729836eb8d0502a6df4f53a3 (commit) via fbc9f3508f070924ff38353f177456466f141c6a (commit) via 705dff4be6a729f94b3ad1792776a774c4dacbde (commit) via d05dc06e6edffaedfdd1b0de76b640fae8d5ea17 (commit) via f91deb5b99544c2e8d10bc7ee72c3e698a670e1b (commit) via 89cc374620753a21f37c6d4931d5509105ddf79c (commit) via 3fbde2f7cabec92daef071d156b17f5649921782 (commit) via 5e75d4fb48f0a60a3896a4a656451010eab0aaa1 (commit) via cd0c0402cd27afd4d90e88d4dfd40f3cead44f5a (commit) via 3e0b1e2eed1e655eb31fc5ec6362d8e62de12304 (commit) via 95717720150115835a4c8dc50125a17885fbf85e (commit) via ccc981e51e94b31ca034a2700fabc9cb6fa90167 (commit) via 7691c1e84fec43aace8d9dfb62781c5c2e82d9bd (commit) via 3d20314681c430e5f17638dadcaaa6dfc078c6d5 (commit) via 6e792e8a8cd7cbc08774debe47eec31e039feafe (commit) via 993e9b392b679c7ced928809a5924b5449b901d8 (commit) via 1fd4e9434bba4e23797ef608040d7862ff6667e2 (commit) from 7b3527187c7c195b37c9c9b991559f5a2663e7dc (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 664cfaa0c6423c8dd1e92a4485766775458ab3e2 Author: Michael Black W9MDB <mdb...@ya...> Date: Fri Jul 17 07:50:24 2020 -0500 Another promotion to STABLE diff --git a/rigs/kit/funcube.c b/rigs/kit/funcube.c index 3077ef26..1402471f 100644 --- a/rigs/kit/funcube.c +++ b/rigs/kit/funcube.c @@ -105,7 +105,7 @@ const struct rig_caps funcube_caps = .mfg_name = "AMSAT-UK", .version = BACKEND_VER ".0", .copyright = "LGPL", - .status = RIG_STATUS_BETA, + .status = RIG_STATUS_STABLE, .rig_type = RIG_TYPE_TUNER, .ptt_type = RIG_PTT_RIG, .dcd_type = RIG_DCD_NONE, @@ -168,7 +168,7 @@ const struct rig_caps funcubeplus_caps = .mfg_name = "AMSAT-UK", .version = BACKEND_VER ".0", .copyright = "LGPL", - .status = RIG_STATUS_BETA, + .status = RIG_STATUS_STABLE, .rig_type = RIG_TYPE_TUNER, .ptt_type = RIG_PTT_RIG, .dcd_type = RIG_DCD_NONE, commit 40b5a0f37fdb64edb33abe0f27d469f806295ae2 Merge: 7b352718 c708513d Author: Michael Black <mdb...@ya...> Date: Fri Jul 17 06:30:36 2020 -0500 Merge pull request #345 from dl1ycf/master Corrections. Mostly to make the Compiler happy, but also a serious one. commit c708513d081922017772e8c9fbcad93b270e9696 Author: c vw <dl...@da...> Date: Fri Jul 17 12:25:02 2020 +0200 corr diff --git a/rigs/kenwood/kenwood.c b/rigs/kenwood/kenwood.c index 1c85a224..a2c6fc86 100644 --- a/rigs/kenwood/kenwood.c +++ b/rigs/kenwood/kenwood.c @@ -1710,7 +1710,7 @@ int kenwood_set_rit(RIG *rig, vfo_t vfo, shortfreq_t rit) if (priv->has_rit2) // if backend shows it has the Set 2 command { - char cmd[15]; + char cmd[15]; // length required to make Apple-gcc happy (unicode-proof). snprintf(cmd, sizeof(cmd)-1, "R%c%05d", rit > 0 ? 'U' : 'D', abs((int)rit)); retval = kenwood_transaction(rig, cmd, NULL, 0); } commit 31c7441338b26c30b2186813ae661897b780fe83 Author: c vw <dl...@da...> Date: Fri Jul 17 12:23:26 2020 +0200 corr. diff --git a/rigs/drake/drake.c b/rigs/drake/drake.c index d3159d91..0fc86fa0 100644 --- a/rigs/drake/drake.c +++ b/rigs/drake/drake.c @@ -853,7 +853,7 @@ int drake_get_chan(RIG *rig, channel_t *chan, int read_only) strncpy(chan->channel_desc, mdbuf + 25, 7); - chan->channel_desc[8]='\0'; // in case strncpy did not terminate the string + chan->channel_desc[7]='\0'; // in case strncpy did not terminate the string //now put the radio back the way it was //we apparently can't do a read-only channel read commit d0bff25bb9ac7fb02c524e144c5ebe2e0e8b1b1a Author: c vw <dl...@da...> Date: Fri Jul 17 12:22:21 2020 +0200 Corrections diff --git a/rigs/alinco/dxsr8.c b/rigs/alinco/dxsr8.c index ceda53d4..e4d5a56f 100644 --- a/rigs/alinco/dxsr8.c +++ b/rigs/alinco/dxsr8.c @@ -471,6 +471,7 @@ int dxsr8_get_mode(RIG *rig, vfo_t vfo, rmode_t *mode, pbwidth_t *width) return -RIG_EINVAL; } + filter=0; // avoid compiler warings of being possibly uninitialized retval = dxsr8_read_num(rig, AL "~RR_NAR" EOM, &filter); if (filter == 0) diff --git a/rigs/aor/aor.c b/rigs/aor/aor.c index 38430d36..61c3cd25 100644 --- a/rigs/aor/aor.c +++ b/rigs/aor/aor.c @@ -467,6 +467,7 @@ int aor_set_mode(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width) if (retval != RIG_OK) { return retval; } strncpy(mdbuf2, mdbuf + 4, 3); /* Extract first 'BW' part */ + mdbuf2[3]='\0'; // in case strnpy produces and un-terminated string mdbuf2_len = strlen(mdbuf2); retval = aor_transaction(rig, mdbuf2, mdbuf2_len, NULL, NULL); diff --git a/rigs/drake/drake.c b/rigs/drake/drake.c index 06687252..d3159d91 100644 --- a/rigs/drake/drake.c +++ b/rigs/drake/drake.c @@ -563,6 +563,7 @@ int drake_set_mem(RIG *rig, vfo_t vfo, int ch) len = sprintf(buf, "C%03d" EOM, ch); + ack_len=0; // fix compile-time warning "possibly uninitialized" retval = drake_transaction(rig, buf, len, ackbuf, &ack_len); if (ack_len != 2) @@ -852,6 +853,7 @@ int drake_get_chan(RIG *rig, channel_t *chan, int read_only) strncpy(chan->channel_desc, mdbuf + 25, 7); + chan->channel_desc[8]='\0'; // in case strncpy did not terminate the string //now put the radio back the way it was //we apparently can't do a read-only channel read diff --git a/rigs/kenwood/kenwood.c b/rigs/kenwood/kenwood.c index 196826e5..1c85a224 100644 --- a/rigs/kenwood/kenwood.c +++ b/rigs/kenwood/kenwood.c @@ -1661,7 +1661,7 @@ int kenwood_get_freq(RIG *rig, vfo_t vfo, freq_t *freq) int kenwood_get_rit(RIG *rig, vfo_t vfo, shortfreq_t *rit) { int retval; - char buf[6]; + char buf[7]; struct kenwood_priv_data *priv = rig->state.priv; rig_debug(RIG_DEBUG_VERBOSE, "%s called\n", __func__); @@ -1710,8 +1710,8 @@ int kenwood_set_rit(RIG *rig, vfo_t vfo, shortfreq_t rit) if (priv->has_rit2) // if backend shows it has the Set 2 command { - char cmd[10]; - snprintf(cmd, sizeof(cmd) - 1, "R%c%05d", rit > 0 ? 'U' : 'D', abs((int)rit)); + char cmd[15]; + snprintf(cmd, sizeof(cmd)-1, "R%c%05d", rit > 0 ? 'U' : 'D', abs((int)rit)); retval = kenwood_transaction(rig, cmd, NULL, 0); } else diff --git a/src/rig.c b/src/rig.c index 274d1a65..be6dcefd 100644 --- a/src/rig.c +++ b/src/rig.c @@ -182,8 +182,7 @@ static const char *rigerror_table[] = "Communication bus collision", "NULL RIG handle or invalid pointer parameter", "Invalid VFO", - "Argument out of domain of func", - NULL, + "Argument out of domain of func" }; @@ -294,7 +293,8 @@ const char *HAMLIB_API rigerror(int errnum) if (errnum >= ERROR_TBL_SZ) { - return NULL; + // This should not happen, but if it happens don't return NULL + return "ERR_OUT_OF_RANGE"; } return rigerror_table[errnum]; commit a00a4b3623b362dafa83f60567b8f2e8fbcc1594 Merge: d36c5c51 ec24abb6 Author: c vw <dl...@da...> Date: Fri Jul 17 11:01:29 2020 +0200 Merge branch 'master' of https://github.com/Hamlib/Hamlib commit d36c5c5179698ede729836eb8d0502a6df4f53a3 Merge: fbc9f350 416380ec Author: c vw <dl...@da...> Date: Thu Jul 16 16:52:48 2020 +0200 Merge branch 'master' of https://github.com/Hamlib/Hamlib commit fbc9f3508f070924ff38353f177456466f141c6a Merge: 705dff4b 9c856168 Author: c vw <dl...@da...> Date: Fri Jul 10 13:58:39 2020 +0200 Merge branch 'master' of https://github.com/Hamlib/Hamlib commit 705dff4be6a729f94b3ad1792776a774c4dacbde Merge: d05dc06e 0c2b39c2 Author: c vw <dl...@da...> Date: Fri Jul 3 16:16:54 2020 +0200 Merge branch 'master' of https://github.com/Hamlib/Hamlib commit d05dc06e6edffaedfdd1b0de76b640fae8d5ea17 Merge: f91deb5b bda6d1d1 Author: c vw <dl...@da...> Date: Thu Jul 2 16:26:46 2020 +0200 Merge branch 'master' of https://github.com/Hamlib/Hamlib commit f91deb5b99544c2e8d10bc7ee72c3e698a670e1b Merge: 89cc3746 c332036e Author: c vw <dl...@da...> Date: Mon Jun 29 15:46:40 2020 +0200 Merge branch 'master' of https://github.com/Hamlib/Hamlib commit 89cc374620753a21f37c6d4931d5509105ddf79c Merge: 3fbde2f7 0ac0d491 Author: DL1YCF <dl...@da...> Date: Fri Jun 26 23:35:04 2020 +0200 Merge branch 'master' of https://github.com/Hamlib/Hamlib commit 3fbde2f7cabec92daef071d156b17f5649921782 Merge: 5e75d4fb 0ec3d475 Author: c vw <dl...@da...> Date: Fri Jun 19 15:57:38 2020 +0200 Merge branch 'master' of https://github.com/Hamlib/Hamlib commit 5e75d4fb48f0a60a3896a4a656451010eab0aaa1 Merge: cd0c0402 95e869d0 Author: c vw <dl...@da...> Date: Thu Jun 18 18:02:20 2020 +0200 Merge branch 'master' of https://github.com/Hamlib/Hamlib commit cd0c0402cd27afd4d90e88d4dfd40f3cead44f5a Merge: 3e0b1e2e c0a3450f Author: DL1YCF <dl...@da...> Date: Sun Jun 14 14:24:52 2020 +0200 Merge branch 'master' of https://github.com/Hamlib/Hamlib commit 3e0b1e2eed1e655eb31fc5ec6362d8e62de12304 Merge: 95717720 a11cddfd Author: DL1YCF <dl...@da...> Date: Sat Jun 13 15:38:30 2020 +0200 Merge branch 'master' of https://github.com/Hamlib/Hamlib commit 95717720150115835a4c8dc50125a17885fbf85e Merge: ccc981e5 2db0da54 Author: DL1YCF <dl...@da...> Date: Sat Jun 13 10:44:28 2020 +0200 Merge branch 'master' of https://github.com/Hamlib/Hamlib commit ccc981e51e94b31ca034a2700fabc9cb6fa90167 Merge: 7691c1e8 b15c73d2 Author: DL1YCF <dl...@da...> Date: Fri Jun 12 23:39:47 2020 +0200 Merge branch 'master' of https://github.com/Hamlib/Hamlib commit 7691c1e84fec43aace8d9dfb62781c5c2e82d9bd Merge: 3d203146 1317bb80 Author: c vw <dl...@da...> Date: Fri Jun 12 15:49:31 2020 +0200 Merge branch 'master' of https://github.com/Hamlib/Hamlib commit 3d20314681c430e5f17638dadcaaa6dfc078c6d5 Merge: 6e792e8a 7cdaa0ef Author: c vw <dl...@da...> Date: Fri Jun 12 15:06:20 2020 +0200 Merge branch 'master' of https://github.com/Hamlib/Hamlib commit 6e792e8a8cd7cbc08774debe47eec31e039feafe Author: c vw <dl...@da...> Date: Fri Jun 12 10:45:43 2020 +0200 manual merge diff --git a/rigs/kenwood/pihpsdr.c b/rigs/kenwood/pihpsdr.c index b65977e1..a7a3cebe 100644 --- a/rigs/kenwood/pihpsdr.c +++ b/rigs/kenwood/pihpsdr.c @@ -117,7 +117,7 @@ const struct rig_caps pihpsdr_caps = .serial_handshake = RIG_HANDSHAKE_NONE, .write_delay = 0, .post_write_delay = 50, /* ms */ - .timeout = 500, + .timeout = 500, .retry = 1, .has_get_func = PIHPSDR_FUNC_ALL, .has_set_func = PIHPSDR_FUNC_ALL, commit 993e9b392b679c7ced928809a5924b5449b901d8 Merge: 1fd4e943 c1b9f254 Author: c vw <dl...@da...> Date: Fri Jun 12 10:41:58 2020 +0200 Merge branch 'master' of https://github.com/Hamlib/Hamlib commit 1fd4e9434bba4e23797ef608040d7862ff6667e2 Author: c vw <dl...@da...> Date: Thu Jun 11 17:10:06 2020 +0200 Increased timeout, necessary because of changes in pihpsdr software diff --git a/rigs/kenwood/pihpsdr.c b/rigs/kenwood/pihpsdr.c index c308301a..b65977e1 100644 --- a/rigs/kenwood/pihpsdr.c +++ b/rigs/kenwood/pihpsdr.c @@ -117,7 +117,7 @@ const struct rig_caps pihpsdr_caps = .serial_handshake = RIG_HANDSHAKE_NONE, .write_delay = 0, .post_write_delay = 50, /* ms */ - .timeout = 50, + .timeout = 500, .retry = 1, .has_get_func = PIHPSDR_FUNC_ALL, .has_set_func = PIHPSDR_FUNC_ALL, ----------------------------------------------------------------------- Summary of changes: rigs/alinco/dxsr8.c | 1 + rigs/aor/aor.c | 1 + rigs/drake/drake.c | 2 ++ rigs/kenwood/kenwood.c | 6 +++--- rigs/kit/funcube.c | 4 ++-- src/rig.c | 6 +++--- 6 files changed, 12 insertions(+), 8 deletions(-) hooks/post-receive -- Hamlib -- Ham radio control libraries |
From: Michael B. <mdb...@us...> - 2020-07-17 11:28:36
|
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 7b3527187c7c195b37c9c9b991559f5a2663e7dc (commit) from ec24abb6c624bc4560452cc282de35b6310b455c (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 7b3527187c7c195b37c9c9b991559f5a2663e7dc Author: Michael Black W9MDB <mdb...@ya...> Date: Fri Jul 17 06:28:13 2020 -0500 Really fix ft1000mp.c get_rit diff --git a/rigs/yaesu/ft1000mp.c b/rigs/yaesu/ft1000mp.c index ae830a93..d5d34479 100644 --- a/rigs/yaesu/ft1000mp.c +++ b/rigs/yaesu/ft1000mp.c @@ -1232,7 +1232,8 @@ int ft1000mp_get_rit(RIG *rig, vfo_t vfo, shortfreq_t *rit) } /* big endian integer, kinda */ - f = ((p[0] && 0x7f) << 8) + p[1]; + f = ((p[0] & 0x7f) << 8) + p[1]; + if (p[0] & 0x80) { f *= -1; ----------------------------------------------------------------------- Summary of changes: rigs/yaesu/ft1000mp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) hooks/post-receive -- Hamlib -- Ham radio control libraries |
From: Michael B. <mdb...@us...> - 2020-07-16 20:39:03
|
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 ec24abb6c624bc4560452cc282de35b6310b455c (commit) from ba72dc74b283248dfd3933f84e82a63255d4513f (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 ec24abb6c624bc4560452cc282de35b6310b455c Author: Michael Black W9MDB <mdb...@ya...> Date: Thu Jul 16 15:38:44 2020 -0500 Some more STABLE rigs diff --git a/rigs/yaesu/ft1000d.c b/rigs/yaesu/ft1000d.c index 4621c0c1..6f94be35 100644 --- a/rigs/yaesu/ft1000d.c +++ b/rigs/yaesu/ft1000d.c @@ -160,7 +160,7 @@ const struct rig_caps ft1000d_caps = .mfg_name = "Yaesu", .version = "20200323.0", .copyright = "LGPL", - .status = RIG_STATUS_BETA, + .status = RIG_STATUS_STABLE, .rig_type = RIG_TYPE_TRANSCEIVER, .ptt_type = RIG_PTT_RIG, .dcd_type = RIG_DCD_NONE, diff --git a/rigs/yaesu/ft5000.c b/rigs/yaesu/ft5000.c index afc6b38a..8c9dc135 100644 --- a/rigs/yaesu/ft5000.c +++ b/rigs/yaesu/ft5000.c @@ -53,7 +53,7 @@ const struct rig_caps ftdx5000_caps = .mfg_name = "Yaesu", .version = NEWCAT_VER ".0", .copyright = "LGPL", - .status = RIG_STATUS_ALPHA, + .status = RIG_STATUS_STABLE, .rig_type = RIG_TYPE_TRANSCEIVER, .ptt_type = RIG_PTT_RIG, .dcd_type = RIG_DCD_NONE, ----------------------------------------------------------------------- Summary of changes: rigs/yaesu/ft1000d.c | 2 +- rigs/yaesu/ft5000.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) hooks/post-receive -- Hamlib -- Ham radio control libraries |
From: Michael B. <mdb...@us...> - 2020-07-16 16:06:56
|
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 ba72dc74b283248dfd3933f84e82a63255d4513f (commit) via 416380ecc7d712e9841209ca2b883dc5bbfdaf9f (commit) via a3428370f8c90897ada3723d1ee01f86a8097a5c (commit) via 514cebafd52b0db61b050b3ee46901334f53dbd1 (commit) via 51cf5d7bebc2013b79ad904296cf507aac1497c0 (commit) from 7fe4a91ac06afa4003b3f103d01c00f85bc6f787 (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 ba72dc74b283248dfd3933f84e82a63255d4513f Author: Michael Black W9MDB <mdb...@ya...> Date: Thu Jul 16 11:06:39 2020 -0500 Upgrade some rigs to STABLE diff --git a/rigs/icom/ic703.c b/rigs/icom/ic703.c index 0f368a20..d47f90e9 100644 --- a/rigs/icom/ic703.c +++ b/rigs/icom/ic703.c @@ -91,7 +91,7 @@ const struct rig_caps ic703_caps = .mfg_name = "Icom", .version = BACKEND_VER ".0", .copyright = "LGPL", - .status = RIG_STATUS_BETA, + .status = RIG_STATUS_STABLE, .rig_type = RIG_TYPE_MOBILE, .ptt_type = RIG_PTT_NONE, .dcd_type = RIG_DCD_RIG, diff --git a/rigs/icom/ic706.c b/rigs/icom/ic706.c index 8591161e..07701ae0 100644 --- a/rigs/icom/ic706.c +++ b/rigs/icom/ic706.c @@ -155,7 +155,7 @@ const struct rig_caps ic706_caps = .mfg_name = "Icom", .version = BACKEND_VER ".0", .copyright = "LGPL", - .status = RIG_STATUS_UNTESTED, + .status = RIG_STATUS_STABLE, .rig_type = RIG_TYPE_MOBILE, .ptt_type = RIG_PTT_NONE, .dcd_type = RIG_DCD_NONE, @@ -293,7 +293,7 @@ const struct rig_caps ic706mkii_caps = .mfg_name = "Icom", .version = BACKEND_VER ".0", .copyright = "LGPL", - .status = RIG_STATUS_UNTESTED, + .status = RIG_STATUS_STABLE, .rig_type = RIG_TYPE_MOBILE, .ptt_type = RIG_PTT_NONE, .dcd_type = RIG_DCD_NONE, diff --git a/rigs/icom/ic756.c b/rigs/icom/ic756.c index d887bbb9..0fba1e50 100644 --- a/rigs/icom/ic756.c +++ b/rigs/icom/ic756.c @@ -149,7 +149,7 @@ const struct rig_caps ic756_caps = .mfg_name = "Icom", .version = BACKEND_VER ".0", .copyright = "LGPL", - .status = RIG_STATUS_ALPHA, + .status = RIG_STATUS_STABLE, .rig_type = RIG_TYPE_TRANSCEIVER, .ptt_type = RIG_PTT_NONE, .dcd_type = RIG_DCD_RIG, @@ -307,7 +307,7 @@ const struct rig_caps ic756pro_caps = .mfg_name = "Icom", .version = BACKEND_VER ".0", .copyright = "LGPL", - .status = RIG_STATUS_UNTESTED, + .status = RIG_STATUS_STABLE, .rig_type = RIG_TYPE_TRANSCEIVER, .ptt_type = RIG_PTT_RIG, .dcd_type = RIG_DCD_RIG, @@ -541,7 +541,7 @@ const struct rig_caps ic756pro2_caps = .mfg_name = "Icom", .version = BACKEND_VER ".0", .copyright = "LGPL", - .status = RIG_STATUS_ALPHA, + .status = RIG_STATUS_STABLE, .rig_type = RIG_TYPE_TRANSCEIVER, .ptt_type = RIG_PTT_RIG, .dcd_type = RIG_DCD_RIG, @@ -960,7 +960,7 @@ const struct rig_caps ic756pro3_caps = .mfg_name = "Icom", .version = BACKEND_VER ".0", .copyright = "LGPL", - .status = RIG_STATUS_BETA, + .status = RIG_STATUS_STABLE, .rig_type = RIG_TYPE_TRANSCEIVER, .ptt_type = RIG_PTT_RIG, .dcd_type = RIG_DCD_RIG, diff --git a/rigs/icom/ic7600.c b/rigs/icom/ic7600.c index 97cc99b2..f39e3e26 100644 --- a/rigs/icom/ic7600.c +++ b/rigs/icom/ic7600.c @@ -168,7 +168,7 @@ const struct rig_caps ic7600_caps = .mfg_name = "Icom", .version = BACKEND_VER ".0", .copyright = "LGPL", - .status = RIG_STATUS_BETA, + .status = RIG_STATUS_STABLE, .rig_type = RIG_TYPE_TRANSCEIVER, .ptt_type = RIG_PTT_RIG, .dcd_type = RIG_DCD_RIG, diff --git a/rigs/icom/icom.c b/rigs/icom/icom.c index 5c42dfbc..5e8af135 100644 --- a/rigs/icom/icom.c +++ b/rigs/icom/icom.c @@ -1344,6 +1344,7 @@ static int icom_set_it_new(RIG *rig, vfo_t vfo, shortfreq_t ts, int set_xit) return retval; } +#if 0 // why is this here? We have another function to turn it on/off if (ts == 0) // Turn off both RIT/XIT { if (rig->caps->has_get_func & RIG_FUNC_XIT) @@ -1369,6 +1370,7 @@ static int icom_set_it_new(RIG *rig, vfo_t vfo, shortfreq_t ts, int set_xit) retval = icom_set_func(rig, vfo, set_xit ? RIG_FUNC_XIT : RIG_FUNC_RIT, 1); } +#endif return retval; } diff --git a/rigs/icom/icom.h b/rigs/icom/icom.h index 506c8d6f..5efb6283 100644 --- a/rigs/icom/icom.h +++ b/rigs/icom/icom.h @@ -31,7 +31,7 @@ #include <sys/time.h> #endif -#define BACKEND_VER "20200614" +#define BACKEND_VER "20200715" /* * defines used by comp_cal_str in rig.c diff --git a/rigs/kenwood/flex6xxx.c b/rigs/kenwood/flex6xxx.c index 7966add2..c77e16fa 100644 --- a/rigs/kenwood/flex6xxx.c +++ b/rigs/kenwood/flex6xxx.c @@ -382,7 +382,7 @@ const struct rig_caps f6k_caps = .mfg_name = "FlexRadio", .version = "20130717.0", .copyright = "LGPL", - .status = RIG_STATUS_BETA, + .status = RIG_STATUS_STABLE, .rig_type = RIG_TYPE_TRANSCEIVER, .ptt_type = RIG_PTT_RIG, .dcd_type = RIG_DCD_NONE, diff --git a/rigs/kenwood/k3.c b/rigs/kenwood/k3.c index cdaafea0..08e2a873 100644 --- a/rigs/kenwood/k3.c +++ b/rigs/kenwood/k3.c @@ -331,7 +331,7 @@ const struct rig_caps k3s_caps = .mfg_name = "Elecraft", .version = BACKEND_VER ".0", .copyright = "LGPL", - .status = RIG_STATUS_BETA, + .status = RIG_STATUS_STABLE, .rig_type = RIG_TYPE_TRANSCEIVER, .ptt_type = RIG_PTT_RIG, .dcd_type = RIG_DCD_RIG, diff --git a/rigs/kenwood/ts940.c b/rigs/kenwood/ts940.c index 584ea44b..4231da09 100644 --- a/rigs/kenwood/ts940.c +++ b/rigs/kenwood/ts940.c @@ -86,7 +86,7 @@ const struct rig_caps ts940_caps = .mfg_name = "Kenwood", .version = BACKEND_VER ".0", .copyright = "LGPL", - .status = RIG_STATUS_ALPHA, + .status = RIG_STATUS_STABLE, .rig_type = RIG_TYPE_TRANSCEIVER, .ptt_type = RIG_PTT_RIG, .dcd_type = RIG_DCD_NONE, diff --git a/rigs/yaesu/ft100.c b/rigs/yaesu/ft100.c index 8083c363..ea9ffd36 100644 --- a/rigs/yaesu/ft100.c +++ b/rigs/yaesu/ft100.c @@ -177,7 +177,7 @@ const struct rig_caps ft100_caps = .mfg_name = "Yaesu", .version = "20200323.0", .copyright = "LGPL", - .status = RIG_STATUS_BETA, + .status = RIG_STATUS_STABLE, .rig_type = RIG_TYPE_TRANSCEIVER, .ptt_type = RIG_PTT_RIG, .dcd_type = RIG_DCD_NONE, diff --git a/rigs/yaesu/ft450.c b/rigs/yaesu/ft450.c index e246724a..b0c71148 100644 --- a/rigs/yaesu/ft450.c +++ b/rigs/yaesu/ft450.c @@ -52,7 +52,7 @@ const struct rig_caps ft450_caps = .mfg_name = "Yaesu", .version = NEWCAT_VER ".0", .copyright = "LGPL", - .status = RIG_STATUS_BETA, + .status = RIG_STATUS_STABLE, .rig_type = RIG_TYPE_TRANSCEIVER, .ptt_type = RIG_PTT_RIG, .dcd_type = RIG_DCD_NONE, commit 416380ecc7d712e9841209ca2b883dc5bbfdaf9f Author: Michael Black W9MDB <mdb...@ya...> Date: Thu Jul 16 07:40:18 2020 -0500 Promote ic718 and ic7610 to STABLE diff --git a/rigs/icom/ic718.c b/rigs/icom/ic718.c index 630ca327..620daa4a 100644 --- a/rigs/icom/ic718.c +++ b/rigs/icom/ic718.c @@ -83,7 +83,7 @@ const struct rig_caps ic718_caps = .mfg_name = "Icom", .version = BACKEND_VER ".0", .copyright = "LGPL", - .status = RIG_STATUS_BETA, + .status = RIG_STATUS_STABLE, .rig_type = RIG_TYPE_TRANSCEIVER, .ptt_type = RIG_PTT_NONE, .dcd_type = RIG_DCD_RIG, diff --git a/rigs/icom/ic7610.c b/rigs/icom/ic7610.c index c2248578..013cc935 100644 --- a/rigs/icom/ic7610.c +++ b/rigs/icom/ic7610.c @@ -170,7 +170,7 @@ const struct rig_caps ic7610_caps = .mfg_name = "Icom", .version = BACKEND_VER ".0", .copyright = "LGPL", - .status = RIG_STATUS_BETA, + .status = RIG_STATUS_STABLE, .rig_type = RIG_TYPE_TRANSCEIVER, .ptt_type = RIG_PTT_RIG, .dcd_type = RIG_DCD_RIG, commit a3428370f8c90897ada3723d1ee01f86a8097a5c Author: Michael Black W9MDB <mdb...@ya...> Date: Thu Jul 16 07:39:50 2020 -0500 Promote K3 to STABLE diff --git a/rigs/kenwood/k3.c b/rigs/kenwood/k3.c index 1759688c..cdaafea0 100644 --- a/rigs/kenwood/k3.c +++ b/rigs/kenwood/k3.c @@ -182,7 +182,7 @@ const struct rig_caps k3_caps = .mfg_name = "Elecraft", .version = BACKEND_VER ".0", .copyright = "LGPL", - .status = RIG_STATUS_BETA, + .status = RIG_STATUS_STABLE, .rig_type = RIG_TYPE_TRANSCEIVER, .ptt_type = RIG_PTT_RIG, .dcd_type = RIG_DCD_RIG, commit 514cebafd52b0db61b050b3ee46901334f53dbd1 Author: Michael Black W9MDB <mdb...@ya...> Date: Thu Jul 16 07:38:36 2020 -0500 Try again to fix ft1000mp get_rit for negative values diff --git a/rigs/yaesu/ft1000mp.c b/rigs/yaesu/ft1000mp.c index 66957fc9..ae830a93 100644 --- a/rigs/yaesu/ft1000mp.c +++ b/rigs/yaesu/ft1000mp.c @@ -216,7 +216,7 @@ const struct rig_caps ft1000mp_caps = RIG_MODEL(RIG_MODEL_FT1000MP), .model_name = "FT-1000MP", .mfg_name = "Yaesu", - .version = "20200715.0", + .version = "20200716.0", .copyright = "LGPL", .status = RIG_STATUS_STABLE, .rig_type = RIG_TYPE_TRANSCEIVER, @@ -347,7 +347,7 @@ const struct rig_caps ft1000mpmkv_caps = RIG_MODEL(RIG_MODEL_FT1000MPMKV), .model_name = "MARK-V FT-1000MP", .mfg_name = "Yaesu", - .version = "20200715.0", + .version = "20200716.0", .copyright = "LGPL", .status = RIG_STATUS_STABLE, .rig_type = RIG_TYPE_TRANSCEIVER, @@ -478,7 +478,7 @@ const struct rig_caps ft1000mpmkvfld_caps = RIG_MODEL(RIG_MODEL_FT1000MPMKVFLD), .model_name = "MARK-V Field FT-1000MP", .mfg_name = "Yaesu", - .version = "20200715.0", + .version = "20200716.0", .copyright = "LGPL", .status = RIG_STATUS_STABLE, .rig_type = RIG_TYPE_TRANSCEIVER, @@ -1232,13 +1232,10 @@ int ft1000mp_get_rit(RIG *rig, vfo_t vfo, shortfreq_t *rit) } /* big endian integer, kinda */ + f = ((p[0] && 0x7f) << 8) + p[1]; if (p[0] & 0x80) { - f = (p[0] << 8) + p[1] * -1; - } - else - { - f = (p[0] << 8) + p[1]; + f *= -1; } f = f * 10 / 16; commit 51cf5d7bebc2013b79ad904296cf507aac1497c0 Author: Michael Black W9MDB <mdb...@ya...> Date: Thu Jul 16 07:16:21 2020 -0500 Promote ts870s and ts690 to STABLE diff --git a/rigs/kenwood/ts690.c b/rigs/kenwood/ts690.c index f92e14b8..b464bed4 100644 --- a/rigs/kenwood/ts690.c +++ b/rigs/kenwood/ts690.c @@ -79,7 +79,7 @@ const struct rig_caps ts690s_caps = .mfg_name = "Kenwood", .version = BACKEND_VER ".0", .copyright = "LGPL", - .status = RIG_STATUS_BETA, + .status = RIG_STATUS_STABLE, .rig_type = RIG_TYPE_TRANSCEIVER, .ptt_type = RIG_PTT_RIG, .dcd_type = RIG_DCD_RIG, diff --git a/rigs/kenwood/ts870s.c b/rigs/kenwood/ts870s.c index adc313fb..d14a3e11 100644 --- a/rigs/kenwood/ts870s.c +++ b/rigs/kenwood/ts870s.c @@ -543,7 +543,7 @@ const struct rig_caps ts870s_caps = .mfg_name = "Kenwood", .version = BACKEND_VER ".0", .copyright = "LGPL", - .status = RIG_STATUS_BETA, + .status = RIG_STATUS_STABLE, .rig_type = RIG_TYPE_TRANSCEIVER, .ptt_type = RIG_PTT_RIG, .dcd_type = RIG_DCD_RIG, ----------------------------------------------------------------------- Summary of changes: rigs/icom/ic703.c | 2 +- rigs/icom/ic706.c | 4 ++-- rigs/icom/ic718.c | 2 +- rigs/icom/ic756.c | 8 ++++---- rigs/icom/ic7600.c | 2 +- rigs/icom/ic7610.c | 2 +- rigs/icom/icom.c | 2 ++ rigs/icom/icom.h | 2 +- rigs/kenwood/flex6xxx.c | 2 +- rigs/kenwood/k3.c | 4 ++-- rigs/kenwood/ts690.c | 2 +- rigs/kenwood/ts870s.c | 2 +- rigs/kenwood/ts940.c | 2 +- rigs/yaesu/ft100.c | 2 +- rigs/yaesu/ft1000mp.c | 13 +++++-------- rigs/yaesu/ft450.c | 2 +- 16 files changed, 26 insertions(+), 27 deletions(-) hooks/post-receive -- Hamlib -- Ham radio control libraries |
From: Michael B. <mdb...@us...> - 2020-07-15 17:17:36
|
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 7fe4a91ac06afa4003b3f103d01c00f85bc6f787 (commit) from 65d8ac8d95f92c2d6099c3f4f047bc400fddfaf7 (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 7fe4a91ac06afa4003b3f103d01c00f85bc6f787 Author: Michael Black W9MDB <mdb...@ya...> Date: Wed Jul 15 12:16:40 2020 -0500 Fix get_rit of negative RIT for ft1000mp.c https://github.com/Hamlib/Hamlib/issues/343 diff --git a/rigs/yaesu/ft1000mp.c b/rigs/yaesu/ft1000mp.c index 7e7e66a9..66957fc9 100644 --- a/rigs/yaesu/ft1000mp.c +++ b/rigs/yaesu/ft1000mp.c @@ -216,7 +216,7 @@ const struct rig_caps ft1000mp_caps = RIG_MODEL(RIG_MODEL_FT1000MP), .model_name = "FT-1000MP", .mfg_name = "Yaesu", - .version = "20200623.0", + .version = "20200715.0", .copyright = "LGPL", .status = RIG_STATUS_STABLE, .rig_type = RIG_TYPE_TRANSCEIVER, @@ -347,7 +347,7 @@ const struct rig_caps ft1000mpmkv_caps = RIG_MODEL(RIG_MODEL_FT1000MPMKV), .model_name = "MARK-V FT-1000MP", .mfg_name = "Yaesu", - .version = "20200623.0", + .version = "20200715.0", .copyright = "LGPL", .status = RIG_STATUS_STABLE, .rig_type = RIG_TYPE_TRANSCEIVER, @@ -478,7 +478,7 @@ const struct rig_caps ft1000mpmkvfld_caps = RIG_MODEL(RIG_MODEL_FT1000MPMKVFLD), .model_name = "MARK-V Field FT-1000MP", .mfg_name = "Yaesu", - .version = "20200623.0", + .version = "20200715.0", .copyright = "LGPL", .status = RIG_STATUS_STABLE, .rig_type = RIG_TYPE_TRANSCEIVER, @@ -1234,7 +1234,7 @@ int ft1000mp_get_rit(RIG *rig, vfo_t vfo, shortfreq_t *rit) /* big endian integer, kinda */ if (p[0] & 0x80) { - f = (p[0] << 8) + p[1] - 65536; + f = (p[0] << 8) + p[1] * -1; } else { ----------------------------------------------------------------------- Summary of changes: rigs/yaesu/ft1000mp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) hooks/post-receive -- Hamlib -- Ham radio control libraries |
From: Michael B. <mdb...@us...> - 2020-07-14 17:56:26
|
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 65d8ac8d95f92c2d6099c3f4f047bc400fddfaf7 (commit) from 17112c308e91169363e1698d6f267ed7b4245d28 (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 65d8ac8d95f92c2d6099c3f4f047bc400fddfaf7 Author: Michael Black W9MDB <mdb...@ya...> Date: Tue Jul 14 12:56:09 2020 -0500 Fix spelling error in rigctl.1 diff --git a/doc/man1/rigctl.1 b/doc/man1/rigctl.1 index 9a3cd679..c57eaf44 100644 --- a/doc/man1/rigctl.1 +++ b/doc/man1/rigctl.1 @@ -1099,7 +1099,7 @@ character should not be a part of the input string. Send a raw command string to the radio and expect a number of bytes returned. .IP This is useful for testing and troubleshooting radio commands and responses when -developing a backend. If the # of bytes requested is <= the number actually returnead no timeout will occur. +developing a backend. If the # of bytes requested is <= the number actually returned no timeout will occur. .IP The command argument can have no spaces in it. For binary protocols enter values as \\0xAA\\0xBB. Expect a ----------------------------------------------------------------------- Summary of changes: doc/man1/rigctl.1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) hooks/post-receive -- Hamlib -- Ham radio control libraries |