Hamlib  3.3
rotclass.h
1 /*
2  * Hamlib C++ bindings - rotator API header
3  * Copyright (c) 2002 by Stephane Fillod
4  *
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19  *
20  */
21 
22 #ifndef _ROTCLASS_H
23 #define _ROTCLASS_H 1
24 
25 #include <hamlib/rotator.h>
26 
27 
28 
29 class BACKEND_IMPEXP Rotator
30 {
31 private:
32  ROT *theRot; // Global ref. to the rot
33 
34 protected:
35 public:
36  Rotator(rot_model_t rot_model);
37 
38  virtual ~Rotator();
39 
40  const struct rot_caps *caps;
41 
42  // This method opens the communication port to the rot
43  void open(void);
44 
45  // This method closes the communication port to the rot
46  void close(void);
47 
48  void setConf(token_t token, const char *val);
49  void setConf(const char *name, const char *val);
50  void getConf(token_t token, char *val);
51  void getConf(const char *name, char *val);
52  token_t tokenLookup(const char *name);
53 
54  void setPosition(azimuth_t az, elevation_t el);
55  void getPosition(azimuth_t& az, elevation_t& el);
56  void stop();
57  void park();
58  void reset(rot_reset_t reset);
59 
60  void move(int direction, int speed);
61 };
62 
63 
64 
65 #endif // _ROTCLASS_H
azimuth_t
float azimuth_t
Type definition for azimuth.
Definition: rotator.h:79
rot
This is the master data structure, acting as a handle for the controlled rotator.
Definition: rotator.h:335
rot_reset_t
int rot_reset_t
Type definition for rotator reset.
Definition: rotator.h:103
rot_caps
Rotator data structure.
Definition: rotator.h:219
rot_model_t
int rot_model_t
Convenience type definition for rotator model.
Definition: rotlist.h:369
elevation_t
float elevation_t
Type definition for elevation.
Definition: rotator.h:67
token_t
long token_t
configuration token
Definition: rig.h:546
rotator.h
Hamlib rotator data structures.
Rotator
Definition: rotclass.h:29

Generated by doxygen 1.8.17

Hamlib documentation for version 3.3 -- Wed Jan 29 2020 00:00:00
Project page: http://www.hamlib.org