Example #1
0
        private void SlewButton_Click(object sender, EventArgs e)
        {
            decimal  endEL       = ELPositionInput.Value;
            decimal  endAZ       = AZPositionInput.Value;
            DateTime arrivalTime = ArrivalTimeInput.Value;

            SlewInstruction inputInstruction = new SlewInstruction(endAZ, endEL, arrivalTime);

            Graph(inputInstruction);
        }
Example #2
0
        private void SlewButton_Click(object sender, EventArgs e)
        {
            decimal  endEL = ELPositionInput.Value;
            decimal  endAZ = AZPositionInput.Value;
            DateTime arrivalTime;

            if (ArrivalTimeInput.Enabled)
            {
                arrivalTime = ArrivalTimeInput.Value;
            }
            else
            {
                arrivalTime = DateTime.Now.AddSeconds((double)IntervalInput.Value);
            }

            SlewInstruction inputInstruction = new SlewInstruction(endAZ, endEL, arrivalTime);

            Graph(inputInstruction);
        }