private void btnGoToT1_Click(object sender, EventArgs e)
 {
     if (IsConnected)
     {
         try
         {
             driver.TargetRightAscension = 10.16667;
             driver.TargetDeclination    = 17.5;
             driver.SlewToTarget();
         }
         catch (Exception ex)
         {
             MessageBox.Show(ex.Message);
         }
     }
 }
示例#2
0
 public void SlewToTarget()
 {
     CheckConnected();
     if (Platform.IsTracking)
     {
         throw new InvalidOperationException("cannot SlewToTarget when platform is tracking");
     }
     m_mount.SlewToTarget();
 }