Commit Graph

3302 Commits

Author SHA1 Message Date
Nate Bargmann
2b5f02d442 k3: Implement new RIT/XIT function
For the K3 RIT/XIT are now explicitly turned On/Off by calling
rig_get/set_func() and passing RIG_FUNC_R/XIT and the status of 1 or 0.

When setting the RIT/XIT offset by calling rig_set_r/xit, an offset of 0
will clear the RIT/XIT offset but will no longer turn the RIT/XIT
function Off.  Likewise, an offset can be set but not active until the
RIT/XIT function is explicitly turned On.
2013-01-18 05:50:01 -06:00
Nate Bargmann
f82184cbf5 Add RIT and XIT as rig_set/get_func() members
In response to a long standing request from Tor, N4OGW, and others, RIT
and XIT are added as members for the rig_set/get_func() members.
"RIT"/"XIT" have been added as tokens.  The dummy rig backend and
testrig.c have been updated for these new functions.

Applications should test a backend with the rig_has_set/get_func() and
test for RIG_FUNC_RIT or RIG_FUNC_XIT.  A non-zero result indicates
these functions are implemented by a given rig backend.  It will take
some time for all backends to migrate to this new implementation.  Once
implemented, RIT or XIT should be set to '0' to 'clear' the value
without deactivating the rig's RIT/XIT function.  The dummy/dummy.c file
can be used as a simple guide for backend authors implementing this
behavior.
2013-01-15 12:47:47 -06:00
Martin Ewing
e88d0208bd jupiter.c: Updates from Martin, AA6E
Correct RAWSTR processing, add cal table for RIG_LEVEL_STRENGTH
Add support for "IF" (passband tuning), NB, NR, ANF
Revise reported bandwidth code

Signed-off-by: Nate Bargmann <n0nb@n0nb.us>
2012-12-10 17:49:37 -06:00
Nate Bargmann
6a2accaf71 README.deveoper: Remove references to obsolete files
Thanks to Lukas, HB9FFT, for reporting references to obsolete file
names.
2012-12-02 13:28:23 -06:00
Nate Bargmann
44d99a61cd Build system fixes for the Perl/Python/TCL bindings
Various fixes for building the bindings properly.

Install TCL binding to $(libdir)/tcl/Hamlib, arbitrarily chosen since
there seems to be no standard installation location.  When install
location is changed, tcltest.tcl documents the needed change to a TCL
script.

In the Perl and Python test scripts, improved the QRA examples.  In all
scripts used tabs to line up printed values nicely.

Updated INSTALL and NEWS for recent updates.  Better documented bindings
installation and uninstallation in INSTALL.
2012-11-28 17:11:41 -06:00
Volker Schroer
871d8a44a2 Extension of si570avrusb for SDR Kit of Funkamateur
Adds rig model 2515, Funkamateur Sdr

Signed-off-by: Volker Schroer <dl1ksv@gmx.de>
Signed-off-by: Nate Bargmann <n0nb@n0nb.us>
2012-11-25 13:47:46 -06:00
Nate Bargmann
04188c7a0f macros/Makefile.am: correct stupid typo... 2012-11-21 05:41:22 -06:00
Nate Bargmann
1979a3f8a8 Swig and Python macro files updates
Use ax_pkg_swig.m4 from the GNU Autoconf Macro Archive as it is actively
maintained and update configure.ac accordingly.

Moved the Swig test to the bindings section of configure.ac.
Refactored the logic of the Swig test.

Updated ax_python_devel.m4 to latest version in the Autoconf Macro
Archive (removes two email addresses, not other changes).

Removed aclocal-include.m4 and lf_warnings.m4 as they were not being
used any longer.

Update macros definitions in macros/Makefile.am to recent additions and
deletion of the local macro files.
2012-11-20 05:58:46 -06:00
Nate Bargmann
aa504fe024 bindings/Makefile.am: Group variables and targets 2012-11-19 14:30:48 -06:00
Nate Bargmann
a62d40647e bindings/Makefile.am: Fix 'make dist'
'make dist' was broken by the previous patch.  Now tell Automake not to
build or distribute Hamlib.py.
2012-11-19 12:10:25 -06:00
Nate Bargmann
00aaaf4c50 configure.ac: Clean up the binding builds a bit.
A Perl file was being compile whether Perl binding was enabled or not.
Fixed that and configured an AM_CONDITIONAL for Perl so its components
will not be built when it is not enabled.
2012-11-17 08:45:16 -06:00
Paul Lutus
fb63c3b6f1 pcr.c, pcr1500.c: Add DSP support
"[This patch] allows PCR radios to use DSP units correctly for the first
time under Hamlib.

We're all familiar with a typical DSP presentation on a radio -- you can
turn it on and off, you can adjust the degree of noise processing, and
you can sometimes even enable a notch filter. In the PCR radios
that have a DSP installed, none of this worked until now.

I corrected the code in pcr.c, changes that apply to all the PCR radios,
and in pcr1500.c, the radio I have, but someone else will have to
edit the files for the radios I don't own so the user interface works
right. I decided it would be unwise to try to edit files for radios
I couldn't test.

I just re-read the above, and I need to add that the changes to prc.c
shouldn't adversely affect the PCR models other than the one I own."

Signed-off-by: Nate Bargmann <n0nb@n0nb.us>
2012-11-15 20:42:20 -06:00
Julian Cable
92a80da264 wrg313api.c: Fix Win32 (MinGW) build issue
Signed-off-by: Nate Bargmann <n0nb@n0nb.us>
2012-11-11 20:44:10 -06:00
Paul Lutus
28986aaf8f IC-746/756, IC-PCR8500 fixes
* The 746 has an APF, wasn't in its configuration, added, tested, works.

* The 756Pro has an ANF function, wasn't in its configuration, added,
tested, works.

* The 756Pro's signal strength conversion table was way wrong.
I noticed this while making scope plots in my program JRX --
the strong signals using the STRENGTH output would all flatten
out at a rather low level, but the RAWSTR output showed the
full range. Changed the conversion table, tested, fixed.

R8500 notes:

The R8500 on/off functions work differently than the other Icoms,
in fact it's not too strong to say that this radio is a breed apart.
Most Icom radios have a group command code for on/off functions (16),
then a code for the function, then a flag for on or off. The R8500
combines the second and third into one, and this required a bit of
recoding in "icom.c". Interestingly, someone had created some special
designators in "icom_defs.h" for the R8500, but then never coded them
to the degree that they worked. Now they work. :)

So the AGC, NB and APF functions all work now.

The R8500 doesn't have a preamp control, so I took that out.

The R8500 does have IF shift and a 3-step attenuater, so I put those in.

Signed-off-by: Nate Bargmann <n0nb@n0nb.us>
2012-11-10 21:49:30 -06:00
Nate Bargmann
21fc7f90bb configure.ac: Consolidate funcs and header checks
As AC_CHECK_HEADERS and AC_CHECK_FUNCS take multiple file names,
consolidate the multiple macro calls into a single call for each.

Remove the last obsolescent macro calls.
2012-11-10 08:49:44 -06:00
Julian Cable
0005b9a511 WinRadio G313: Updates from Julian Campbell
"I've re-written the hamlib backend to stream the audio, if and spectrum
pcm samples to simple file system objects.

If no path is given, streaming is not requested. If the path can't be
openned, no streaming is requested.

The file is openned non-blocking and overruns are just silently
discarded.

I've tested it using named fifos and if there is no active reader it
fails to open and if there is an active reader it streams fine.

Thats as simple as it can get.

In terms of the project files, I've put the wrg313api.c and wrg313api.h
files in the existing linradio subfolder of winradio.

The .h file is the g313 equivalent of the wrapi.h file already there.
The .c file actually just contains the dlopen and the assignments to the
function variables.

The actual API shared library is binary only (and 32-bit only), and not
included in my patch."

Signed-off-by: Nate Bargmann <n0nb@n0nb.us>
2012-11-10 07:37:11 -06:00
Nate Bargmann
f92d2ea0f7 IC-PCR1500/2500: Default write_delay to 0
Paul, KE7ZZ, reports the write_delay and post_write_delay defaults were
too long and recommends that these models work with the values set to 0.

Paul has analysis at:

http://arachnoid.com/JRX/#USB_Transaction_Logging_and_Analysis
2012-11-05 21:06:33 -06:00
Frank Goenninger
35c04bf033 ADAT fixes on Windows
"I have been testing again based on RC4 - and still found some issues on
Windows."

Signed-off-by: Nate Bargmann <n0nb@n0nb.us>
2012-10-30 20:01:36 -05:00
Nate Bargmann
61a5a8b969 NEWS: ADAT fixes, IC-R8500 AF_LEVEL 2012-10-29 15:02:44 -05:00
Frank Goenninger
06671cd6af adat updates from Frank, DG1SBG
Diffs for the ADAT TRX found to be required for stable operation of the
ADAT backend.

Signed-off-by: Nate Bargmann <n0nb@n0nb.us>
2012-10-29 06:31:24 -05:00
Nate Bargmann
e2bb0106a2 rigctl.1, rotctl.1: Document Q and q commands
Document expected behavior when the Q or q command is given.

Thanks to Jim, N2ADR, for the report.
2012-10-27 22:30:05 -05:00
Nate Bargmann
c775c92673 NEWS: Update for netrigctl_set_split_vfo() from N2ADR 2012-10-27 09:37:16 -05:00
Nate Bargmann
e942ab0a8e netrigctld.c: Add missing Set Split param--N2ADR
From the SourceForge tracker:

I am using version hamlib-1.2.15.2~rc3.  Start rigctl and specify rig 2
(rigctld). The command "s" (get_split_vfo) will return two parameters,
the spilt state (0 or 1) and the TX VFO name. The command "S"
(set_split_vfo) will send one parameter, the TX VFO name, but will not
send the split state (0 or 1).  This is incorrect. In the file
dummy/netrigctl.c change netrigctl_set_split_vfo() line 782:

len = sprintf(cmd, "S %s\n", rig_strvfo(tx_vfo));

to include the "split" paramater; perhaps:

len = sprintf(cmd, "S %d %s\n", split, rig_strvfo(tx_vfo));

Thanks to Jim, N2ADR for reporting this.
2012-10-27 08:56:15 -05:00
Nate Bargmann
3bd95bb5ce NEWS: Bring up to date to latest changes
icr8500: Add RIG_LEVEL_AF to has_set_level.  TNX John, EI7IG
2012-10-25 14:24:29 -05:00
Nate Bargmann
d54ec38c70 configure.ac: Remove previously dnl'ed lines
Also 'dnl' some more obsolecent macros
2012-10-23 05:33:34 -05:00
Nate Bargmann
3bb0556f9f rigmatrix.html target is conditional in tests/Makefile
If libgd-dev is not installed, an Automake conditional will disable the
rigmatrix.html target in tests/Makefile.  Optionally, this target may
also be disabled by use of the '--disable-html-matrix' option passed to
the configure script.  By default the configure script will enable the
target if the libgd development files are found and disable it when they
are not.
2012-10-17 21:06:03 -05:00
Nate Bargmann
2fea683ca1 Install build files rather than symlink
Previously, invoking autogen.sh would create symbolic links to needed
Autotools files in the tree only when working from a Git checkout
(source distributions have the files included).  Consideration of this
included the possibility of bugs if the Autotools packages were upgraded
on the developer's system that strange bugs could result.  Copying the
files means the tree is self contained until the next time autoreconf or
autogen.sh is run.

The top level Makefile.am included the variable $(subdirs) in both
SUBDIRS and DIST_SUBDIRS assignments.  While this variable may contain a
useful value, it is undocumented in the manuals.  Relying on it may
result in some directory being ommitted or other changes in the future,
so removing it from the assignments.
2012-10-13 19:09:46 -05:00
Nate Bargmann
19a0a4357b configure.ac: Place Autotools programs in build-aux
Autotools installs several programs to aid building Hamlib.  Have
Autotools place them in a separate directory.
2012-10-11 22:23:37 -05:00
Nate Bargmann
95ec564af2 Disable static builds by default
Static libs are generally not wanted so disable their builds by default.
Remove references to '--disable-static' from documentation and example
scripts.
2012-10-11 09:17:58 -05:00
Nate Bargmann
728128b55a Bring documentation up to date with recent changes
Document recent changes to configure and reference Hamlib 3 in this
branch.
2012-10-09 21:16:13 -05:00
Nate Bargmann
9c0b8e352b autogen.sh: Check for autoreconf and use shell var 2012-10-09 21:13:56 -05:00
Nate Bargmann
30e58dfa67 configure.ac: rigmem XML support user optional
I found that building on Cygwin that when libxml2 is installed, MSYS
fails the compile as libxml2 is installed outside the MSYS idea of
'root'.  As this feature depends on an external library, give user the
option of compiling with this support.  Default is to not build rigmem
with XML support.
2012-10-08 22:23:14 -05:00
Nate Bargmann
26da1df586 configure.ac: Readability formatting
Assure shell tests do not test a null value.
2012-10-08 16:40:39 -05:00
Nate Bargmann
0232e30fc0 ABI backward compatibility enhancement
Use the libtool link mode argument '-version-info' to set the Hamlib 3
ABI to be compatible with Hamlib 1.2 ABI.  As the current ABI has not
been changed or removed, we should be able to maintain backward
compatibility.  The libtool docs state that so long as the ABI is only
added to, backward compatibility should be maintained.

My idea here is to be able to have presently compiled programs be able
to use binary libraries of Hamlib 3 without recompiling.  So far I have
tested this locally on Linux and Windows.  More testing is welcome.
2012-10-08 13:07:35 -05:00
Nate Bargmann
52be3c47b8 Provide libltdl in source tarballs
Initializing libltdl is now done by the LTDL_INIT macro in configure.ac.
This now creates a libltdl directory in the tree (not tracked in Git)
when autoreconf is run.  The downside is that this complicates the build
a little bit with the advantage that the build can now take place on a
system that does not have libltdl-dev installed as Hamlib will build on
such systems by passing the '--with-included-ltdl' flag to the configure
script.  In particular, this simplifies the build on Linux for the mingw32
host by not having to run libtoolize manually and assures that libltdl
is built with the same build and host architectures as Hamlib.

Now check if '--with-included-ltdl' has been passed to configure and if
not, only then test for the presence of an installed ltdl.h.

Commented out AM_MAINTAINER_MODE macro.  It is recommended by the
Automake manual that this macro and its configure options not be used as
the Autotools system is designed to regenerate its files.  Let me know
if this is problem as it can be reversed easily enough.  The autogen.sh
script no longer passes the '--enable-maintainer-mode' option to
configure when bootstrapping the build system from Git.

Minor edits in configure.ac to improve readability.

Updated build-win32 files in scripts/
2012-10-07 08:31:10 -05:00
Nate Bargmann
674d4375db IC-756: Remove supported commands per AK6I
Darrel, AK6I, has an IC-756 (non-Pro model) and reports several
functions are not supported and suggested they be modified.
(cherry picked from commit 11033470f0)
2012-10-05 12:47:07 -05:00
Nate Bargmann
b1c4fd9a00 LICENSE: Add 2012, format for 80 columns
(cherry picked from commit 1ab8cb267f)
2012-10-05 12:46:36 -05:00
Nate Bargmann
8aa01114c6 LICENSE: Bump copyright date to 2012
Expand acronyms and point readers to other resources for Hamlib.
(cherry picked from commit b2a00f0f4c)
2012-10-05 12:46:24 -05:00
Nate Bargmann
02ef0d7ce0 Merge branch 'master' of ssh://hamlib.git.sourceforge.net/gitroot/hamlib/hamlib
Conflicts:
	macros/ax_python_devel.m4

Kamal's update was corrected by a newer version of
macros/ax_python_devel.m4 I had applied earlier.
2012-10-05 12:38:02 -05:00
Nate Bargmann
55d034c834 Build system: Syntax and formatting cleanup
Cleaned up M4sh syntax for variable quoting, replaced shell 'if'
conditionals with M4sh AS_IF macro and shell 'case' with AS_CASE macro.
Properly quoted macro variables.  Added comments to configure.ac
describing actions, commented out obsolete macros, commented obsolecent
macros, and added comments for major sections.

Corrected a Mingw linker error on the .EXE files adding
'--enable-auto-import' to their LD flags.  Testing this commit on win32
shows that rigctld is now working properly.  Will need to port this to
the Stable branch and test.

Replaced older local macros with newer replacements from GNU Autoconf
archive.
2012-09-27 14:22:07 -05:00
Nate Bargmann
ea47d89f3f configure.ac: Quell autoconf obsolete warnings
Using the -Wall switch to autoconf/autoreconf revealed a number of
obsolete macros.  At the moment, offending macros have been commented
out using 'dnl'.  They will be removed at some later date.
2012-09-25 22:29:30 -05:00
Nate Bargmann
59d1e3317b autogen.sh: Clean up syntax
Standardize all variable names to be upper case.
Move 'cd' command to improve readability.
2012-09-25 14:40:42 -05:00
Kamal Mostafa
3466512dbd Fix spelling errors 2012-08-21 19:54:50 -07:00
Kamal Mostafa
790ac8075d Do not let macros/ac_python_devel.m4 trash CPPFLAGS and LIBS
A macro here seems to expect ac_save_LIBS and ac_save_CPPFLAGS to
be set on entry (by configure?) but configure doesn't do any such
thing, so that would trash any pre-set CPPFLAGS and LIBS when it
runs (making ./configure CPPFLAGS=something fail to work).
2012-08-21 16:45:13 -07:00
Nate Bargmann
21e59a67eb vx1700.c: correct manufacturer name typo 2012-07-05 10:14:33 -05:00
Nate Bargmann
dcb85d45bb README.rotorez: fix function name typo 2012-07-05 10:01:51 -05:00
Nate Bargmann
334e845d4f Test for PB width < 0, normal PB, or +- limits
Use the absolute value of any negative value that may be passed in via
the width parameter to set_mode.

If RIG_PASSBAND_NORMAL is passed in, call rig_passband_normal() to
determine the normal width for the mode before setting the bandwidth.

The width parameter is tested against wide and narrow filter values and
set to the returned values as upper and lower limits if width falls out
of those bounds.
(cherry picked from commit bb6c6493e1)
2012-06-28 18:11:33 -05:00
Nate Bargmann
cd1f0cbb5f Test for passband width < 0 or normal passband
Use the absolute value of any negative value that may be passed in via
the width parameter to set_mode.

If RIG_PASSBAND_NORMAL is passed in, call rig_passband_normal() to
determine the normal width for the mode before selecting the correct
filter (needs testing).
(cherry picked from commit 94ea3ced4c)
2012-06-28 18:11:10 -05:00
Larry Gadallah
531d45192f AR7030+: Error reading signal strength for low signal levels.
SF Bug ID 3527331

Action: Using rigctl, request signal strength (STRENGTH) for
a low signal level (~ < -100 dBm)
Expected result: Read a signal level of -100 or less
Actual result: Impossibly large negative value is returned.

Error found in initialization of a variable. Some (useful)
instrumentation was also added to help with future debugging.
2012-06-23 17:24:20 +02:00
Stephane Fillod
eb8fc66675 winradio: fix ineffective packed attribute 2012-06-23 16:51:13 +02:00