Commit Graph

152 Commits

Author SHA1 Message Date
Michael Black W9MDB
35001b12c0 astyle icom.c 2020-06-21 14:47:38 -05:00
Michael Black W9MDB
362fa77cfd Move poweron set outside of check to ensure only once whether started power off or on
https://github.com/Hamlib/Hamlib/issues/297
2020-06-14 17:20:31 -05:00
Michael Black W9MDB
8fd58e211d Rigs will only power up once if needed
https://github.com/Hamlib/Hamlib/issues/297
2020-06-14 17:14:24 -05:00
Michael Black W9MDB
71b867e141 Add some debug to icom.c 2020-06-14 09:43:42 -05:00
Michael Black W9MDB
c5388b9f37 In icom.c remove priv->curr_vfo and change to rig->state.current_vfo
https://github.com/Hamlib/Hamlib/issues/299
2020-06-13 15:53:37 -05:00
Michael Black W9MDB
723f3f0773 Add some more rig cases for MainA/B and Sub A/B priv setting in icom_get_freq
Add VFO_CURR as a valid VFO
https://github.com/Hamlib/Hamlib/issues/299
2020-06-13 07:51:35 -05:00
Michael Black W9MDB
2db0da54ea Add VFO_CURR MAINA/B SUBA/B as valid vfos in icom.c 2020-06-12 17:54:41 -05:00
Michael Black W9MDB
b15c73d2d2 Fix segmentation fault/endless loop for Icom rigs 2020-06-12 16:34:48 -05:00
Michael Black W9MDB
7cdaa0efd1 Change icom.c VFO_TX VFO_RX adjustment to use vfo_fixup function
vfo_fixup should be able to handle all rigs variations
https://github.com/Hamlib/Hamlib/issues/299
2020-06-12 07:57:13 -05:00
Michael Black W9MDB
f6112a0d93 Remove block preventing IC910 from reading VFOB during split and returning VFOA 2020-06-11 22:27:38 -05:00
Michael Black W9MDB
b910fa0c58 When get_split_freq_mode is called with RIG_VFO_CURR and split is not enabled
we will assume the TX vfo is VFOB or Sub as appropriate
This hopefully makes WSJT-X happy with Icom rigs now.
https://github.com/Hamlib/Hamlib/issues/288
2020-06-11 08:15:52 -05:00
Michael Black W9MDB
9e18b234c2 Change icom_get_split_freq to reset to rx_vfo when done
Just like icom_set_split_freq
https://github.com/Hamlib/Hamlib/issues/291
2020-06-10 17:16:52 -05:00
Michael Black W9MDB
876c7bd59f Fix RIG_VFO_TX clause in icom.c 2020-06-10 08:10:35 -05:00
Michael Black W9MDB
f71c12da94 astyle files 2020-06-09 22:37:03 -05:00
Michael Black W9MDB
750857cdbc Update comment in icom.c 2020-06-09 22:28:13 -05:00
Michael Black W9MDB
ee8dde16ea When rig_set_split_freq_mode is called and RIG_VFO_CURR is requested use default tx_vfo
https://github.com/Hamlib/Hamlib/issues/288
2020-06-09 12:16:45 -05:00
Michael Black W9MDB
718fcdf0c1 icom.c put one more satmode call in a RIG_FUNC_SATMODE clause
https://github.com/Hamlib/Hamlib/issues/288
2020-06-08 23:09:21 -05:00
Michael Black W9MDB
c5732d542e Fix icom.c so most all satmode requests are restricted to rigs with RIG_FUNC_SATMODE
https://github.com/Hamlib/Hamlib/issues/288
2020-06-08 23:04:04 -05:00
Bill Somerville
cc9dfd3b0e
Fixing an operator precedence defect 2020-06-06 02:24:04 +01:00
Michael Black W9MDB
d9d1074f24 Fix IC-910 behavior with gpredict
Now allows switching between full duplex, split, and non-split mode
https://github.com/Hamlib/Hamlib/issues/237
2020-06-04 10:37:20 -05:00
Michael Black W9MDB
a8e5a66ffd Add FT_DX101D as another rig that can't get freq during PTT
https://github.com/Hamlib/Hamlib/issues/279
2020-06-03 16:58:42 -05:00
Michael Black
00031994c6 Remove block setting VFO_A -- does not work with rigs that don't have
VFO_A
https://github.com/Hamlib/Hamlib/issues/274
2020-06-01 17:38:03 -05:00
Michael Black W9MDB
5df9f81bef Fix RIG_VFO_NONE problem in icom.c
https://github.com/Hamlib/Hamlib/issues/270
2020-05-30 16:59:18 -05:00
Michael Black W9MDB
353066a232 Fix rigctl/rigctld split ops/queries
Add vfo_fixup function.  We should be able to do all vfo corrections in rig.c instead of backends.  So we're migrating that way....
https://github.com/Hamlib/Hamlib/issues/269
2020-05-30 09:34:13 -05:00
Michael Black W9MDB
677ccac4bc astyle files 2020-05-27 12:23:08 -05:00
Michael Black W9MDB
281022447c Update some more items in icom.c where appropriate 2020-05-25 09:11:32 -05:00
Michael Black W9MDB
1add89bd71 Add rules for setting VFO_RX and VFO_TX for different rig types
https://github.com/Hamlib/Hamlib/issues/261
2020-05-24 23:42:35 -05:00
Michael Black W9MDB
a77a57ff38 Disallow requesting a vfo that the rig doesn't have.
This could be changed to automatically selecting a valid VFO so
VFOA=Main or Main=VFOA for example but not sure if we want to do this.
This is already being done for the IC-9700 for example since satmode
only has Main/Sub where non-satmode has MainA/MainB/SubA/SubB
So the question is do we emulate VFOA/B and Main/Sub for all rigs?
2020-05-21 15:51:41 +02:00
Michael Black W9MDB
9c902dd03b IC-9700 in satmode requesting "S 1 Sub" will now return RIG_OK without
taking any action
Since satmode is Sub split anyways this makes sense
https://github.com/Hamlib/Hamlib/issues/254
2020-05-20 06:42:06 +02:00
Michael Black W9MDB
5a631b2f54 Fix icom detection of split mode setting vfos
https://github.com/Hamlib/Hamlib/issues/250
2020-05-18 00:39:08 +02:00
Michael Black W9MDB
2e3678d1a7 Fix main/sub frequency saved values 2020-05-17 17:27:28 -05:00
Michael Black W9MDB
ba703787d9 Merge branch 'master' of https://github.com/mdblack98/Hamlib 2020-05-16 15:22:48 -05:00
Michael Black W9MDB
1af1650716 Fix IC_9700 type rigs when client asks for Sub VFO but split or satmode
is not in use
https://github.com/Hamlib/Hamlib/issues/250
2020-05-16 21:34:26 +02:00
Michael Black W9MDB
87b25d0c43 If icom rig is asked for VFOA/B but only has Main/Sub
then we map VFOA=Main VFOB=Sub
https://github.com/Hamlib/Hamlib/issues/250
2020-05-16 08:31:34 -05:00
Michael Black W9MDB
906a369e00 Change icom behavior for IC-9700 type rig with Main/A/B && Sub A/B setup
If Sub is asked for but neither split nor satmode is on it will get changed
to VFOB instead which should avoid doing a VFO swap
https://github.com/Hamlib/Hamlib/issues/250
2020-05-16 07:55:59 -05:00
Michael Black W9MDB
156db580f8 IC-910 (and hopefully IC-9700) now working with gpredict in both simplex non-satmode and full duplex satmode
As of 20200514 switching to satmode will automically switch rig to satmode
But switching back to simple requires manually going back to split mode until gpredict provide the correct split mode request of "S 1 VFOB" or "S 1 VFOA"
https://github.com/Hamlib/Hamlib/issues/237
2020-05-14 12:15:37 -04:00
Michael Black W9MDB
9c4dfbc34c Fix IC910 satellite mode operations
https://github.com/Hamlib/Hamlib/issues/237
2020-05-14 10:21:47 -04:00
Michael Black W9MDB
ad7fe1253b Fix merge 2020-05-12 12:28:19 -05:00
Michael Black W9MDB
6a199559fa Fix merge 2020-05-12 12:22:51 -05:00
Michael Black W9MDB
fca384dcd6 Fix debug statement in icom.c 2020-05-12 12:16:12 -04:00
Michael Black W9MDB
2813f0ef63 astyle files 2020-05-11 22:39:10 -05:00
Michael Black W9MDB
74cdd96eda Fix merge of icom.c 2020-05-11 18:05:11 -05:00
Michael Black W9MDB
3b2225e489 Fix IC-910 split mode operation with gpredict
https://github.com/Hamlib/Hamlib/issues/237
2020-05-11 19:00:52 -04:00
Michael Black W9MDB
0ffddf779d Change icom.c set_freq to detect error on bad freq set and swap VFOs back and not update anything
Add some more debug
https://github.com/Hamlib/Hamlib/issues/237
2020-05-10 07:40:06 -05:00
Michael Black W9MDB
1a4e61b2dd Fix several strerror that should be rigerror 2020-05-09 11:52:27 -05:00
mdblack98
0b3605597f Fix cppcheck warning in icom.c 2020-05-05 22:20:33 -05:00
mdblack98
fa711bb550 Remove unused variable set in icom.c 2020-05-05 22:18:18 -05:00
mdblack98
a3b1b055b3 Fix cppcheck warnings 2020-05-05 11:32:09 -05:00
mdblack98
05ad81bd2c Update comment in icom.c 2020-05-05 09:50:57 -05:00
mdblack98
baa3787bc5 Add ELAPSED_INVALIDATE for caching use
Change rig_get_vfo to use ELAPSED_INVALIDATE
Change elapsed_ms code to make a little more sense
https://github.com/Hamlib/Hamlib/issues/231
2020-05-02 11:19:44 -05:00