• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

kstars

celestrongps.h

Go to the documentation of this file.
00001 /*
00002     Celestron GPS
00003     Copyright (C) 2003 Jasem Mutlaq (mutlaqja@ikarustech.com)
00004 
00005     This library is free software; you can redistribute it and/or
00006     modify it under the terms of the GNU Lesser General Public
00007     License as published by the Free Software Foundation; either
00008     version 2.1 of the License, or (at your option) any later version.
00009 
00010     This library is distributed in the hope that it will be useful,
00011     but WITHOUT ANY WARRANTY; without even the implied warranty of
00012     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013     Lesser General Public License for more details.
00014 
00015     You should have received a copy of the GNU Lesser General Public
00016     License along with this library; if not, write to the Free Software
00017     Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
00018 
00019 */
00020 
00021 #ifndef CELESTRONGPS_H
00022 #define CELESTRONGPS_H
00023 
00024 #include "indidevapi.h"
00025 #include "indicom.h"
00026 
00027 #define POLLMS      1000        /* poll period, ms */
00028 
00029 class CelestronGPS
00030 {
00031  public:
00032  CelestronGPS();
00033  virtual ~CelestronGPS() {}
00034 
00035  virtual void ISGetProperties (const char *dev);
00036  virtual void ISNewNumber (const char *dev, const char *name, double values[], char *names[], int n);
00037  virtual void ISNewText (const char *dev, const char *name, char *texts[], char *names[], int n);
00038  virtual void ISNewSwitch (const char *dev, const char *name, ISState *states, char *names[], int n);
00039  virtual void ISPoll ();
00040  virtual void getBasicData();
00041 
00042  int checkPower(INumberVectorProperty *np);
00043  int checkPower(ISwitchVectorProperty *sp);
00044  int checkPower(ITextVectorProperty *tp);
00045  void powerTelescope();
00046  void slewError(int slewCode);
00047  int handleCoordSet();
00048  int getOnSwitch(ISwitchVectorProperty *sp);
00049 
00050  private:
00051   int timeFormat;
00052 
00053   double JD;
00054   double currentRA;
00055   double currentDEC;
00056   double targetRA;
00057   double targetDEC;
00058   double lastRA;
00059   double lastDEC;
00060 
00061   int lastSet;
00062   int currentSet;
00063   int lastMove[4];
00064 
00065 };
00066 
00067 #endif
00068 

kstars

Skip menu "kstars"
  • Main Page
  • Modules
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • keduca
  • kstars
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal