Wykres commitów

799 Commity (a3428370f8c90897ada3723d1ee01f86a8097a5c)

Autor SHA1 Wiadomość Data
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
mdblack98 54fd75ffe8 Reduce verbosity on rig_strvfo 2020-05-02 07:57:16 -05:00
mdblack98 4dd1b03d56 Add some debug to rig.c 2020-05-02 07:25:17 -05:00
mdblack98 c4430b7cb9 Fix split caching 2020-05-01 16:58:22 -05:00
mdblack98 d5d6c55439 Fix JTDSK compilation warnings
https://github.com/Hamlib/Hamlib/issues/233
2020-05-01 14:33:35 -05:00
mdblack98 9e710156e3 Add ability for rigctld client to turn vfo mode on/off with (,)
https://github.com/Hamlib/Hamlib/issues/232
Add caching of some limited rig information
Can be adjusted or turned off with rig_cache_set_timeout_ms or in rigctl with \set_cache_timeout
https://github.com/Hamlib/Hamlib/issues/228
2020-05-01 12:03:54 -05:00
mdblack98 20cc059600 Merge branch 'master' of https://github.com/Hamlib/Hamlib 2020-04-26 16:51:34 -05:00
mdblack98 eb7829bd06 Add caching for the Yaesu IF command
It should speed up the WSJT-X/JTDX sequence of v,f,m,t by a fair bit removing two unnecessary IF commands that should get cached
2020-04-26 15:44:38 -05:00
Michael Black ce882b9be7 merge udpate 2020-04-26 14:58:30 -05:00
mdblack98 5eb5b6f3d8 https://github.com/Hamlib/Hamlib/issues/227
Added read_only flag everywhere
2020-04-26 14:37:03 -05:00
Michael Black 2d0c157b09 Improve logic slightly in rig.c 2020-04-25 11:18:45 -05:00
c vw f6e3570e37 Allow device addresses of the form ":19000" to switch from serial to TCP
(not only aaa.bbb.ccc.ddd.port)
2020-04-25 17:44:07 +02:00
mdblack98 75d9beaac2 Increase NET_BUFFER_SIZE for network.c 2020-04-22 12:26:08 -05:00
mdblack98 d8fc515460 astyle iofunc. 2020-04-22 09:54:18 -05:00
mdblack98 ded8b6873d Add debug to read_string 2020-04-22 09:53:37 -05:00
Michael Black 0267c1b7c9 astyle all files 2020-04-10 09:13:35 -05:00
Michael Black 106a68bbc9 Documentation updates 2020-04-09 23:35:22 -05:00
Michael Black f1f0d7f129 Fix some of the documentation 2020-04-09 17:56:19 -05:00
Michael Black 46cb356f11 Fix numerous gcc v10 warnings 2020-04-04 22:49:27 -05:00
Michael Black b04d49eca5 reduce some debub verbosity 2020-04-03 15:22:07 -05:00
Michael Black 1998c6302e Fix idx_builtin macros to cover 63 levels 2020-04-03 09:36:59 -05:00
Michael Black 4f3ff0fc08 Fix compile error on last patch 2020-04-03 08:27:52 -05:00
Michael Black 67d09427d3 Add experimental network serial mode for network-based serial interfaces 2020-04-03 08:02:31 -05:00
Michael Black 9ad4f2638a Remove some verbosity from rig_strscan 2020-03-31 16:10:43 -05:00
Michael Black b83ecd9a5c Reduce verbosity for rig_strvfop 2020-03-31 15:40:54 -05:00
Michael Black 8fd5e16363 astyle files 2020-03-26 11:11:46 -05:00
Michael Black 9e89c4455a Add VFO & ANT definitions to rigs that were missing them 2020-03-25 23:07:42 -05:00
Michael Black 48a584cca4 Fix vfo_str[] to terminate correctly 2020-03-25 16:33:33 -05:00
Michael Black 1025af9590 Change LVL_VOX to LVL_VOXDELAY in idx_builtin.h 2020-03-24 12:33:04 -05:00
Michael Black 86159408a4 Add CtrlHandler to neverused.c 2020-03-24 10:01:47 -05:00
Michael Black ab77eea8b6 Fix cppcheck warnings in misc.c 2020-03-24 09:59:18 -05:00
Michael Black 872d9b1f68 Add range_list2 to rig.c for setting available VFOs and modes 2020-03-23 16:22:54 -05:00
Michael Black bda5feb1bd More cppcheck changes 2020-03-23 10:13:02 -05:00
Michael Black 8eb09c2a38 More cppcheck fixes 2020-03-23 07:52:01 -05:00
Michael Black 43d16846ea Update idx_builtin to 64-bit indexes and fix cppcheck warning 2020-03-23 07:51:43 -05:00
Michael Black c489f97624 More cppcheck changes 2020-03-20 07:51:32 -05:00
Michael Black 6d9c81cf6a A couple minor edit changes 2020-03-17 22:54:29 -05:00
Michael Black b54d6a6205 Add a couple functions to neverused 2020-03-16 11:32:16 -05:00
Michael Black 7fb932b894 Remove debug from serial.c 2020-03-15 22:40:40 -05:00
Michael Black 35fffc4f38 astyle files 2020-03-15 15:32:46 -05:00
Michael Black ed4b77726a Add VFO None for available VFOS 2020-03-15 09:52:47 -05:00
Michael Black 4e606a054f Add some debug for timing in serial.c 2020-03-15 09:52:05 -05:00
Michael Black c3120638f6 Increase RIGLSTHASHSZ to 2X maximum rig# 2020-03-12 16:39:52 -05:00
Michael Black 30e4f472f5 Fix HASHSZ in register.c and make a hash collision fatal 2020-03-12 09:07:48 -05:00
Michael Black 98e1316f11 Fix -L printout for rotctl south_zero 2020-03-10 17:00:44 -05:00
Michael Black f46067977a Fix rotctl set_conf 2020-03-10 08:43:42 -05:00
Michael Black 82f47afed0 clean up compiler warning 2020-03-08 08:42:11 -05:00
Michael Black 8ef027c676 Fixes the default initialization of ranges by defaulting to range_list1.
Another step in migration of rigs to separate model numbers for variations in models
We default to using range_list1 now and eventually there will only be 1 range_list per model
We have enough room in the model numbers now to expand...so for example we will have
5 models for the IC-9700
IC-9700 USA
IC-9700 EUR
IC-9700 ITR
IC-9700 TPE
IC-9700 KOR
2020-03-06 08:49:21 -06:00
Michael Black c5b4a18cf5 Merge branch 'master' of https://github.com/mdblack98/Hamlib 2020-03-05 08:44:38 -06:00
Michael Black d856248178 Add RIG_MODEL macro and change all rigs to support it 2020-03-05 08:44:18 -06:00
Michael Black W9MDB 4b4eeae35c Fix clang warning on unitialized var in mem.c 2020-03-03 22:15:12 -06:00
Michael Black 8b462a0242 Add set_twiddle and get_twiddle functions
Add -W switch to rigctld to set twiddle timeout..don't need switch for rigctl since it can set from there with \set_twiddle
2020-02-24 09:34:02 -06:00
Michael Black bceba85205 Temporarily disable twiddling detection in order to debug other stuff
Need to make this a switch
2020-02-24 00:03:42 -06:00
Michael Black 74b7900a52 Add get_freq to get_vfo to track freq for internal use
Move twiddling detection before set_vfo in set_freq
2020-02-23 23:20:33 -06:00
Michael Black ff8ddf018c astyle all C files 2020-02-23 11:26:09 -06:00
Michael Black 414b557b71 Add SCREENSAVER off to rig_open 2020-02-23 10:50:26 -06:00
Michael Black f4c1143959 Add SCREENSAVER parm...implemented for 9700 for now 2020-02-23 09:48:21 -06:00
Michael Black 81ea1efba2 Need to update rig->state.current_freq when twiddling 2020-02-23 08:45:25 -06:00
Michael Black 95986b9685 Add detection of VFO twiddling
In the case of gpredict there are times when one has to adjust the
VFO to dial in a frequency while gpredict is tracking.
We now detect this situation and have a 3-second delay every time
VFO twiddling is detected.  set_freq and set_vfo calls will be
ignored during this delay.
May make this a settable value if needed.
2020-02-23 08:28:19 -06:00
Michael Black e315f5e3ac Added skeleton for new get_ant function that will return ant_tx and ant_rx if known
Every rig will need to be reviewed to fill these in as appropriate
2020-02-18 23:10:14 -06:00
Michael Black c40ff7fce6 Re-enable -u modes and vfo lists using *_range_list1 entries for the moment
This logic needs to be overhauled as Icom (and probably others) are putting out
rigs with no way to tell what model you have from CAT control.
So we may end up having to explicitly list all rig models which is more user friendly anyways
and will work with WSJT-X and other user-space programs.
So, e.g., IC-9700 would be listed as 5 models: IC-9700-USA, IC_9700-EUR, IC_9700-ITR, IC-9700-TPE, IC-9700-KOR
2020-02-17 08:46:01 -06:00
Michael Black d634f84ed0 Remove verbose debug 2020-02-17 08:44:50 -06:00
Michael Black 01f83804d0 Add new 5-range frequency logic 2020-02-17 06:46:03 -06:00
Michael Black 8089e2c9d2 Remove region logic from rig.c 2020-02-17 06:43:41 -06:00
Malcolm Herring e3cef196f7 add g/set_ext_func to API 2020-02-11 09:48:13 +00:00
Michael Black fdef21f068
Merge pull request #193 from mdblack98/master
2020-02-05 Patches
2020-02-05 23:24:48 -06:00
Dawid Szymanski c6e06bfb01 ICOM Voice Keyer implemented. 2020-02-06 01:00:34 +01:00
Michael Black 7e8938ae65 Changed y command to now use mandatory antenna argument
Put a looplimit on icom_get_ant_count trying to get autodetect to work
Changes to icom_get_ant_count to try and get this working
Added dummy antenna # args to rigs that don't care i.e. only have 1 antenna
2020-02-02 08:38:10 -06:00
Michael Black 6edc9e003b
Change port for ampctl to 4531 to match other code 2020-01-27 22:57:40 -06:00
Michael Black 87ff07d625
Merge branch 'master' of https://github.com/Hamlib/Hamlib 2020-01-27 17:12:03 -06:00
Bill Somerville e1e6969e9e
Simplify closing of device files
By treating PTT/DCD devices differently from rig control devices.
2020-01-26 19:06:27 +00:00
Bill Somerville be0f371bde
Remove duplication across GPIO and GPION handling of PTT and DCD 2020-01-26 14:46:21 +00:00
Bill Somerville 6573a283a8
Fixed erroneous messages in rig_close with GPIO(N) PTT or DCD types 2020-01-26 12:50:07 +00:00
Bill Somerville 5edceddcea
Update i/o functions to support GPIO(N) port closure 2020-01-26 12:33:05 +00:00
Michael Black bece609aca
Remove noisy debug from misc.c -- showed up rigctld -l for some odd reason 2020-01-24 12:17:16 -06:00
Michael Black 3ea6aceb2e
Fix rig dependency in src/Makefile.am 2020-01-23 22:47:13 -06:00
Michael Black f143d8abd9
Fix cppcheck warnings 2020-01-23 17:20:41 -06:00
Michael Black 5903cda8c6
Fix DLL warning on debug.c 2020-01-22 17:04:25 -06:00
Michael Black d853c36fb3
Change get_ant to add another option for icom rigs (and others if needed) 2020-01-21 17:53:12 -06:00
Michael Black 3631bb2bc8
export dump_hex for DLL linkage 2020-01-20 16:59:40 -06:00
Michael Black fcbb386fcd
Update comment on rig_mem_count 2020-01-19 11:14:51 -06:00
Michael Black 702535c218
Restore rig_mem_count used by rig.swg 2020-01-18 14:05:28 -06:00
Michael Black 8d6e2fc781
Directory migration to new layout 2020-01-17 09:22:44 -06:00
Michael Black 7c7ecef678
cppcheck v1.9 clean bill of health now
cppcheck.sh script added with some exceptions for some code notices
neverused.c added to resolve "never used" messages
2020-01-15 23:03:12 -06:00
Michael Black 9de3984af9
Fix cppcheck warning in parallel.c 2020-01-15 22:40:23 -06:00
Michael Black 07b7f31a52
Remove commenct in microham.c 2020-01-15 22:20:22 -06:00
Michael Black e50f552e0f Fix mingw32 build 2020-01-15 15:57:01 -06:00
Michael Black a1ec13fc14
Add C4FM mode for Yaesu FT-991 2020-01-15 08:15:29 -06:00
Michael Black 297bf9aa6b
Fix cppcheck warnings 2020-01-14 23:36:01 -06:00
Michael Black 360e3061d9
Fix up some cppcheck warnings in microham.c 2020-01-14 14:20:31 -06:00
Michael Black dc92ae7843
Fix cppcheck warnings 2020-01-13 15:12:56 -06:00
Michael Black 272803c64c
Add uh_wkey_close to microham.h 2020-01-13 07:27:41 -06:00
Michael Black be79b195b4
Fix cppcheck warning in parallel.c 2020-01-12 22:36:10 -06:00
Nate Bargmann 69e9469da3
Add sleep.h to src/Makefile.am 2020-01-10 20:05:22 -06:00
Michael Black b7e8f01701 Fix mingw32 DLL linkage of hl_sleep 2020-01-10 15:58:16 -06:00
Michael Black 5ae03f0eed
Possible fix for mingw Win32 dll linking of nanosleep 2020-01-08 22:50:37 -06:00
Michael Black 7ee3a702f5
Replace all usleep with hl_usleep
Several places where usleep max value could be overflowed
New hl_usleep can take values > 1000000
2020-01-07 23:18:56 -06:00
Michael Black f2f56558e7
Enclose sleep replacement in HAVE_NANOSLEEP 2020-01-07 17:33:37 -06:00
Michael Black 836e5f5c17
Move time.h include to sleep.c 2020-01-06 07:25:38 -06:00
Michael Black 70115f7efd
Replace sleep macros with hamlib custom functions 2020-01-05 15:37:33 -06:00
Michael Black d7e9bfd35c
Fix mingw warning on parallel.c 2019-12-30 22:24:19 -06:00
Michael Black 6fe29ad942
Fix cppcheck warnings in rig.c 2019-12-24 15:47:06 -06:00
Michael Black 72e934b67e Fix mingw32 compilation of usb_port.c 2019-12-24 15:35:37 -06:00
Michael Black ed339b1c2b
Add sleep and usleep macros so all sleeps use nanosleep 2019-12-22 11:17:22 -06:00
Michael Black ef5d2b7838
Fix cppcheck warnings in rig.c 2019-12-19 10:57:17 -06:00
Michael Black 1715bcf422
Fix compilation error on parallel.c 2019-12-19 09:55:57 -06:00
Michael Black eb19298003
Fix cppcheck warning in register.h 2019-12-19 09:40:14 -06:00
Michael Black 8baeb4d5cf
Fix cppcheck warnings in cm108.c 2019-12-19 08:48:02 -06:00
Michael Black c71bb35ab1
Fix cppcheck warnings in parallel.c 2019-12-19 08:47:40 -06:00
Michael Black 8ff9a682cc
Add set_powerstat to icom.c and debug msg to rig.c 2019-12-16 10:51:36 -06:00
Michael Black e91df87a8f
Fix hex_dump..was printing negative values 2019-12-12 10:14:42 -06:00
Michael Black 5e44f6637e
Fix mingw compile error on rig_strrmodes 2019-12-12 09:47:24 -06:00
Michael Black b3c6b9d707
Add rig_strrmodes function and fix flrig to print mode list correctly 2019-12-12 09:13:30 -06:00
Michael Black 011efe0452
Merge branch 'master' of https://github.com/Hamlib/Hamlib 2019-12-11 07:47:24 -06:00
Nate Bargmann f1d0340b8d
Merge branch 'ampctl_mans' 2019-12-11 07:17:44 -06:00
Nate Bargmann 2c884a970a
Change ampctld default TCP port to 4531 2019-12-11 06:28:17 -06:00
Michael Black 8f205c2237
Merge branch 'master' of https://github.com/Hamlib/Hamlib 2019-12-10 07:23:24 -06:00
Michael Black fb73e5abd7
Fix some cppcheck warnings
Fix declarations after statements
Remove some !rig checks...we either don't need them or need them everywhere with a new error code
If you pass a NULL rig you get what you deserve :-)
2019-12-09 17:12:13 -06:00
Malcolm Herring 60bf986776 Merge remote-tracking branch 'Hamlib/master' 2019-12-09 05:34:44 +00:00
Malcolm Herring 5f6e0641ad Prepare for D-STAR implementation
Add 3 new rigs: ID-31, ID-51 & ID-4100
Update other D-STAR rigs: IC-R30, IC-R8600 & IC-7100
2019-12-09 05:33:20 +00:00
Michael Black 8a3df9735e
Fix cppcheck warnings for ampctl_parse.c and redef amp_set_powerstat 2019-12-08 23:13:33 -06:00
Michael Black bc94558fe3
Fix cppcheck warnings in usb_port.c 2019-12-08 22:48:02 -06:00
Michael Black ddfa154694
Fix cppcheck warnings in rotator.c 2019-12-08 22:47:51 -06:00
Michael Black 6c0f101900
Fix cppcheck warnings in rig.c 2019-12-08 22:45:29 -06:00
Michael Black dddf63ca16
Fix cppcheck warnings in rig.c 2019-12-08 22:37:56 -06:00
Michael Black 03b39da00b
Fix cppcheck warnings in parallel.c 2019-12-08 22:35:50 -06:00
Michael Black 9aa920a873
Fix cppcheck warnings in parallel.c 2019-12-08 22:35:33 -06:00
Michael Black 8f5ac2d68c
Fix cppcheck warnings in misc.c 2019-12-08 22:29:48 -06:00
Michael Black c90b1dd7c6
Fix cppcheck warnings in microham.c 2019-12-08 22:27:44 -06:00
Michael Black 6ba8f88e2f
Fix cppcheck warnings in network.c 2019-12-08 17:09:08 -06:00
Michael Black 7020aba16d
Fix cppcheck warnings in mem.c 2019-12-08 17:04:08 -06:00
Michael Black 5be9dfe161
Fix cppcheck warnings in locator.c 2019-12-08 16:58:18 -06:00
Michael Black 1011ea16e4
Fix cppcheck warnings in iofunc.c 2019-12-08 16:56:14 -06:00
Michael Black 0ec255366f
Fix gpio file descriptor leak in gpio.c 2019-12-08 16:54:15 -06:00
Michael Black 55e36895bf
Fix cppcheck warnings in extamp.c 2019-12-08 16:36:45 -06:00
Michael Black 314fe20f39
Fix cppcheck warnings in ext.c 2019-12-08 16:35:55 -06:00
Michael Black 67c3b56ccd
Fix cppcheck warnings in event.c 2019-12-08 16:32:13 -06:00
Michael Black 531782d339
Fix cppcheck warnings in debug.c 2019-12-08 16:30:33 -06:00
Michael Black 910d799494
Fix cppcheck warnings in cm108.c 2019-12-08 16:29:39 -06:00
Michael Black 91678ef573
Fix cppcheck warnings in amplifier.c 2019-12-08 16:27:46 -06:00
Michael Black 8e5dc87ffd
Fix cppcheck warnings in amp_conf.c 2019-12-08 16:06:58 -06:00
Michael Black 09aecd5ce9
Fix uninitialize waqrning in parallel.c 2019-12-06 10:20:38 -06:00
Malcolm Herring b12a3e31b3 Fix Icom DCS SQL funnctions
Copied get/set_dcs_code functions to get/set_dcs_sql
Re-mapped all receivers DCS functiosn to sql.
2019-12-05 08:01:59 +00:00
Michael Black 12494c92d5
Add MainA, MainB, SubA, and SubB vfo choices for icom rigs with SATMODE
Clean up debug statements in icom.c
2019-12-02 07:50:05 -06:00
Michael Black dc3f33bc11
Change %z to %d with casts for portability 2019-11-30 13:05:21 -06:00
Michael Black 6bf3b00c4f
astyle all files 2019-11-30 10:19:08 -06:00
Michael Black 72087f1b10
Change all __FUNCTION__ to __func__ 2019-11-30 10:16:28 -06:00
Michael Black 2f4d62709e
Added a dummy snprintf to rig_debug to allow gcc to check format strings
This found tons of errors in rig_debug statements
So this patch cleans up all the files that were producing warnings or errors
This should fix a few segfaults when running with debug turned on
2019-11-30 10:04:31 -06:00
Michael Black 0c72d75b57
Add south_zero option to token.h 2019-11-23 23:10:21 -06:00
Michael Black fa2293be50
Add south_zero option to rotator.c 2019-11-23 23:09:59 -06:00