Hamlib/gs232a
Gerardo Richarte 7a7813cb48 gs232b.c: Improve get_position string parsing
I've found a problem with my setup. I'm using a Yaesu G-5500 with an
arduino running:

http://blog.radioartisan.com/yaesu-rotator-computer-serial-interface/

to emulate a GS232b.

The problem is that the Elevation in rotctl was incorrectly reported,
with the least significant digit show. The problem I've found is some
incompatibility between the format of the answer and the parser. Here
I'm pasting a new version of gs232b_rot_get_position() which both solves
my issue and should be a bit more reliable to protocol differences,
while simpler than the previous.

(a white space in sscanf() matches none or any number of whitespaces, my
emulated GS232B was reporting AZ=123EL=033 with no spaces. This got
broken recently, and I haven't touched the code running in the arduino).

Signed-off-by: Nate Bargmann <n0nb@n0nb.us>
2013-03-03 20:36:28 -06:00
..
Makefile.am
gs232.c
gs232a.c GS-232A: Fix wrong end of line in commands 2012-06-11 23:30:44 +02:00
gs232a.h
gs232b.c gs232b.c: Improve get_position string parsing 2013-03-03 20:36:28 -06:00