Esempio n. 1
0
        private void Guider_GuideEvent(object sender, IGuideStep e)
        {
            try {
                var step = e;

                GuideStepsHistory.AddGuideStep(step);

                foreach (RMS rms in recordedRMS.Values)
                {
                    rms.AddDataPoint(step.RADistanceRaw, step.DECDistanceRaw);
                }
            } catch (Exception ex) {
                Logger.Error(ex);
            }
        }
Esempio n. 2
0
        public void AddGuideStep(IGuideStep step)
        {
            lock (lockObj) {
                var historyStep = HistoryStep.FromGuideStep(step, Scale == GuiderScaleEnum.PIXELS ? 1 : PixelScale);
                overallGuideSteps.AddLast(historyStep);

                if (GuideSteps.Count == HistorySize)
                {
                    var elementIdx = overallGuideSteps.Count - HistorySize;
                    if (elementIdx >= 0)
                    {
                        var stepToRemove = overallGuideSteps.ElementAt(elementIdx);
                        RMS.RemoveDataPoint(stepToRemove.RADistanceRaw, stepToRemove.DECDistanceRaw);
                    }
                }

                RMS.AddDataPoint(step.RADistanceRaw, step.DECDistanceRaw);

                GuideSteps.Add(historyStep);
                CalculateMaximumDurationY();
            }
        }
Esempio n. 3
0
 private void GuiderInstance_GuideEvent(object sender, IGuideStep e)
 {
     guideStep = e;
 }