Wykres commitów

3736 Commity (761dde7b8b4b4152e640c34d17366b6577836c6b)

Autor SHA1 Wiadomość Data
Bill Somerville 931cf15041 Add {get,set}_splitfrequency_mode for the IC-910(H) 2016-03-23 17:09:28 +00:00
Bill Somerville e593afef95 Implement rig_{set,get}_split_freq_mode() for IC-756 series.
This implementation reduces  the number of VFO excahnges or  sets to a
minimum when setting the TX VFO frequency and mode together.

This also  includes a  much smarter implementation  of the  logic used
when the  new config option 'no_xchg'  is enabled.  Now it  is able to
accurately  determine  the  original   VFO  selected  and  leaves  the
sequences with the  same VFO selected.  There is one  corner case when
both VFOs are identical (frequency, mode and width) at the start where
it has  to take a  guess as to the  selected originally VFO  (Icom CAT
protocol has no  command to elicit this information). In  that case it
guesses as the last VFO  selected using Hamlib.  Applications can gain
absolute certainty  by setting the  VFO themselves prior to  using the
rig_{set,get}_{split,}_{freq,mode,freq_mode}() function  series.  This
now gives seamless  TX VFO configuration without  any relay clattering
or TX/RX audio glitches.
2016-03-23 17:09:27 +00:00
Bill Somerville e5aa3639ed Initial implementation of rig_{set,get}_split_freq_mode() for FT-857.
This  optimized implementation  takes  advantage of  the CAT  protocol
command to set both frequency and mode  at the same time. It also only
needs to switch VFOs once either side of the command.
2016-03-23 17:09:26 +00:00
Bill Somerville 21c346453a Implement combined split VFO frequency and mode setting.
CAT protocols that don't allow  direct addressing of VFOs require that
the  "other" VFO  be queried  or set  via a  select then  get/set then
select back  to original or  swap then  get/set then swap  again. When
both frequncy and  mode need to be set the  sequences can be optimized
if a single funciton is avaiable.

This enhancement adds those single functions rig_set_split_freq_mode()
and  rig_get_split_freq_mode()  with  a default  impelementation  that
calls the individual rig_{get,set}_split_{freq,mode}() functions. Back
ends  can choose  to  implement  an optimized  version  which is  used
instead of the default if present.

Using these  functions when  an optimized implementation  is available
allows the TX VFO's frequency and mode to be set in a single operation
with  only  one   VFO  exchange  or  selection  either   side  of  the
operation.  Many CAT  protocols  are very  efficient  when getting  or
setting both  frequency and mode  and some even  combine the two  in a
single command.

The letters 'K' and 'k' are used for the rigctl short command name for
these functions.
2016-03-23 17:09:26 +00:00
Nate Bargmann 2a849904af Update README.developer for libusb-1.0 2016-03-22 21:47:27 -05:00
Nate Bargmann d8ebe0b862 Merge branch 'master' into libusb-1-0
FT-757GXII update from Torsten, DG3XT.
2016-02-24 05:53:42 -06:00
Nate Bargmann ec46fa915b Merge pull request #14 from t0r5tn3/master
fixed get_vfo for FT-757GX(II)
2016-02-24 05:48:26 -06:00
Torsten Eberhardt 4f2b090b8a fixed get_vfo for FT-757GX(II) 2016-02-24 10:20:00 +01:00
Nate Bargmann f441166d72 Merge branch 'master' into libusb-1-0 2016-02-23 18:45:55 -06:00
Nate Bargmann 49e2233f9f Apply Linux C Style to ft757gx.c 2016-02-23 18:42:29 -06:00
Michael Black 99cbb5b1ad Allow the ft757gx to work with WSJT-X.
Adds a new config param "-C fakefreq=1"

The ft757gx only has one-way comm so this simply returns the last freq
set.

WSJT-X can operate in fake it split mode with this too.

RRR
Mike W9MDB
2016-02-23 18:24:07 -06:00
Nate Bargmann 30fa612a2b Merge branch 'master' into libusb-1-0 2016-02-22 06:13:16 -06:00
Nate Bargmann 97594e1c96 Apply Linux C Style to ic910.c 2016-02-22 06:10:48 -06:00
Bill Somerville ed3c48e71e Add 23cms to IC-910(H) backend 2016-02-22 01:53:36 +00:00
Nate Bargmann 0db862e560 Apply Linux C Style to parallel.c 2016-02-21 15:06:16 -06:00
Nate Bargmann 6a3214fd43 Apply Linux C style
Update files modified to support libusb-1.0.
2016-02-21 14:56:44 -06:00
Nate Bargmann 07353e1f80 Fix compiler warnings with x86_64-w64-mingw32-gcc
Compiling for Windows 64 resulted in several warnings.  Correct them by
using proper Windows function calls rather than casts.
2016-02-20 11:44:19 -06:00
Nate Bargmann b3e6c460fe Merge branch 'master' into libusb-1-0
Catch up this branch to changes made in master.
2016-02-15 08:16:48 -06:00
Nate Bargmann 9ec98e0fe3 Check for libusb-1.0/libusb.h
Some distributions--Debian and Alpine tested--put libusb.h under the
libusb-1.0 directory.  Test for its presence and if found define
HAVE_LIBUSB_1_0_LIBUSB_H.  Also test for HAVE_LIBUSB or
HAVE_LIBUSB_1_0_LIBUSB_H and conditionally include the correct header
file in the sources.
2016-02-15 08:10:07 -06:00
Nate Bargmann 785e926db9 Reformat optoscan.c to Linux Style
Use astyle to format to Linux Style.
2016-02-14 18:08:54 -06:00
Nate Bargmann dbf25c5139 Touch up adat.c with astyle
Prior reformat had only been a reindent with Emacs.  Now use astyle.
2016-02-14 18:08:05 -06:00
Nate Bargmann 65f87fb78c Touch up drake.c with astyle
Prior reformat had only been a reindent with Emacs.  Now use astyle.
2016-02-14 18:07:16 -06:00
Nate Bargmann 4595f77f99 Touch up rigctld.c and rotctld.c with astyle
Prior reformat had only been a reindent with Emacs.  Now use astyle.
2016-02-14 18:05:55 -06:00
Nate Bargmann 022ba0f48b Add preferred astylerc configuration
Astyle is a code formatting utility that can quickly reformat a source
file based on the settings of its configuration file.  The added
configuration file will format to a style mostly consistent with the
Linux Kernel Style guide:

https://www.kernel.org/doc/Documentation/CodingStyle

While conformance to this document is not the goal, it supplies a
reasonable set of guidelines to be used in Hamlib.
2016-02-14 13:40:35 -06:00
Stephane Fillod 8d7697c3bd Migrating from libusb-0.1 to libusb-1.0 2016-02-14 18:02:26 +01:00
Nate Bargmann c26b893498 Quell clang warning from optoscan.c
clang warned that lvl_len could be used unitialized in a call to
rig_debug.  Initialze lvl_len to 0 as its assignement is inside an if
conditional.

Also reported by Greg Troxel.
2016-02-13 21:49:51 -06:00
Nate Bargmann c0a77e72a6 Reformat adat.c to Linux C Style. 2016-02-13 13:48:37 -06:00
Nate Bargmann dcaa1c7660 Quell clang warning from adat.c
Comment out the conditional:

                    if( pCmd->pacCmdStrs != NULL )

as the structure does not have a terminating NULL, this expression will
never evaluate to false.  Should the structure assigned be modified to
have a NULL as the last element, then uncomment these lines to restore
the test.
2016-02-13 13:45:07 -06:00
Nate Bargmann 0e2ee1c4d5 Reformat drake.c to Linux C Style 2016-02-12 21:07:39 -06:00
Greg Troxel 5436f26023 Warning about dodgy code in drake.c
Quell warning from clang about semicolon immediately trailing an if
conditional.
2016-02-12 20:52:53 -06:00
Nate Bargmann 9b45fce776 Reformat rigctld.c and rotctld.c
Several lines in each file benefitted from formatting so just reformat
the entire files into Linux C Style.
2016-02-12 20:46:38 -06:00
Bill Somerville e4e17ce862 Improve IPv6 portability and consistency
After  discussions with  Greg  N1DAM  I have  changed  the dual  stack
support to  explicitly allow IPv4  connections mapped to IPv6  for any
AF_INET6 address  since BSD  as well as  Windows defaults  this socket
option to on (disallowed).

IPv4 mapped to IPv6 makes sense  for Hamlib servers since starting two
servers  one  for each  protocol  family  (the  other option)  is  not
possible  since there  is only  a single  rig/rotator which  cannot be
shared between two servers.
2016-02-12 20:20:25 -06:00
Michael Black 2c1c1a4b63 Simply define TRUE to 1 in omnivii.c
Clears a Clang warning.
2016-02-12 13:44:49 -06:00
Michael Black e1f0433620 Various Yaesu updates
Fix typo in ft990.c
Remove unused var in newcat.c
Make rit and xit use labs() to match data type
Fix frequency print in newcat.c to use PRIll

RRR
Mike W9MDB
2016-02-12 13:36:37 -06:00
Bill Somerville 04c545b9b9 Only use IPv6 features on Windows versions that support it (>=XP) 2016-02-12 15:30:41 +00:00
Nate Bargmann cc21c64662 Advise on use of int64_t cast
Advise on testing with clang compiler and using int64_t cast with PRIll
macro.

Fix GCC warning when 'make distcheck' is run.
2016-02-09 11:26:23 -06:00
Michael Black 95a99fa37d Quell clang warnings in tests directory
Remove unnecessary parentheses in memcsv.c.

Fix cfp->u.c.combostr as old check was always true since it's statically
allocated.

RRR
Mike W9MDB
2016-02-09 11:12:28 -06:00
Michael Black 61a0e77110 Fix port->pathname checks
Was always true since it's statically allocated

RRR
Mike W9MDB
2016-02-09 10:59:09 -06:00
Nate Bargmann 732309e9d9 Quell compiler warning on MinGW
Use the PRIll macro and int64_t cast to quell the warning from the MinGW
compiler.
2016-02-09 10:51:58 -06:00
Michael Black 4abafcdd29 Clean up clang warnings in tentec
Remove double attenuator assignment in tt588_caps.
Assign correct type (int) to priv->agc in tt550_init.
2016-02-09 06:31:54 -06:00
Bill Somerville 0264e73688 Redundant split mode directives on Elecraft rigs cause Tx failures 2016-02-09 00:30:10 +00:00
Bill Somerville f0bd8061b1 Elecraft rigs do not switch VFO in IF command responses during split Tx. 2016-02-07 12:51:36 +00:00
Michael Black 94973f706f Clear up a clang compiler warning in kenwood/elecraft.h
EXT_LEVEL_NONE should be part of the enum

RRR
Mike W9MDB
2016-02-05 18:34:28 -06:00
Michael Black 8902ab0689 Clean up clang warnings on adat.c
Really simple stuff to remove extraneous parenthese

RRR
Mike W9MDB
2016-02-05 18:27:30 -06:00
Bill Somerville 5244086e07 Detect C-IV NAK returns as rejected commands
Only  ask Icom  rigs once  then  desist if  bandwidth request  returns
command  rejected. This  avoids sending  the request  with every  mode
query  and possibly  retrying 'retries'  times  for rigs  that do  not
suport the '1a 03' command which wastes much time at slow baud rates.
2016-02-05 19:22:29 +00:00
Nate Bargmann 683853d669 Make sure new file frg100.h is distributed
Fix a goof from absent minded maintainer that resulted in an unbuildable
repository.  Always run 'make distcheck'!
2016-02-04 09:09:35 -06:00
Bill Somerville fca48348a6 Add missing configuration getters 2016-02-04 09:09:35 -06:00
Michael Black 03c04209d2 Add get_freq to FRG-100
This patch adds get_freq to frg100 allowing it to work with WSJT-X.
Added rest of Yaesu command set for future expansion too.

RRR
Mike W9MDB
2016-02-02 17:34:24 -06:00
Nate Bargmann 1f8f4510dd Merge branch 'ic910-set-freq' of git://git.code.sf.net/u/bsomervi/hamlib
Fix a logic error in band detection during IC-910 set frequency.
2016-01-20 21:26:56 -06:00
Bill Somerville 87eb9e50b7 Fix a logic error in band detection during IC-910 set frequency
Also optimized to not check other band when already on the right band.
2016-01-20 23:35:32 +00:00