SEPIA
Software documentation for the APEX SEPIA receivers
CalUnit Class Reference

A class for representing the state of the selection mirror via the GUI. More...

#include <calunit.h>

Inherits QwtCompass.

Collaboration diagram for CalUnit:

Public Types

enum  MirrorPosition {
  MOVING = -1, UNDEFINED = 0, SKYB9 = 1, SKYB7 = 2,
  SKYB5 = 3, LINE_INJECTOR = 4
}
 Possible positions for the selection mirror on the calibration unit. More...
 

Public Slots

void moveTo (CalUnit::MirrorPosition pos)
 Move to a predefined CalUnit::MirrorPosition. More...
 
void showMirrorMoved (float pos)
 Show the new position of the selection mirror. More...
 
void connected ()
 Indicate that connection is on.
 
void disconnected ()
 Indicate that connection is off.
 
void error ()
 Indicate connection error.
 
void setMoving (bool flag)
 Set internal state to moving/not moving. More...
 
void positionReached ()
 Set actual position to commanded position.
 

Signals

void newCmdPosition (CalUnit::MirrorPosition pos)
 Signal the value of the new position. More...
 

Public Member Functions

bool isMoving () const
 Check if the mirror is moving. More...
 

Public Attributes

Property< CalUnit::MirrorPositionchopMode
 The position of the selection mirror.
 

Static Public Attributes

static const double mirrorPositions [4] = { 1.0, 136.75, 237.50, 340.50 }
 known positions in decimal degress: HOME, SKYB9, SKYB7, SKYB5.
 

Detailed Description

A class for representing the state of the selection mirror via the GUI.

Member Enumeration Documentation

◆ MirrorPosition

Possible positions for the selection mirror on the calibration unit.

Enumerator
MOVING 

the selection mirror is moving.

UNDEFINED 

the selection mirror is in an undefined position.

SKYB9 

the selection mirror couples B9 to sky.

SKYB7 

the selection mirror couples B7 to sky.

SKYB5 

the selection mirror couples B5 to sky.

LINE_INJECTOR 

the selection mirror allows injection of a test signal (not used).

Member Function Documentation

◆ isMoving()

bool CalUnit::isMoving ( ) const
inline

Check if the mirror is moving.

Returns
true if mirror is moving, false if mirror has reached a position

◆ moveTo

void CalUnit::moveTo ( CalUnit::MirrorPosition  pos)
slot

Move to a predefined CalUnit::MirrorPosition.

Parameters
posposition to move to

◆ newCmdPosition

void CalUnit::newCmdPosition ( CalUnit::MirrorPosition  pos)
signal

Signal the value of the new position.

Parameters
posthe CalUnit::MirrorPosition of the new position.

◆ setMoving

void CalUnit::setMoving ( bool  flag)
slot

Set internal state to moving/not moving.

Parameters
flagboolean state to set

◆ showMirrorMoved

void CalUnit::showMirrorMoved ( float  pos)
slot

Show the new position of the selection mirror.

Parameters
posthe new position in degrees.

The documentation for this class was generated from the following files: