Esempio n. 1
0
 /// <summary>
 /// A constructor for FocuserDataType that takes 5 arguments.
 /// </summary>
 /// <param name="modelNumber">The FeatherTouch model number/name.</param>
 /// <param name="stepCount">Total number of steps.</param>
 /// <param name="micronsPerStep">Microns per step, hwardware dependent.</param>
 /// <param name="totalTravelInches">Focuser travel measured in inches.</param>
 /// <param name="minimumStepsPerCount">The minimum number of steps per move command.</param>
 public FocuserDataType(ModelNumberEnum modelNumber, uint stepCount, double micronsPerStep, double totalTravelInches, uint minimumStepsPerCount)
 {
     ModelNumber          = modelNumber;
     StepCount            = stepCount;
     MicronsPerStep       = micronsPerStep;
     TotalTravelInches    = totalTravelInches;
     MinimumStepsPerCount = minimumStepsPerCount;
 }
Esempio n. 2
0
        /// <summary>
        /// Determines if focuser is short or long body based on model number.
        /// </summary>
        /// <param name="modelEnum">The focuser model number/name enumeration.</param>
        internal void DetermineFocuserLength(ModelNumberEnum modelEnum)
        {
            switch (modelEnum)
            {
            case Focuser.ModelNumberEnum.FTF3545:
            case Focuser.ModelNumberEnum.AP27FTMU:
            case Focuser.ModelNumberEnum.AP4FOC3E:
            case Focuser.ModelNumberEnum.AP27FOC3E:
                LogMessage("Focuser.DetermineFocuserLength", "{0} is a long Focuser.", modelEnum);
                IsLongFocuser = true;
                break;

            default:
                LogMessage("Focuser.DetermineFocuserLength", "{0} is not a long Focuser.", modelEnum);
                IsLongFocuser = false;
                break;
            }
        }