Skip to content

Analyze Tab

Hy Murveit requested to merge murveit/kstars:analyze1 into master

Overview

This MR introduces a new tab to KStar/Ekos, the Analyze Tab. Analyze is a permanent tab, that is, it does not depend on an Indi connection, but like Setup and Scheduler, it is there from the start.

See this screenshot: https://photos.app.goo.gl/NiQfjKUMtxvVCbAN7

The Analyze tab does not directly help with capturing an image. Rather, it helps the user understand what is happening, and what has happened in this and previous Ekos sessions. Signals sent from other Ekos modules are received and saved to a .analyze log file. The signals can also be displayed "live" or from previously recorded files.

Basic use of this tab is described in a "Help popup" which can be seen in the above screen capture.

I envision this as a debugging tool for users, to better understand what's going on, and how to improve their use of KStars/Ekos. It also works as a way to quickly see how their session worked out, e.g. the next morning, or to check if "all's well so far" after a few hours. It is also an interesting image browser. I imagine there will be other use cases.

Why WIP

Removed the WIP. Steve (@alacant) and I have tested for a week, @Jerry for a few nights. Seems like it's working well. Time for other testers.

Changes Overview

The changes are mainly in the new files below. Those are a significant amount of code exercising the wonderful QCustomPlot in more ways than I previously knew were possible.

kstars/ekos/analyze/analyze.h
kstars/ekos/analyze/analyze.cpp
kstars/ekos/analyze/analyze.ui
  • record the live signals coming in,
  • read recorded data, 
  • implement the various plots and user controls.

Other related changes

stars/CMakeLists.txt`
  • introduce the new files to cmake
kstars/data/icons/ekos_analyze.png
kstars/data/kstars.qrc
  • new tab icon (would be happy to get professional help with this--I just did my best)
kstars/ekos/manager.cpp/h
  • add the new Analyze tab to Ekos, with its new icon
  • connect the slots from other modules to Analyze
kstars/fitsviewer/fitssepdetector.cpp/h
  • small change to add "numStars" measurement to SkyBackground, which is an analyze stat
  • formatting done by Artistic Style
kstars/ekos/capture/capture.cpp/h
kstars/ekos/focus/focus.cpp/h
kstars/ekos/guide/externalguide/phd2.cpp
kstars/ekos/guide/guide.cpp/h
kstars/ekos/guide/guideinterface.h
kstars/ekos/guide/internalguide/gmath.cpp/h
kstars/ekos/guide/internalguide/internalguider.cpp
  • small changes in all these files related to new signals which Analyze receives, stores and plots.
Edited by Hy Murveit

Merge request reports

Loading