00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef _ROTCLASS_H
00024 #define _ROTCLASS_H 1
00025
00026 #include <hamlib/rotator.h>
00027
00028
00029
00030 class BACKEND_IMPEXP Rotator {
00031 private:
00032 ROT* theRot;
00033
00034 protected:
00035 public:
00036 Rotator(rot_model_t rot_model);
00037
00038 virtual ~Rotator();
00039
00040 const struct rot_caps *caps;
00041
00042
00043 void open(void);
00044
00045
00046 void close(void);
00047
00048 void setConf(token_t token, const char *val);
00049 void setConf(const char *name, const char *val);
00050 void getConf(token_t token, char *val);
00051 void getConf(const char *name, char *val);
00052 token_t tokenLookup(const char *name);
00053
00054 void setPosition(azimuth_t az, elevation_t el);
00055 void getPosition(azimuth_t& az, elevation_t& el);
00056 void stop();
00057 void park();
00058 void reset (rot_reset_t reset);
00059
00060 void move(int direction, int speed);
00061 };
00062
00063
00064
00065 #endif // _ROTCLASS_H