pull/281/head
Michael Black 2020-05-31 07:07:13 -05:00
commit 3af0151c3d
1 zmienionych plików z 9 dodań i 1 usunięć

Wyświetl plik

@ -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, "Audiostar")) // 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;