ClientExtensionsSlewToCoordinatesTaskAsync Method
Returns an awaitable, running,
Task that slews the telescope to the specified RA/Dec coordinates
Namespace: ASCOM.CommonAssembly: ASCOM.Common (in ASCOM.Common.dll) Version: 3.0.0-rc.1+86c25ce733aebb4d8b1b8a62e84770ea5e972bea
public static Task SlewToCoordinatesTaskAsync(
this ITelescopeV3 device,
double rightAscension,
double declination,
CancellationToken cancellationToken = default,
int pollInterval = 1000,
ILogger logger = null
)
<ExtensionAttribute>
Public Shared Function SlewToCoordinatesTaskAsync (
device As ITelescopeV3,
rightAscension As Double,
declination As Double,
Optional cancellationToken As CancellationToken = Nothing,
Optional pollInterval As Integer = 1000,
Optional logger As ILogger = Nothing
) As Task
- device ITelescopeV3
- The Telescope device
- rightAscension Double
- The required right ascension
- declination Double
- The required declination
- cancellationToken CancellationToken (Optional)
- Cancellation token - Default: None
- pollInterval Int32 (Optional)
- Interval between polls of the completion variable (milliseconds) - Default: 1000 milliseconds.
- logger ILogger (Optional)
- ILogger instance that will receive operation messages from the method - Default: No logger
TaskAwaitable task that ends when the telescope is at the required coordinatesIn Visual Basic and C#, you can call this method as an instance method on any object of type
ITelescopeV3. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Supported in: 2.0