7 #include <qwt_compass.h> 10 #include "../property.h" 11 #include "../constants.h" 25 Q_PROPERTY(
int position READ position)
46 explicit
CalUnit(QWidget *parent = 0);
61 QSize sizeHint()
const;
89 void error() { centerLED->setError(); }
110 int position()
const {
return static_cast<int>(
chopMode.
actual()); }
112 StatusLED *centerLED;
the selection mirror allows injection of a test signal (not used).
Definition: calunit.h:37
MirrorPosition
Possible positions for the selection mirror on the calibration unit.
Definition: calunit.h:31
void moveTo(CalUnit::MirrorPosition pos)
Move to a predefined CalUnit::MirrorPosition.
Definition: calunit.cpp:94
the selection mirror couples B5 to sky.
Definition: calunit.h:36
static const double mirrorPositions[4]
known positions in decimal degress: HOME, SKYB9, SKYB7, SKYB5.
Definition: calunit.h:44
the selection mirror is in an undefined position.
Definition: calunit.h:33
the selection mirror couples B7 to sky.
Definition: calunit.h:35
void setMoving(bool flag)
Set internal state to moving/not moving.
Definition: calunit.cpp:76
the selection mirror couples B9 to sky.
Definition: calunit.h:34
void connected()
Indicate that connection is on.
Definition: calunit.h:79
bool isMoving() const
Check if the mirror is moving.
Definition: calunit.h:58
void newCmdPosition(CalUnit::MirrorPosition pos)
Signal the value of the new position.
A class for representing the state of the selection mirror via the GUI.
Definition: calunit.h:21
void error()
Indicate connection error.
Definition: calunit.h:89
A template class representing a device property.
Definition: property.h:20
the selection mirror is moving.
Definition: calunit.h:32
T actual() const
Read the actual value.
Definition: property.h:62
void positionReached()
Set actual position to commanded position.
Definition: calunit.cpp:83
void disconnected()
Indicate that connection is off.
Definition: calunit.h:84
void showMirrorMoved(float pos)
Show the new position of the selection mirror.
Definition: calunit.cpp:54
Property< CalUnit::MirrorPosition > chopMode
The position of the selection mirror.
Definition: calunit.h:52