Changeset View
Changeset View
Standalone View
Standalone View
kstars/ekos/observatory/observatorydomemodel.h
Show All 31 Lines | 25 | public: | |||
---|---|---|---|---|---|
32 | 32 | | |||
33 | // proxies to the underlying dome object | 33 | // proxies to the underlying dome object | ||
34 | bool canPark() | 34 | bool canPark() | ||
35 | { | 35 | { | ||
36 | return (domeInterface != nullptr && domeInterface->canPark()); | 36 | return (domeInterface != nullptr && domeInterface->canPark()); | ||
37 | } | 37 | } | ||
38 | void park(); | 38 | void park(); | ||
39 | void unpark(); | 39 | void unpark(); | ||
40 | ISD::ParkStatus parkStatus(); | ||||
40 | 41 | | |||
41 | double azimuthPosition() | 42 | double azimuthPosition() | ||
42 | { | 43 | { | ||
43 | return domeInterface->azimuthPosition(); | 44 | return domeInterface->azimuthPosition(); | ||
44 | } | 45 | } | ||
45 | void setAzimuthPosition(double position) | 46 | void setAzimuthPosition(double position) | ||
46 | { | 47 | { | ||
47 | domeInterface->setAzimuthPosition(position); | 48 | domeInterface->setAzimuthPosition(position); | ||
Show All 9 Lines | 57 | { | |||
57 | domeInterface->setRelativePosition(position); | 58 | domeInterface->setRelativePosition(position); | ||
58 | } | 59 | } | ||
59 | 60 | | |||
60 | bool canRelativeMove() | 61 | bool canRelativeMove() | ||
61 | { | 62 | { | ||
62 | return (domeInterface != nullptr && domeInterface->canRelativeMove()); | 63 | return (domeInterface != nullptr && domeInterface->canRelativeMove()); | ||
63 | } | 64 | } | ||
64 | 65 | | |||
66 | bool isRolloffRoof() | ||||
67 | { | ||||
68 | return (domeInterface != nullptr && domeInterface->isRolloffRoof()); | ||||
69 | } | ||||
70 | | ||||
65 | bool isAutoSync() | 71 | bool isAutoSync() | ||
66 | { | 72 | { | ||
67 | return (domeInterface != nullptr && domeInterface->isAutoSync()); | 73 | return (domeInterface != nullptr && domeInterface->isAutoSync()); | ||
68 | } | 74 | } | ||
69 | 75 | | |||
70 | void setAutoSync(bool activate); | 76 | void setAutoSync(bool activate); | ||
71 | 77 | | |||
72 | void abort(); | 78 | void abort(); | ||
73 | 79 | | |||
74 | bool hasShutter() | 80 | bool hasShutter() | ||
75 | { | 81 | { | ||
76 | return (domeInterface != nullptr && domeInterface->hasShutter()); | 82 | return (domeInterface != nullptr && domeInterface->hasShutter()); | ||
77 | } | 83 | } | ||
78 | void openShutter(); | 84 | void openShutter(); | ||
79 | void closeShutter(); | 85 | void closeShutter(); | ||
80 | 86 | | |||
87 | bool moveDome(bool moveCW, bool start); | ||||
88 | | ||||
81 | public slots: | 89 | public slots: | ||
82 | void execute(WeatherActions actions); | 90 | void execute(WeatherActions actions); | ||
83 | 91 | | |||
84 | 92 | | |||
85 | private: | 93 | private: | ||
86 | Dome *domeInterface; | 94 | Dome *domeInterface; | ||
87 | 95 | | |||
88 | signals: | 96 | signals: | ||
89 | void newStatus(ISD::Dome::Status state); | 97 | void newStatus(ISD::Dome::Status state); | ||
98 | void newParkStatus(ISD::ParkStatus status); | ||||
90 | void newShutterStatus(ISD::Dome::ShutterStatus status); | 99 | void newShutterStatus(ISD::Dome::ShutterStatus status); | ||
91 | void newAutoSyncStatus(bool enabled); | 100 | void newAutoSyncStatus(bool enabled); | ||
92 | void azimuthPositionChanged(double position); | 101 | void azimuthPositionChanged(double position); | ||
93 | void ready(); | 102 | void ready(); | ||
94 | void disconnected(); | 103 | void disconnected(); | ||
95 | void newLog(const QString &text); | 104 | void newLog(const QString &text); | ||
96 | }; | 105 | }; | ||
97 | 106 | | |||
98 | } | 107 | } |