Hamlib
1.2.15
|
00001 /* 00002 * Hamlib C++ bindings - rotator API header 00003 * Copyright (c) 2002 by Stephane Fillod 00004 * 00005 * 00006 * This library is free software; you can redistribute it and/or 00007 * modify it under the terms of the GNU Lesser General Public 00008 * License as published by the Free Software Foundation; either 00009 * version 2.1 of the License, or (at your option) any later version. 00010 * 00011 * This library is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 * Lesser General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU Lesser General Public 00017 * License along with this library; if not, write to the Free Software 00018 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 00019 * 00020 */ 00021 00022 #ifndef _ROTCLASS_H 00023 #define _ROTCLASS_H 1 00024 00025 #include <hamlib/rotator.h> 00026 00027 00028 00029 class BACKEND_IMPEXP Rotator { 00030 private: 00031 ROT* theRot; // Global ref. to the rot 00032 00033 protected: 00034 public: 00035 Rotator(rot_model_t rot_model); 00036 00037 virtual ~Rotator(); 00038 00039 const struct rot_caps *caps; 00040 00041 // This method open the communication port to the rot 00042 void open(void); 00043 00044 // This method close the communication port to the rot 00045 void close(void); 00046 00047 void setConf(token_t token, const char *val); 00048 void setConf(const char *name, const char *val); 00049 void getConf(token_t token, char *val); 00050 void getConf(const char *name, char *val); 00051 token_t tokenLookup(const char *name); 00052 00053 void setPosition(azimuth_t az, elevation_t el); 00054 void getPosition(azimuth_t& az, elevation_t& el); 00055 void stop(); 00056 void park(); 00057 void reset (rot_reset_t reset); 00058 00059 void move(int direction, int speed); 00060 }; 00061 00062 00063 00064 #endif // _ROTCLASS_H
Hamlib documentation for version 1.2.15 -- Thu Feb 2 2012 21:37:28
Project page: http://www.hamlib.org