kopia lustrzana https://github.com/Hamlib/Hamlib
Merge branch 'master' of github.com:Hamlib/Hamlib
commit
79dc128746
|
@ -230,7 +230,14 @@ static int meade_open(ROT *rot)
|
|||
|
||||
/* Set Telescope to Land alignment mode to deactivate sloping */
|
||||
/* Allow 0-90 Degree Elevation */
|
||||
retval = meade_transaction(rot, ":AL#:So00#:Sh90#", NULL, 0, 0);
|
||||
if (strcmp(priv->product_name, "Autostar")) // if we're not an audiostar
|
||||
{
|
||||
retval = meade_transaction(rot, ":AL#:So00#:Sh90#", NULL, 0, 0);
|
||||
}
|
||||
{
|
||||
// Audiostar elevation is in arcminutes
|
||||
retval = meade_transaction(rot, ":So00#:Sh5400#", NULL, 0, 0);
|
||||
}
|
||||
|
||||
if (retval != RIG_OK) { rig_debug(RIG_DEBUG_ERR, "%s: meade_transaction %s\n", __func__, rigerror(retval)); }
|
||||
|
||||
|
@ -299,6 +306,7 @@ static int meade_set_position(ROT *rot, azimuth_t az, elevation_t el)
|
|||
meade_transaction(rot, cmd_str, return_str, &return_str_size, 3);
|
||||
|
||||
/* '1' == Azimuth accepted '1' == Elevation accepted '0' == No error */
|
||||
/* MA command may return 1=Lower than or 2=Higher than min/max elevation */
|
||||
if (return_str_size > 0 && strstr(return_str, "110") != NULL)
|
||||
{
|
||||
return RIG_OK;
|
||||
|
@ -451,7 +459,7 @@ const struct rot_caps meade_caps =
|
|||
ROT_MODEL(ROT_MODEL_MEADE),
|
||||
.model_name = "LX200/Autostar",
|
||||
.mfg_name = "Meade",
|
||||
.version = "20200528",
|
||||
.version = "20200531",
|
||||
.copyright = "LGPL",
|
||||
.status = RIG_STATUS_STABLE,
|
||||
.rot_type = ROT_TYPE_AZEL,
|
||||
|
|
|
@ -1993,6 +1993,9 @@ int HAMLIB_API rig_get_vfo(RIG *rig, vfo_t *vfo)
|
|||
rig->state.cache.vfo = *vfo;
|
||||
cache_ms = elapsed_ms(&rig->state.cache.time_vfo, ELAPSED_SET);
|
||||
}
|
||||
else {
|
||||
cache_ms = elapsed_ms(&rig->state.cache.time_vfo, ELAPSED_INVALIDATE);
|
||||
}
|
||||
|
||||
return retcode;
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue