Show / Hide Table of Contents

Class Rotator

Client implementation of an ASCOM Alpaca Rotator device.

This class is meant to be use in a client application that need to control an ASCOM Alpaca Rotator

Inheritance
System.Object
DeviceBase
Rotator
Implements
IRotator
IDevice
IRotatorAsync
IDeviceAsync
Inherited Members
DeviceBase.DeviceNumber
DeviceBase.InvokeAction(String, String)
DeviceBase.InvokeActionAsync(String, String)
DeviceBase.SendCommandBlind(String, Boolean)
DeviceBase.SendCommandBlindAsync(String, Boolean)
DeviceBase.SendCommandBool(String, Boolean)
DeviceBase.SendCommandBoolAsync(String, Boolean)
DeviceBase.SendCommandString(String, Boolean)
DeviceBase.SendCommandStringAsync(String, Boolean)
DeviceBase.IsConnected()
DeviceBase.IsConnectedAsync()
DeviceBase.SetConnected(Boolean)
DeviceBase.SetConnectedAsync(Boolean)
DeviceBase.GetDescription()
DeviceBase.GetDescriptionAsync()
DeviceBase.GetDriverInfo()
DeviceBase.GetDriverInfoAsync()
DeviceBase.GetDriverVersion()
DeviceBase.GetDriverVersionAsync()
DeviceBase.GetInterfaceVersion()
DeviceBase.GetInterfaceVersionAsync()
DeviceBase.GetName()
DeviceBase.GetNameAsync()
DeviceBase.GetSupportedActions()
DeviceBase.GetSupportedActionsAsync()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: ES.Ascom.Alpaca.Client.Devices
Assembly: ES.Ascom.Alpaca.Client.dll
Syntax
public sealed class Rotator : DeviceBase, IRotator, IDevice, IRotatorAsync, IDeviceAsync

Constructors

| Improve this Doc View Source

Rotator(DeviceConfiguration)

Initializes a new instance of the Rotator class.

Declaration
public Rotator(DeviceConfiguration configuration)
Parameters
Type Name Description
DeviceConfiguration configuration

Device configuration

| Improve this Doc View Source

Rotator(DeviceConfiguration, ILogger)

Initializes a new instance of the Rotator class.

Declaration
public Rotator(DeviceConfiguration configuration, ILogger logger)
Parameters
Type Name Description
DeviceConfiguration configuration

Device configuration

ILogger logger

Logger, can be useful for debugging

| Improve this Doc View Source

Rotator(DeviceConfiguration, IClientTransactionIdGenerator)

Initializes a new instance of the Rotator class.

Declaration
public Rotator(DeviceConfiguration configuration, IClientTransactionIdGenerator clientTransactionIdGenerator)
Parameters
Type Name Description
DeviceConfiguration configuration

Device configuration

IClientTransactionIdGenerator clientTransactionIdGenerator

Client Transaction ID Generator

| Improve this Doc View Source

Rotator(DeviceConfiguration, IClientTransactionIdGenerator, ILogger)

Initializes a new instance of the Rotator class.

Declaration
public Rotator(DeviceConfiguration configuration, IClientTransactionIdGenerator clientTransactionIdGenerator, ILogger logger)
Parameters
Type Name Description
DeviceConfiguration configuration

Device configuration

IClientTransactionIdGenerator clientTransactionIdGenerator

Client Transaction ID Generator

ILogger logger

Logger, can be useful for debugging

| Improve this Doc View Source

Rotator(DeviceConfiguration, ICommandSender)

Declaration
public Rotator(DeviceConfiguration configuration, ICommandSender commandSender)
Parameters
Type Name Description
DeviceConfiguration configuration
ES.Ascom.Alpaca.Client.Request.ICommandSender commandSender
| Improve this Doc View Source

Rotator(DeviceConfiguration, ICommandSender, IClientTransactionIdGenerator)

Declaration
public Rotator(DeviceConfiguration configuration, ICommandSender commandSender, IClientTransactionIdGenerator clientTransactionIdGenerator)
Parameters
Type Name Description
DeviceConfiguration configuration
ES.Ascom.Alpaca.Client.Request.ICommandSender commandSender
IClientTransactionIdGenerator clientTransactionIdGenerator

Properties

| Improve this Doc View Source

DeviceType

Declaration
protected override DeviceType DeviceType { get; }
Property Value
Type Description
DeviceType
Overrides
ES.Ascom.Alpaca.Client.Devices.DeviceBase.DeviceType

Methods

| Improve this Doc View Source

CanReverse()

Declaration
public bool CanReverse()
Returns
Type Description
System.Boolean
| Improve this Doc View Source

CanReverseAsync()

Declaration
public Task<bool> CanReverseAsync()
Returns
Type Description
System.Threading.Tasks.Task<System.Boolean>
| Improve this Doc View Source

GetPosition()

Declaration
public double GetPosition()
Returns
Type Description
System.Double
| Improve this Doc View Source

GetPositionAsync()

Declaration
public Task<double> GetPositionAsync()
Returns
Type Description
System.Threading.Tasks.Task<System.Double>
| Improve this Doc View Source

GetStepSize()

Declaration
public double GetStepSize()
Returns
Type Description
System.Double
| Improve this Doc View Source

GetStepSizeAsync()

Declaration
public Task<double> GetStepSizeAsync()
Returns
Type Description
System.Threading.Tasks.Task<System.Double>
| Improve this Doc View Source

GetTargetPosition()

Declaration
public double GetTargetPosition()
Returns
Type Description
System.Double
| Improve this Doc View Source

GetTargetPositionAsync()

Declaration
public Task<double> GetTargetPositionAsync()
Returns
Type Description
System.Threading.Tasks.Task<System.Double>
| Improve this Doc View Source

Halt()

Declaration
public void Halt()
| Improve this Doc View Source

HaltAsync()

Declaration
public Task HaltAsync()
Returns
Type Description
System.Threading.Tasks.Task
| Improve this Doc View Source

IsMoving()

Declaration
public bool IsMoving()
Returns
Type Description
System.Boolean
| Improve this Doc View Source

IsMovingAsync()

Declaration
public Task<bool> IsMovingAsync()
Returns
Type Description
System.Threading.Tasks.Task<System.Boolean>
| Improve this Doc View Source

IsReversed()

Declaration
public bool IsReversed()
Returns
Type Description
System.Boolean
| Improve this Doc View Source

IsReversedAsync()

Declaration
public Task<bool> IsReversedAsync()
Returns
Type Description
System.Threading.Tasks.Task<System.Boolean>
| Improve this Doc View Source

Move(Double)

Declaration
public void Move(double position)
Parameters
Type Name Description
System.Double position
| Improve this Doc View Source

MoveAbsolute(Double)

Declaration
public void MoveAbsolute(double position)
Parameters
Type Name Description
System.Double position
| Improve this Doc View Source

MoveAbsoluteAsync(Double)

Declaration
public Task MoveAbsoluteAsync(double position)
Parameters
Type Name Description
System.Double position
Returns
Type Description
System.Threading.Tasks.Task
| Improve this Doc View Source

MoveAsync(Double)

Declaration
public Task MoveAsync(double position)
Parameters
Type Name Description
System.Double position
Returns
Type Description
System.Threading.Tasks.Task
| Improve this Doc View Source

SetReversed(Boolean)

Declaration
public void SetReversed(bool reversed)
Parameters
Type Name Description
System.Boolean reversed
| Improve this Doc View Source

SetReversedAsync(Boolean)

Declaration
public Task SetReversedAsync(bool reversed)
Parameters
Type Name Description
System.Boolean reversed
Returns
Type Description
System.Threading.Tasks.Task

Implements

IRotator
IDevice
IRotatorAsync
IDeviceAsync
  • Improve this Doc
  • View Source
Back to top Generated by DocFX