Esempio n. 1
0
        private void StartMove(object param)
        {
            MoveDirections direction = (MoveDirections)param;
            JogRate        rate;

            if (IsVariableJog)
            {
                rate = SelectedJogRate;

                // If the telescope has different rates for the secondary (Dec or Altitude) axis, use them.

                if (HasAsymmetricJogRates &&
                    (direction == MoveDirections.Up || direction == MoveDirections.Down ||
                     direction == MoveDirections.North || direction == MoveDirections.South))
                {
                    rate = SelectedSecondaryJogRate;
                }

                try
                {
                    TelescopeManager.StartJogScope(direction, rate);
                    _jogInProgress = true;
                }
                catch (Exception xcp)
                {
                    ShowMessage("Unable to use the requested Jog rate.\r\n\r\n"
                                + xcp.Message, "Unsupported Jog Rate Selected");
                }
            }
        }
Esempio n. 2
0
        private void StartMove(object param)
        {
            MoveDirections direction = (MoveDirections)param;

            if (IsVariableJog)
            {
                try
                {
                    TelescopeManager.StartJogScope(direction, SelectedJogRate);
                    _jogInProgress = true;
                }
                catch (Exception xcp)
                {
                    ShowMessage("Unable to use the requested Jog rate.\r\n\r\n"
                                + xcp.Message, "Unsupported Jog Rate Selected");
                }
            }
        }