Changeset View
Changeset View
Standalone View
Standalone View
kstars/ekos/guide/externalguide/phd2.cpp
Show First 20 Lines • Show All 360 Lines • ▼ Show 20 Line(s) | 360 | { | |||
---|---|---|---|---|---|
361 | if (error) | 361 | if (error) | ||
362 | emit newLog(i18n("PHD2: There was a dithering error, but continue guiding.")); | 362 | emit newLog(i18n("PHD2: There was a dithering error, but continue guiding.")); | ||
363 | 363 | | |||
364 | emit newStatus(Ekos::GUIDE_DITHERING_SUCCESS); | 364 | emit newStatus(Ekos::GUIDE_DITHERING_SUCCESS); | ||
365 | } | 365 | } | ||
366 | } | 366 | } | ||
367 | else | 367 | else | ||
368 | { | 368 | { | ||
369 | // settle completed after "guide" command | 369 | if (error) | ||
370 | | ||||
371 | if (!error) | | |||
372 | { | 370 | { | ||
371 | emit newLog(i18n("PHD2: Settling failed, aborted.")); | ||||
372 | emit newStatus(GUIDE_ABORTED); | ||||
373 | } | ||||
374 | else | ||||
375 | { | ||||
376 | // settle completed after "guide" command | ||||
373 | emit newLog(i18n("PHD2: Settling complete, Guiding Started.")); | 377 | emit newLog(i18n("PHD2: Settling complete, Guiding Started.")); | ||
378 | emit newStatus(GUIDE_GUIDING); | ||||
374 | } | 379 | } | ||
375 | } | 380 | } | ||
376 | } | 381 | } | ||
377 | break; | 382 | break; | ||
378 | 383 | | |||
379 | case StarSelected: | 384 | case StarSelected: | ||
380 | emit newLog(i18n("PHD2: Star Selected.")); | 385 | emit newLog(i18n("PHD2: Star Selected.")); | ||
381 | break; | 386 | break; | ||
▲ Show 20 Lines • Show All 268 Lines • ▼ Show 20 Line(s) | 537 | { | |||
650 | //set_lock_shift_params | 655 | //set_lock_shift_params | ||
651 | 656 | | |||
652 | case SET_PAUSED_COMMAND_RECEIVED: //set_paused | 657 | case SET_PAUSED_COMMAND_RECEIVED: //set_paused | ||
653 | break; | 658 | break; | ||
654 | //set_profile | 659 | //set_profile | ||
655 | //shutdown | 660 | //shutdown | ||
656 | 661 | | |||
657 | case STOP_CAPTURE_COMMAND_RECEIVED: //stop_capture | 662 | case STOP_CAPTURE_COMMAND_RECEIVED: //stop_capture | ||
663 | emit newStatus(GUIDE_ABORTED); | ||||
658 | break; | 664 | break; | ||
659 | } | 665 | } | ||
660 | 666 | | |||
661 | // send the next pending call | 667 | // send the next pending call | ||
662 | sendNextRpcCall(); | 668 | sendNextRpcCall(); | ||
663 | } | 669 | } | ||
664 | 670 | | |||
665 | void PHD2::processPHD2Error(const QJsonObject &jsonError, const QByteArray &line) | 671 | void PHD2::processPHD2Error(const QJsonObject &jsonError, const QByteArray &line) | ||
▲ Show 20 Lines • Show All 584 Lines • Show Last 20 Lines |