Changeset View
Changeset View
Standalone View
Standalone View
kstars/indi/indidome.cpp
Show First 20 Lines • Show All 235 Lines • ▼ Show 20 Line(s) | 235 | { | |||
---|---|---|---|---|---|
236 | m_Status = DOME_TRACKING; | 236 | m_Status = DOME_TRACKING; | ||
237 | emit newStatus(m_Status); | 237 | emit newStatus(m_Status); | ||
238 | } | 238 | } | ||
239 | else if (svp->s == IPS_IDLE && lastStatus != DOME_IDLE) | 239 | else if (svp->s == IPS_IDLE && lastStatus != DOME_IDLE) | ||
240 | { | 240 | { | ||
241 | m_Status = DOME_IDLE; | 241 | m_Status = DOME_IDLE; | ||
242 | emit newStatus(m_Status); | 242 | emit newStatus(m_Status); | ||
243 | } | 243 | } | ||
244 | else if (svp->s == IPS_ALERT) | ||||
245 | { | ||||
246 | m_Status = DOME_ERROR; | ||||
247 | emit newStatus(m_Status); | ||||
248 | } | ||||
244 | } | 249 | } | ||
245 | else if (!strcmp(svp->name, "DOME_SHUTTER")) | 250 | else if (!strcmp(svp->name, "DOME_SHUTTER")) | ||
246 | { | 251 | { | ||
247 | if (svp->s == IPS_ALERT) | 252 | if (svp->s == IPS_ALERT) | ||
248 | { | 253 | { | ||
249 | emit newShutterStatus(SHUTTER_ERROR); | 254 | emit newShutterStatus(SHUTTER_ERROR); | ||
250 | 255 | | |||
251 | // If alert, set shutter status to whatever it was opposite to. That is, if it was opening and failed | 256 | // If alert, set shutter status to whatever it was opposite to. That is, if it was opening and failed | ||
▲ Show 20 Lines • Show All 315 Lines • Show Last 20 Lines |