The RT-21 will accept the command 'AP1XXX.Y<CR>;' which allows settings
to 1/10 of a degree. XXX must be zero padded. '<CR>' causes the RT-21
to rotate to the position immediately with out the need for a following
'AM1;' command.
Tested by Will, WC2L.
The RT-21 returns a variable length string that is terminated by a
semicolon (';') and shorter strings have a leading space character as a
pad. As a result the read_string() function is used to read the string
from the port and strtof() is used to obtain the numeric value returned
by the RT-21. Tested by Will, WC2L.
Even though the Green Heron RT-21 rotor controller is billed as being
RotorEZ compatible, it returns its value as 'XXX;' instead of ';XXX'.
As a new backend model is being written anyway, the backend query's the
controller to return the real value which is 'XXX.Y;'.
Moved all backend *.h files into the SOURCES primary as Automake
documentation states all source file types should be listed. This
causes Automake to include *.h files in rebuild rules for the targets.
Removed the '-DIN_HAMLIB' assignment from the CFLAGS primary in each
backend and assigned it to AM_CPPFLAGS in configure.ac. The effect is
the same and it simplifies the backend Makefile.am files.
Removed all commented lines.
Android makefile fragments are distributed as extra distribution files
by the GNU build system but are otherwise ignored. The Android build
support is independent and does not rely on the GNU build system.
See android/README.android for more info.
Signed-off-by: Nate Bargmann <n0nb@n0nb.us>
Re-worked rotorez_rot_set_conf to use token values defined in rotorez.h
but will need to wait until tokens are available in Hamlib for full use.
Improved documentation in rotorez.txt of changes.
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2588 7ae35d74-ebe9-4afe-98af-79ac388436b8
Added:
doc/README.rotorez -- backend to API document
Updated:
Added rot_set_conf support to rotorez.c
Added interactive support for rot_set_conf in rotctl.c
Updated rotctl.1 for changes.
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1397 7ae35d74-ebe9-4afe-98af-79ac388436b8
Update:
Fixed read bug where Rotor-EZ is apparently returning the
azimuth string prepended with a semi-colon. Thanks to
Orv W6BI for testing the code.
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1370 7ae35d74-ebe9-4afe-98af-79ac388436b8