Commit Graph

4003 Commits

Author SHA1 Message Date
Malcolm Herring
31cc85bf57 Add IC-R30 2018-12-21 07:07:41 +00:00
Ekki Plicht (DF4OR)
4e8ba3d6f3 Patch for Icom DCS code handling
* Change magic numbers in icom_set|get_ctcss|dcs_sql|code functions to
constants defined in src/tones.h

* fix a minor bug in icom_get_dcs_code (now ignoring polarity instead of
reporting invalid DCS code when sending reverse pol. DCS code)

* introduce DCS codes to IC-R8600 rig backend

73,
Ekki, DF4OR
2018-12-19 18:09:14 -06:00
Nate Bargmann
daa52e8b10 Merge branch 'master' of https://github.com/mdblack98/Hamlib into mdblack98-master 2018-12-19 17:41:38 -06:00
Michael Black
7062b6761d Reduce debug info in flrig.c 2018-12-19 16:45:34 -05:00
Michael Black
01335a5c8e Fix FT857 to return the SMeter-based value 2018-12-19 16:40:10 -05:00
Malcolm Herring
620f756320 Complete R6 commands 2018-12-19 14:40:36 +00:00
Malcolm Herring
f1e5e5ba48 ignore build 2018-12-18 22:18:38 +00:00
Ekki Plicht (DF4OR)
82e0ee8364 New model Icom IC-R8600
So here is the first release of the new IC-R8600 rig backend.

Implemented functions so far:
set/get freq
set/get mode
functions: NB TSQL ANF NR AIP MN LOCK VSC RESUME
level: PREAMP ATT AF RF SQL NR PBT_IN PBT_OUT CWPITCH AGC RAWSTR STRENGTH
extra levels (params): ANN BACKLIGHT KEYLIGHT
Mode list: AM CW USB LSB RTTY FM WFM CWR RTTYR SAM SAL SAH

Next up:
* correct filter settings
* new digital modes
* memory store/retrieve
* correct CTCSS, DTCS handling
* correct BEEP handling (broken)

73,
Ekki, DF4OR
2018-12-17 12:37:17 -06:00
Nate Bargmann
2498ad69fe Merge branch 'master' of https://github.com/mdblack98/Hamlib into mdblack98-master 2018-12-13 16:40:39 -06:00
Robert Benedict
3724ce87ee New iOptron rotator backend
I have an potential initial release of a backend for iOptron alt-az mounts.
I have tested it and it appears to work well both from the command line and
driven by Gpredict with my iEQ45Pro. I ran the source through astyle and I
think that it's OK. Compiling and testing was done under Unbuntu 18.

   Bob KD8CGH
2018-12-13 15:23:46 -06:00
Nate Bargmann
451bbfcf1f Add empty dvi: target to quell distcheck error 2018-12-13 15:15:00 -06:00
Michael Black W9MDB
2e5113c7df Fix flrig modeMap and reduce debug levels 2018-12-10 22:41:26 -06:00
Nate Bargmann
e5fced72f4 Merge branch 'master' of https://github.com/mdblack97/Hamlib into mdblack98-master 2018-11-20 21:00:56 -06:00
Michael Black W9MDB
ecccd18c8b Add FT-DX3000 entry 2018-11-20 10:48:08 -06:00
Ervin Hegedus
354ae39adc Change variable length argument handling in affected functions 2018-11-20 10:31:52 +01:00
Michael Black
9f3579d989
Merge pull request #1 from Hamlib/master
Rebase
2018-11-15 07:46:11 -06:00
Nate Bargmann
4693febdd4 Merge branch 'master' of https://github.com/mdblack98/Hamlib into mdblack98-master 2018-11-14 19:12:45 -06:00
Michael Black W9MDB
ee6957d186 Fix ft1000d WRITE_DELAY as 175ms was unnecessary 2018-11-14 13:07:23 -06:00
Nate Bargmann
b8a241a465 Merge branch 'master' of https://github.com/mdblack98/Hamlib into mdblack98-master 2018-11-14 12:14:42 -06:00
Michael Black W9MDB
a5c49b9b44 Change P command to T command to avoid EPROM burnout 2018-11-11 07:22:15 -06:00
C-Elegans
d8f010cfa3
Add ability to have rigctld display transverter frequency
Use -C lo_freq=xxxxx to have rigctld add x to your vfo frequency
internally
2018-11-07 11:49:06 -05:00
Nate Bargmann
a915f1e69e Quell clang6 warning of format string not a literal
The warning was:

  CC       rotctl_parse.o
../../hamlib/tests/rotctl_parse.c:1012:50: warning: format string is not a string literal (potentially insecure)
      [-Wformat-security]
            snprintf(cmd_name, sizeof(cmd_name), parsed_input[0] + 1);
                                                 ^~~~~~~~~~~~~~~~~~~
../../hamlib/tests/rotctl_parse.c:1012:50: note: treat the string as an argument to avoid this
            snprintf(cmd_name, sizeof(cmd_name), parsed_input[0] + 1);
                                                 ^
                                                 "%s",
1 warning generated.
2018-11-05 20:07:34 -06:00
Nate Bargmann
3a6f3bac96 Quell clang6 warning of integer adsolute function
Thw warning was:

  CC       meade.lo
../../hamlib/meade/meade.c:226:8: warning: using integer absolute value function 'abs' when argument is of floating point type
      [-Wabsolute-value]
    if(abs(az - priv->target_az) > 5 || abs(el - priv->target_el) > 5)
       ^
../../hamlib/meade/meade.c:226:8: note: use function 'fabsf' instead
    if(abs(az - priv->target_az) > 5 || abs(el - priv->target_el) > 5)
       ^~~
       fabsf
../../hamlib/meade/meade.c:226:41: warning: using integer absolute value function 'abs' when argument is of floating point
      type [-Wabsolute-value]
    if(abs(az - priv->target_az) > 5 || abs(el - priv->target_el) > 5)
                                        ^
../../hamlib/meade/meade.c:226:41: note: use function 'fabsf' instead
    if(abs(az - priv->target_az) > 5 || abs(el - priv->target_el) > 5)
                                        ^~~
                                        fabsf
2 warnings generated.
2018-11-05 19:53:54 -06:00
Nate Bargmann
ff4f7e1235 Quell clang6 warning of absolute value function
The warning was:

  CC       optoscan.lo
../../hamlib/icom/optoscan.c:738:14: warning: absolute value function 'abs' given an argument of type 'long' but has parameter
      of type 'int' which may cause truncation of value [-Wabsolute-value]
        usec_diff = abs((state->timer_current.tv_usec) -
                    ^
../../hamlib/icom/optoscan.c:738:14: note: use function 'labs' instead
        usec_diff = abs((state->timer_current.tv_usec) -
                    ^~~
                    labs
1 warning generated.
2018-11-05 12:13:06 -06:00
Michael Black W9MDB
857f3060ee Remove TARGETABLE_MODE from ft3000 2018-11-03 16:01:05 -05:00
Nate Bargmann
982b90f754 Merge branch 'master' of https://github.com/mdblack98/Hamlib into mdblack98-master 2018-10-29 07:05:50 -05:00
Eriks Dobelis
0b71ba91a1 ft817: Moving delay value into #define section of the header 2018-10-29 08:46:42 +02:00
Michael Black W9MDB
f0bcffae36 Merge remote-tracking branch 'upstream/master' 2018-10-28 16:10:30 -05:00
Michael Black W9MDB
68fb9e3c21 Add FT-DX3000 definition and promote FT-DX5000 to Stable 2018-10-28 15:57:28 -05:00
Eriks Dobelis
1e849a6ba7 ft817: adding delay before next retry after returning from tx to rx 2018-10-28 20:50:39 +02:00
Nate Bargmann
1ecadcc594 Quell various defined but not used warnings from MinGW
Enclose various variable and function definitions in CPP macro blocks to quell
warnings when cross-compiling for Microsoft Windows using MinGW.
2018-10-27 20:49:20 -05:00
Nate Bargmann
82e31653a1 Quell gcc 8.2.0 warning of uninitialized value
On Debian Buster gcc ((Debian 8.2.0-8) 8.2.0) was throwing the following
warnings:

  CC       funcube.lo
../../hamlib/kit/funcube.c: In function ‘funcubepro_get_level’:
../../hamlib/kit/funcube.c:783:87: warning: ‘au8BufOut[3]’ may be used uninitialized in this function [-Wmaybe-uninitialized]
     __func__, au8BufOut[0] & 0xFF, au8BufOut[1] & 0xFF, au8BufOut[2] & 0xFF, au8BufOut[3] & 0xFF);
                                                                              ~~~~~~~~~^~~
../../hamlib/kit/funcube.c:783:66: warning: ‘au8BufOut[2]’ may be used uninitialized in this function [-Wmaybe-uninitialized]
     __func__, au8BufOut[0] & 0xFF, au8BufOut[1] & 0xFF, au8BufOut[2] & 0xFF, au8BufOut[3] & 0xFF);
                                                         ~~~~~~~~~^~~
../../hamlib/kit/funcube.c:783:45: warning: ‘au8BufOut[1]’ may be used uninitialized in this function [-Wmaybe-uninitialized]
     __func__, au8BufOut[0] & 0xFF, au8BufOut[1] & 0xFF, au8BufOut[2] & 0xFF, au8BufOut[3] & 0xFF);
                                    ~~~~~~~~~^~~
../../hamlib/kit/funcube.c: In function ‘funcubepro_set_level’:
../../hamlib/kit/funcube.c:730:87: warning: ‘au8BufOut[3]’ may be used uninitialized in this function [-Wmaybe-uninitialized]
     __func__, au8BufOut[0] & 0xFF, au8BufOut[1] & 0xFF, au8BufOut[2] & 0xFF, au8BufOut[3] & 0xFF);
                                                                              ~~~~~~~~~^~~
../../hamlib/kit/funcube.c:730:66: warning: ‘au8BufOut[2]’ may be used uninitialized in this function [-Wmaybe-uninitialized]
     __func__, au8BufOut[0] & 0xFF, au8BufOut[1] & 0xFF, au8BufOut[2] & 0xFF, au8BufOut[3] & 0xFF);
                                                         ~~~~~~~~~^~~

Initialize au8BufOut and au8BufIn to 0 to quell the warning.
2018-10-25 20:44:59 -05:00
Nate Bargmann
b0ebeaeda4 Quell gcc 8.2.0 defined but not used warning
On Debian Buster gcc ((Debian 8.2.0-8) 8.2.0) was throwing the following
warning:

  CC       rigctl.o
../../hamlib/tests/rigctl.c:125:18: warning: ‘have_rl’ defined but not used [-Wunused-const-variable=]
 static const int have_rl = 0;
                  ^~~~~~~

and:

  CC       rotctl.o
../../hamlib/tests/rotctl.c:113:18: warning: ‘have_rl’ defined but not used [-Wunused-const-variable=]
 static const int have_rl = 0;
                  ^~~~~~~

Turns out I didn't have the readline-dev package installed.  As the have_rl
variable is wrapped in CPP macros, it indeed is not used when readline is not
available.
2018-10-25 18:26:25 -05:00
Nate Bargmann
ac540c82cc Quell gcc 8.2.0 warning of possible truncation
On Debian Buster gcc ((Debian 8.2.0-8) 8.2.0) was throwing the following
warning:

  CC       network.lo
../../hamlib/src/network.c: In function ‘network_open’:
../../hamlib/src/network.c:245:46: warning: ‘%s’ directive output may be truncated writing up to 511 bytes into a region of size 139 [-Wformat-truncation=]
         snprintf(msg,sizeof(msg),"connect to %s failed, (trying next interface)",rp->pathname);
                                              ^~
../../hamlib/src/network.c:245:9: note: ‘snprintf’ output between 44 and 555 bytes into a destination of size 150
         snprintf(msg,sizeof(msg),"connect to %s failed, (trying next interface)",rp->pathname);
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Raising the size of the msg buffer to 1024 quelled the warning.
2018-10-25 16:58:51 -05:00
Nate Bargmann
2d7d3d21df Quell gcc 8.2.0 warning of possible truncation
On Debian Buster gcc ((Debian 8.2.0-8) 8.2.0) was throwing the following
warning:

  CC       ft991.lo
../../hamlib/yaesu/ft991.c: In function ‘ft991_set_split_mode’:
../../hamlib/yaesu/ft991.c:336:5: warning: ‘strncat’ output may be truncated copying 128 bytes from a string of length 128 [-Wstringop-truncation]
     strncat (restore_commands, priv->ret_data, NEWCAT_DATA_LEN-1);
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

At least now the warning is gone...
2018-10-25 16:41:33 -05:00
Michael Black W9MDB
a3ea2864a7 Fix icmarine duplicate read 2018-10-25 08:37:59 -05:00
Michael Black W9MDB
aadd458b99 Ensure read_string value is terminated 2018-10-25 08:37:59 -05:00
Michael Black W9MDB
a95d1f1c87 Fix multi-mode-mapping 2018-10-25 08:37:59 -05:00
Michael Black W9MDB
ad4536d022 Fix icmarine duplicate read 2018-10-07 08:11:30 -05:00
Michael Black W9MDB
d0bb4de156 Ensure read_string value is terminated 2018-10-07 07:51:13 -05:00
Michael Black W9MDB
4f828f7215 Fix multi-mode-mapping 2018-10-03 11:29:15 -05:00
phaethon
d5968a3e9a Improving reliability working with radios cloning FT817 protocol (increase timeout, double reading frequency, checking ptt status after setting it) 2018-10-01 12:23:02 -05:00
Brian G. Lucas
9dad962473 Some calls to thd72_get_menu_item where passing wrong values for range check. 2018-10-01 12:12:37 -05:00
Michael Black W9MDB
13317afb0e Update power reading values for FT900 2018-09-16 13:02:17 -05:00
Michael Black W9MDB
e1196a1f22 Update power reading values for FT900 2018-09-13 15:38:42 -05:00
phl0
b2b20af07e
Ass support for CM108AH chipsets 2018-09-08 21:57:25 +02:00
Michael Black W9MDB
44b839159b Change ft100 RTTY to PKTUSB for compatibility with WSJT-X 2018-08-29 22:42:16 -05:00
Nate Bargmann
86bcdde20b Add ELAD backend info to NEWS 2018-08-21 06:19:42 -05:00
HB9EIK
0a4c71a788 Update copyright for fdm_duo.c 2018-08-21 06:07:09 -05:00
HB9EIK
bde028485a Update build system for ELAD backend 2018-08-21 06:07:09 -05:00