14Guider::Guider(GenericDevice *parent) : ConcreteDevice(parent)
18void Guider::setDECSwap(
bool enable)
23bool Guider::doPulse(GuideDirection ra_dir,
int ra_msecs, GuideDirection dec_dir,
int dec_msecs)
25 bool raOK = doPulse(ra_dir, ra_msecs);
26 bool decOK = doPulse(dec_dir, dec_msecs);
27 return (raOK && decOK);
30bool Guider::doPulse(GuideDirection dir,
int msecs)
32 auto raPulse = getNumber(
"TELESCOPE_TIMED_GUIDE_WE");
33 auto decPulse = getNumber(
"TELESCOPE_TIMED_GUIDE_NS");
34 INDI::PropertyView<INumber> *npulse =
nullptr;
35 INDI::WidgetView<INumber> *dirPulse =
nullptr;
37 if (!raPulse || !decPulse)
40 if (dir == RA_INC_DIR || dir == RA_DEC_DIR)
42 raPulse->at(0)->setValue(0);
43 raPulse->at(1)->setValue(0);
47 decPulse->at(0)->setValue(0);
48 decPulse->at(1)->setValue(0);
55 dirPulse = npulse->findWidgetByName(
"TIMED_GUIDE_W");
60 dirPulse = npulse->findWidgetByName(
"TIMED_GUIDE_E");
65 dirPulse = npulse->findWidgetByName(swapDEC ?
"TIMED_GUIDE_S" :
"TIMED_GUIDE_N");
70 dirPulse = npulse->findWidgetByName(swapDEC ?
"TIMED_GUIDE_N" :
"TIMED_GUIDE_S");
80 dirPulse->setValue(msecs);
82 sendNewProperty(npulse);
ISD is a collection of INDI Standard Devices.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:16:41 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.