kopia lustrzana https://github.com/Hamlib/Hamlib
One more attempt to get rc2800 cooperating LFCR needed?
https://github.com/Hamlib/Hamlib/issues/451
(cherry picked from commit 3490fed03c
)
Hamlib-4.0
rodzic
a9b2907c76
commit
9ea46c07c2
|
@ -39,6 +39,7 @@
|
||||||
|
|
||||||
#define CR "\r"
|
#define CR "\r"
|
||||||
#define LF "\x0a"
|
#define LF "\x0a"
|
||||||
|
#define LFCR "\x0a\r"
|
||||||
|
|
||||||
#define BUFSZ 128
|
#define BUFSZ 128
|
||||||
|
|
||||||
|
@ -247,7 +248,7 @@ rc2800_rot_set_position(ROT *rot, azimuth_t az, elevation_t el)
|
||||||
|
|
||||||
rig_debug(RIG_DEBUG_TRACE, "%s called: %f %f\n", __func__, az, el);
|
rig_debug(RIG_DEBUG_TRACE, "%s called: %f %f\n", __func__, az, el);
|
||||||
|
|
||||||
num_sprintf(cmdstr, "A%3.0f"CR, az);
|
num_sprintf(cmdstr, "A%3.0f"LFCR, az);
|
||||||
retval1 = rc2800_transaction(rot, cmdstr, NULL, 0);
|
retval1 = rc2800_transaction(rot, cmdstr, NULL, 0);
|
||||||
|
|
||||||
if (rot->caps->rot_model == ROT_MODEL_RC2800)
|
if (rot->caps->rot_model == ROT_MODEL_RC2800)
|
||||||
|
@ -255,7 +256,7 @@ rc2800_rot_set_position(ROT *rot, azimuth_t az, elevation_t el)
|
||||||
/* do not overwhelm the MCU? */
|
/* do not overwhelm the MCU? */
|
||||||
hl_usleep(200 * 1000);
|
hl_usleep(200 * 1000);
|
||||||
|
|
||||||
num_sprintf(cmdstr, "E%3.0f"CR, el);
|
num_sprintf(cmdstr, "E%3.0f"LFCR, el);
|
||||||
retval2 = rc2800_transaction(rot, cmdstr, NULL, 0);
|
retval2 = rc2800_transaction(rot, cmdstr, NULL, 0);
|
||||||
|
|
||||||
if (retval1 == retval2)
|
if (retval1 == retval2)
|
||||||
|
@ -380,7 +381,7 @@ const struct rot_caps rc2800_rot_caps =
|
||||||
ROT_MODEL(ROT_MODEL_RC2800),
|
ROT_MODEL(ROT_MODEL_RC2800),
|
||||||
.model_name = "RC2800",
|
.model_name = "RC2800",
|
||||||
.mfg_name = "M2",
|
.mfg_name = "M2",
|
||||||
.version = "20201129.1",
|
.version = "20201130",
|
||||||
.copyright = "LGPL",
|
.copyright = "LGPL",
|
||||||
.status = RIG_STATUS_STABLE,
|
.status = RIG_STATUS_STABLE,
|
||||||
.rot_type = ROT_TYPE_AZEL,
|
.rot_type = ROT_TYPE_AZEL,
|
||||||
|
@ -411,7 +412,7 @@ const struct rot_caps rc2800az_rot_caps =
|
||||||
ROT_MODEL(ROT_MODEL_RC2800AZ),
|
ROT_MODEL(ROT_MODEL_RC2800AZ),
|
||||||
.model_name = "RC2800AZ",
|
.model_name = "RC2800AZ",
|
||||||
.mfg_name = "M2",
|
.mfg_name = "M2",
|
||||||
.version = "20201129.1",
|
.version = "20201130",
|
||||||
.copyright = "LGPL",
|
.copyright = "LGPL",
|
||||||
.status = RIG_STATUS_STABLE,
|
.status = RIG_STATUS_STABLE,
|
||||||
.rot_type = ROT_TYPE_AZIMUTH,
|
.rot_type = ROT_TYPE_AZIMUTH,
|
||||||
|
|
Ładowanie…
Reference in New Issue