Interface IRotator
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 IRotator : IDevice
Methods
| Improve this Doc View SourceCanReverse()
Indicates whether the rotator supports the Reverse method.
Declaration
bool CanReverse()
Returns
Type | Description |
---|---|
System.Boolean | True if the rotator supports the Reverse method. |
GetPosition()
Returns the rotator's current position.
Declaration
double GetPosition()
Returns
Type | Description |
---|---|
System.Double | Current instantaneous Rotator position, in degrees. |
GetStepSize()
Returns the minimum StepSize
Declaration
double GetStepSize()
Returns
Type | Description |
---|---|
System.Double | The minimum StepSize, in degrees. |
GetStepSizeAsync()
Returns the minimum StepSize
Declaration
Task<double> GetStepSizeAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Double> | The minimum StepSize, in degrees. |
GetTargetPosition()
Returns the destination position angle for Move() and MoveAbsolute().
Declaration
double GetTargetPosition()
Returns
Type | Description |
---|---|
System.Double |
Halt()
Immediately stop any Rotator motion due to a previous Move or MoveAbsolute method call.
Declaration
void Halt()
IsMoving()
Indicates whether the rotator is currently moving.
Declaration
bool IsMoving()
Returns
Type | Description |
---|---|
System.Boolean |
IsReversed()
Returns the rotator’s Reverse state.
Declaration
bool IsReversed()
Returns
Type | Description |
---|---|
System.Boolean |
Move(Double)
Causes the rotator to move Position degrees relative to the current Position value.
Declaration
void Move(double position)
Parameters
Type | Name | Description |
---|---|---|
System.Double | position | Relative position to move in degrees from current Position. |
MoveAbsolute(Double)
Causes the rotator to move the absolute position of Position degrees.
Declaration
void MoveAbsolute(double position)
Parameters
Type | Name | Description |
---|---|---|
System.Double | position | Absolute position in degrees. |
SetReversed(Boolean)
Sets the rotator’s Reverse state.
Declaration
void SetReversed(bool reversed)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | reversed | True if the rotation and angular direction must be reversed to match the optical characteristcs |