Interface IRotatorAsync
Defines the capabilities supported by an ASCOM Alpaca Rotator device
Inherited Members
Namespace: ES.Ascom.Alpaca.Devices
Assembly: ES.Ascom.Alpaca.Shared.dll
Syntax
public interface IRotatorAsync : IDeviceAsync
Methods
| Improve this Doc View SourceCanReverseAsync()
Indicates whether the rotator supports the Reverse method.
Declaration
Task<bool> CanReverseAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Boolean> | True if the rotator supports the Reverse method. |
GetPositionAsync()
Returns the rotator's current position.
Declaration
Task<double> GetPositionAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Double> | Current instantaneous Rotator position, in degrees. |
GetTargetPositionAsync()
Returns the destination position angle for Move() and MoveAbsolute().
Declaration
Task<double> GetTargetPositionAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Double> |
HaltAsync()
Immediately stop any Rotator motion due to a previous Move or MoveAbsolute method call.
Declaration
Task HaltAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
IsMovingAsync()
Indicates whether the rotator is currently moving.
Declaration
Task<bool> IsMovingAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Boolean> |
IsReversedAsync()
Returns the rotator’s Reverse state.
Declaration
Task<bool> IsReversedAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Boolean> |
MoveAbsoluteAsync(Double)
Causes the rotator to move the absolute position of Position degrees.
Declaration
Task MoveAbsoluteAsync(double position)
Parameters
Type | Name | Description |
---|---|---|
System.Double | position | Absolute position in degrees. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
MoveAsync(Double)
Causes the rotator to move Position degrees relative to the current Position value.
Declaration
Task MoveAsync(double position)
Parameters
Type | Name | Description |
---|---|---|
System.Double | position | Relative position to move in degrees from current Position. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
SetReversedAsync(Boolean)
Sets the rotator’s Reverse state.
Declaration
Task SetReversedAsync(bool reversed)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | reversed | True if the rotation and angular direction must be reversed to match the optical characteristcs |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |