Instrument Neutral Distributed Interface INDI 2.2.5
lx200_16.h
Go to the documentation of this file.
1/*
2 LX200 16"
3 Copyright (C) 2003 Jasem Mutlaq ([email protected])
4
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
9
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public
16 License along with this library; if not, write to the Free Software
17 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
19*/
20
21#pragma once
22
23#include "lx200gps.h"
24
25class LX200_16 : public LX200GPS
26{
27 public:
28 LX200_16();
30
31 const char *getDefaultName();
32 bool initProperties();
33 bool updateProperties();
34 void ISGetProperties(const char *dev);
35 bool ISNewNumber(const char *dev, const char *name, double values[], char *names[], int n);
36 bool ISNewSwitch(const char *dev, const char *name, ISState *states, char *names[], int n);
37 bool ReadScopeStatus();
38 void getBasicData();
39 bool handleAltAzSlew();
40
41 protected:
44
47
50
53
54 private:
55 double targetAZ, targetALT;
56 double currentAZ, currentALT;
57};
ISwitch FanStatusS[2]
Definition lx200_16.h:49
bool ISNewSwitch(const char *dev, const char *name, ISState *states, char *names[], int n)
Process the client newSwitch command.
Definition lx200_16.cpp:165
bool handleAltAzSlew()
Definition lx200_16.cpp:243
INumber HorizontalCoordsN[2]
Definition lx200_16.h:52
bool initProperties()
Called to initialize basic properties required all the time.
Definition lx200_16.cpp:42
const char * getDefaultName()
Definition lx200_16.cpp:37
void ISGetProperties(const char *dev)
define the driver's properties to the client. Usually, only a minimum set of properties are defined t...
Definition lx200_16.cpp:72
~LX200_16()
Definition lx200_16.h:29
bool ReadScopeStatus()
Read telescope status.
Definition lx200_16.cpp:272
ISwitchVectorProperty HomeSearchSP
Definition lx200_16.h:45
ISwitchVectorProperty FieldDeRotatorSP
Definition lx200_16.h:42
ISwitch HomeSearchS[2]
Definition lx200_16.h:46
ISwitchVectorProperty FanStatusSP
Definition lx200_16.h:48
INumberVectorProperty HorizontalCoordsNP
Definition lx200_16.h:51
void getBasicData()
Definition lx200_16.cpp:369
ISwitch FieldDeRotatorS[2]
Definition lx200_16.h:43
bool ISNewNumber(const char *dev, const char *name, double values[], char *names[], int n)
Process the client newNumber command.
Definition lx200_16.cpp:114
bool updateProperties()
Called when connected state changes, to add/remove properties.
Definition lx200_16.cpp:91
ISState
Switch state.
Definition indiapi.h:148
One number descriptor.
One switch descriptor.
Number vector property descriptor.
Definition indiapi.h:317
Switch vector property descriptor.
Definition indiapi.h:365