Click or drag to resize

TelescopeSlewToCoordinatesAsync Method

Move the telescope to the given equatorial coordinates, return immediately after starting the slew.

Namespace:  ASCOM.DriverAccess
Assembly:  ASCOM.DriverAccess (in ASCOM.DriverAccess.dll) Version: 3351c4f3fa64146a7efd5b51ed4591e32a0a5484
Syntax
public void SlewToCoordinatesAsync(
	double RightAscension,
	double Declination
)

Parameters

RightAscension
Type: SystemDouble
The destination right ascension (hours). Copied to TargetRightAscension.
Declination
Type: SystemDouble
The destination declination (degrees, positive North). Copied to TargetDeclination.

Implements

ITelescopeV3SlewToCoordinatesAsync(Double, Double)
Exceptions
ExceptionCondition
MethodNotImplementedExceptionIf the method is not implemented and CanSlewAsync is False
ParkedExceptionIf the telescope is parked
InvalidValueExceptionIf an invalid RightAscension or Declination is specified
NotConnectedExceptionIf the device is not connected
DriverExceptionAn error occurred that is not described by one of the more specific ASCOM exceptions. The device did not successfully complete the request.
Remarks
This method must be implemented if CanSlewAsync returns True. Raises an error if starting the slew failed. Returns immediately after starting the slew. The client may monitor the progress of the slew by reading the RightAscension, Declination, and Slewing properties during the slew. When the slew completes, Slewing becomes False. The slew may fail to start if the target coordinates are beyond limits imposed within the driver component. Such limits include mechanical constraints imposed by the mount or attached instruments, building or dome enclosure restrictions, etc.

The target coordinates are copied to TargetRightAscension and TargetDeclination whether or not the slew succeeds. Raises an error if AtPark is True, or if Tracking is False.

See Also