From 6742478713d4d16bff65b8f8560f0c55f5a18724 Mon Sep 17 00:00:00 2001 From: "Nate Bargmann, N0NB" Date: Sat, 29 Jan 2011 19:58:21 +0000 Subject: [PATCH] Updated SPID patch from Norvald H. Ryeng MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Rot2Prog is now 901, Rot1Prog 902 per feedback from Magne Mæhre LA1BFA. Minor update of spid.txt to correct a typo and clarify a point in the documentation. git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@3028 7ae35d74-ebe9-4afe-98af-79ac388436b8 --- include/hamlib/rotlist.h | 5 ++--- spid/spid.txt | 8 ++++---- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/include/hamlib/rotlist.h b/include/hamlib/rotlist.h index e55842cfb..1a72af7be 100644 --- a/include/hamlib/rotlist.h +++ b/include/hamlib/rotlist.h @@ -183,9 +183,8 @@ */ #define ROT_SPID 9 #define ROT_BACKEND_SPID "spid" -#define ROT_MODEL_SPID_ROT1PROG ROT_MAKE_MODEL(ROT_SPID, 1) -#define ROT_MODEL_SPID_ROT2PROG ROT_MAKE_MODEL(ROT_SPID, 2) - +#define ROT_MODEL_SPID_ROT2PROG ROT_MAKE_MODEL(ROT_SPID, 1) +#define ROT_MODEL_SPID_ROT1PROG ROT_MAKE_MODEL(ROT_SPID, 2) /*! \def ROT_MODEL_M2 * \brief A macro that returns the model number of the M2 backend. diff --git a/spid/spid.txt b/spid/spid.txt index dadc1aa02..743d36e49 100644 --- a/spid/spid.txt +++ b/spid/spid.txt @@ -120,9 +120,9 @@ The PH and PV values in the response packet reflect the settings of the rotator controller. The Rot2Prog supports the following resolutions (always the same for azimuth and elevation): - 1 pulse/deg: PH=0x01, PV=0x01 - 0.5 pulse/deg: PH=0x02, PV=0x02 - 0.25 pulse/deg: PH=0x04, PV=0x04 + 1 deg/pulse: PH=0x01, PV=0x01 + 0.5 deg/pulse: PH=0x02, PV=0x02 + 0.25 deg/pulse: PH=0x04, PV=0x04 @@ -234,7 +234,7 @@ E.g., when pointing a Rot1Prog to azimuth 123: | 57| 34 | 38 | 33 | 30 | 00 | 00 | 00 | 00 | 00 | 00 | 2F| 20 | (hex) ----------------------------------------------------------------- - Note that H4 is not used. + Note that H4 is not used and always set to 0x30. E.g., when pointing a Rot2Prog to azimuth 123.5, elevation 77.0 when the rotator sends one pulse per 0.5 degree (PH=PV=2):