Changeset View
Changeset View
Standalone View
Standalone View
kstars/ekos/guide/guide.cpp
Show First 20 Lines • Show All 2491 Lines • ▼ Show 20 Line(s) | 2472 | { | |||
---|---|---|---|---|---|
2492 | if (operationStack.isEmpty() == false) | 2492 | if (operationStack.isEmpty() == false) | ||
2493 | executeOperationStack(); | 2493 | executeOperationStack(); | ||
2494 | } | 2494 | } | ||
2495 | 2495 | | |||
2496 | void Guide::setAxisDelta(double ra, double de) | 2496 | void Guide::setAxisDelta(double ra, double de) | ||
2497 | { | 2497 | { | ||
2498 | //If PHD2 starts guiding because somebody pusted the button remotely, we want to set the state to guiding. | 2498 | //If PHD2 starts guiding because somebody pusted the button remotely, we want to set the state to guiding. | ||
2499 | //If guide pulses start coming in, it must be guiding. | 2499 | //If guide pulses start coming in, it must be guiding. | ||
2500 | if(guiderType == GUIDE_PHD2 && state != GUIDE_GUIDING) | 2500 | // 2020-04-10 sterne-jaeger: Will be resolved inside EKOS phd guiding. | ||
2501 | setStatus(GUIDE_GUIDING); | 2501 | // if(guiderType == GUIDE_PHD2 && state != GUIDE_GUIDING) | ||
2502 | // setStatus(GUIDE_GUIDING); | ||||
2502 | 2503 | | |||
2503 | // Time since timer started. | 2504 | // Time since timer started. | ||
2504 | double key = guideTimer.elapsed() / 1000.0; | 2505 | double key = guideTimer.elapsed() / 1000.0; | ||
2505 | 2506 | | |||
2506 | ra = -ra; //The ra is backwards in sign from how it should be displayed on the graph. | 2507 | ra = -ra; //The ra is backwards in sign from how it should be displayed on the graph. | ||
2507 | 2508 | | |||
2508 | driftGraph->graph(0)->addData(key, ra); | 2509 | driftGraph->graph(0)->addData(key, ra); | ||
2509 | driftGraph->graph(1)->addData(key, de); | 2510 | driftGraph->graph(1)->addData(key, de); | ||
▲ Show 20 Lines • Show All 1117 Lines • Show Last 20 Lines |