QP  0.7-SNAPSHOT
Control software for the ??SRT telescope
 All Classes Namespaces Functions Variables Enumerations Enumerator Pages
qp.h
1 #ifndef QP_H_LOADED
2 #define QP_H_LOADED 1
3 
12 {
13 public:
23  virtual void up(float v, bool arm_timeout=false) = 0;
24 
34  virtual void east(float v, bool arm_timeout=false) = 0;
35 
37  virtual void stop(void) = 0;
38 
45  virtual double curr_az_speed(void) const = 0;
46 
51  virtual double curr_alt_speed(void) const = 0;
52 
58  virtual double phi(void) const = 0;
65  virtual double theta(void) const = 0;
66 
70  Quaternion T(void) const;
71 
76 
81  virtual void reset_at_home(void) = 0;
82 
88  virtual float eastmost_phi(void) const = 0;
89 
95  virtual float westmost_phi(void) const = 0;
96 
101  virtual float lowest_altitude(void) const = 0;
102 
110  virtual float endstop_clearance(void) const = 0;
111 };
112 
113 TelescopeController* get_controller(void);
114 
115 #if ! PROVARINO
116 // this function is provided by the qp.ino code, only for that case
117 void fault_exception(bool);
118 #endif
119 
120 
121 #endif /* QP_H_LOADED */
virtual double curr_alt_speed(void) const =0
The current latitudinal speed, as a fractional speed, in the range [-1,1], with positive indicating t...
virtual double phi(void) const =0
The current azimuthal angular position of the telescope.
virtual void east(float v, bool arm_timeout=false)=0
Command the controller to slew directly eastwards, at a fraction v of the maximum/reference azimuthal...
virtual void reset_at_home(void)=0
Note that the telescope is now physically at the home position.
Quaternion T(void) const
Return the current pointing of the state, as a vector in AzAlt coordinates.
virtual float westmost_phi(void) const =0
Longitude of the westmost endstop.
virtual double curr_az_speed(void) const =0
The current azimuthal speed, as a fractional speed, in the range [-1,1], with positive indicating tha...
The Quaternion class encapsulates quaternions (quelle surprise!), and provides a small set of operati...
Definition: quaternion.h:29
The Position class allows us to represent positions on the celestial sphere (or on Earth...
Definition: position.h:15
A class for controlling the telescope.
Definition: qp.h:11
Position position(Position::System)
Return the current position of the state, as a Position object.
System
The known coordinate systems.
Definition: position.h:33
virtual double theta(void) const =0
The current angular altitude of the telescope.
virtual float endstop_clearance(void) const =0
How close may the telescope come to its endstop.
virtual float eastmost_phi(void) const =0
Longitude of the eastmost endstop.
virtual void stop(void)=0
Stop the telescope's motion.
virtual float lowest_altitude(void) const =0
Altitude of the telescope's greatest depression.
virtual void up(float v, bool arm_timeout=false)=0
Command the controller to slew directly upwards, at a fraction v of the maximum/reference elevation s...