pull/1890/head
Nate Bargmann 2025-09-04 18:38:38 -05:00
commit 23bc557ed7
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: FB2C5130D55A8819
4 zmienionych plików z 47 dodań i 3 usunięć

Wyświetl plik

@ -5,7 +5,7 @@
.\" .\"
.\" Note: Please keep this page in sync with the source, rotctl.c .\" Note: Please keep this page in sync with the source, rotctl.c
.\" .\"
.TH ROTCTL "1" "2020-09-09" "Hamlib" "Hamlib Utilities" .TH ROTCTL "1" "2025-09-01" "Hamlib" "Hamlib Utilities"
. .
. .
.SH NAME .SH NAME
@ -805,6 +805,38 @@ TCP port, and querying the position:
.EE .EE
.in .in
. .
.PP
Start
.B rotctl
for INDI using an address other than the default \fIlocalhost:5764\fP:
.
.PP
.in +4n
.EX
.RB $ " rotctl -m 2001 -r example.com:12345"
.EE
.in
.
.PP
Start
.B rotctl
for INDI using the local domain on Linux:
.
.PP
.in +4n
.EX
.RB $ " rotctl -m 2001 -r @/tmp/indiserver"
.EE
.in
.PP
INDI (Instrument Neutral Distributed Interface) is an LGPLv2
software to control astronomical equipment,
including telescope mounts that can be used to rotate antennas.
.PP
For more information see
.UR https://indilib.org/
indilib.org
.UE
. .
.SH BUGS .SH BUGS
. .

Wyświetl plik

@ -30,7 +30,7 @@ const struct rot_caps indi_rot_caps =
ROT_MODEL(ROT_MODEL_INDI), ROT_MODEL(ROT_MODEL_INDI),
.model_name = "INDI", .model_name = "INDI",
.mfg_name = "INDI", .mfg_name = "INDI",
.version = "0.1", .version = "0.2",
.copyright = "LGPL", .copyright = "LGPL",
.status = RIG_STATUS_STABLE, .status = RIG_STATUS_STABLE,
.rot_type = ROT_TYPE_OTHER, .rot_type = ROT_TYPE_OTHER,

Wyświetl plik

@ -597,9 +597,20 @@ extern "C" const char *indi_wrapper_get_info(ROT *rot)
extern "C" int indi_wrapper_open(ROT *rot) extern "C" int indi_wrapper_open(ROT *rot)
{ {
hamlib_port_t *rotp = ROTPORT(rot);
char host[256];
char port[6];
rig_debug(RIG_DEBUG_TRACE, "%s called\n", __func__); rig_debug(RIG_DEBUG_TRACE, "%s called\n", __func__);
if (parse_hoststr(rotp->pathname, strlen(rotp->pathname), host, port) == RIG_OK)
{
indi_wrapper_client->setServer(host, atoi(port));
}
else
{
indi_wrapper_client->setServer("localhost", 7624); indi_wrapper_client->setServer("localhost", 7624);
}
if (!indi_wrapper_client->connectServer()) if (!indi_wrapper_client->connectServer())
{ {

Wyświetl plik

@ -26,6 +26,7 @@
#include <libindi/baseclient.h> #include <libindi/baseclient.h>
#include <hamlib/rotator.h> #include <hamlib/rotator.h>
#include "misc.h"
class RotINDIClient : public INDI::BaseClient class RotINDIClient : public INDI::BaseClient
{ {