AlpacaDome Class

ASCOM Alpaca Dome client.

Definition

Namespace: ASCOM.Alpaca.Clients
Assembly: ASCOM.Alpaca (in ASCOM.Alpaca.dll) Version: 3.0.0-rc.1+86c25ce733aebb4d8b1b8a62e84770ea5e972bea
C#
public class AlpacaDome : AlpacaDeviceBaseClass, IDomeV3, 
	IAscomDeviceV2, IAscomDevice, IDomeV2
Inheritance
Object    AlpacaDeviceBaseClass    AlpacaDome
Implements
IAscomDevice, IAscomDeviceV2, IDomeV2, IDomeV3

Constructors

AlpacaDome Create a client for an Alpaca Dome device with all parameters set to default values
AlpacaDome(AlpacaConfiguration) Initializes a new instance of the AlpacaCamera class using the specified configuration settings.
AlpacaDome(ServiceType, String, Int32, Int32, Boolean, ILogger) Create a client for an Alpaca Dome device specifying the minimum number of parameters
AlpacaDome(ServiceType, String, Int32, Int32, Int32, Int32, Int32, UInt32, String, String, Boolean, ILogger, String, String, Boolean, Boolean) Create an Alpaca Dome device specifying all parameters

Properties

Altitude The dome altitude (degrees, horizon zero and increasing positive to 90 zenith).
AtHome Indicates whether the dome is in the home position. Raises an error if not supported.

This is normally used following a FindHome operation. The value is reset with any azimuth slew operation that moves the dome away from the home position.

AtHome may also become true during normal slew operations, if the dome passes through the home position and the dome controller hardware is capable of detecting that; or at the end of a slew operation if the dome comes to rest at the home position.

AtPark True if the dome is in the programmed park position.
Azimuth The dome azimuth (degrees, North zero and increasing clockwise, i.e., 90 East, 180 South, 270 West)
CanFindHome True if driver can do a search for home position.
CanPark True if driver is capable of setting dome altitude.
CanSetAltitude True if driver is capable of setting dome altitude.
CanSetAzimuth True if driver is capable of setting dome azimuth.
CanSetPark True if driver can set the dome park position.
CanSetShutter True if driver is capable of automatically operating shutter.
CanSlave True if the dome hardware supports slaving to a telescope.
CanSyncAzimuth True if driver is capable of synchronizing the dome azimuth position using the SyncToAzimuth(Double) method.
ClientConfiguration Provide access to the client configuration
(Inherited from AlpacaDeviceBaseClass)
Connected Set True to enable the link. Set False to disable the link. You can also read the property to check whether it is connected.
(Inherited from AlpacaDeviceBaseClass)
Connecting Completion variable for asynchronous connect and disconnect operations
(Inherited from AlpacaDeviceBaseClass)
Description Returns a description of the driver, such as manufacturer and model number.
(Inherited from AlpacaDeviceBaseClass)
DeviceState Returns the device's operational state in a single call
(Inherited from AlpacaDeviceBaseClass)
DomeState Dome device state
DriverInfo Descriptive and version information about this ASCOM driver.
(Inherited from AlpacaDeviceBaseClass)
DriverVersion A string in the form "n.n" containing only the major and minor version of the driver.
(Inherited from AlpacaDeviceBaseClass)
InterfaceVersion The interface version number that this device implements.
(Inherited from AlpacaDeviceBaseClass)
Name The short name of the driver, for display purposes
(Inherited from AlpacaDeviceBaseClass)
ShutterStatus Status of the dome shutter or roll-off roof.
Slaved True if the dome is slaved to the telescope in its hardware, else False.
Slewing True if any part of the dome is currently moving, False if all dome components are steady.
SupportedActions Returns the list of action names supported by this driver.
(Inherited from AlpacaDeviceBaseClass)

Methods

AbortSlew Immediately cancel current dome operation.
Action Invokes the specified device-specific action.
(Inherited from AlpacaDeviceBaseClass)
CloseShutter Close shutter or otherwise shield telescope from the sky.
CommandBlind Transmits an arbitrary string to the device and does not wait for a response. Optionally, protocol framing characters may be added to the string before transmission.
(Inherited from AlpacaDeviceBaseClass)
CommandBool Transmits an arbitrary string to the device and waits for a boolean response. Optionally, protocol framing characters may be added to the string before transmission.
(Inherited from AlpacaDeviceBaseClass)
CommandString Transmits an arbitrary string to the device and waits for a string response. Optionally, protocol framing characters may be added to the string before transmission.
(Inherited from AlpacaDeviceBaseClass)
Connect Connect to device asynchronously
(Inherited from AlpacaDeviceBaseClass)
Disconnect Disconnect from device asynchronously
(Inherited from AlpacaDeviceBaseClass)
Dispose This method is a "clean-up" method that is primarily of use to drivers that are written in languages such as C# and VB.NET where resource clean-up is initially managed by the language's runtime garbage collection mechanic. Driver authors should take care to ensure that a client or runtime calling Dispose() does not adversely affect other connected clients. Applications should not call this method.
(Inherited from AlpacaDeviceBaseClass)
FindHome Start operation to search for the dome home position.
OpenShutter Open shutter or otherwise expose telescope to the sky.
Park Rotate dome in azimuth to park position.
RefreshClient Updates the internal HTTP client with a new instance.
(Inherited from AlpacaDeviceBaseClass)
SetPark Set the current azimuth, altitude position of dome to be the park position.
SlewToAltitude Slew the dome to the given altitude position.
SlewToAzimuth Slew the dome to the given azimuth position.
SyncToAzimuth Synchronize the current position of the dome to the given azimuth.

Extension Methods

AbortSlewAsync Returns an awaitable, running, Task that halts all dome movement
(Defined by ClientExtensions)
CloseShutterAsync Returns an awaitable, running, Task that closes the dome shutter
(Defined by ClientExtensions)
ConnectAsync Returns an awaitable, running, Task that connects to the device. (Polls IAscomDeviceV2.Connecting)
(Defined by ClientExtensions)
DisconnectAsync Returns an awaitable, running, Task that disconnects from the device. (Polls IAscomDeviceV2.Connecting)
(Defined by ClientExtensions)
FindHomeAsync Returns an awaitable, running, Task that moves the dome to the home position
(Defined by ClientExtensions)
OpenShutterAsync Returns an awaitable, running, Task that opens the dome shutter
(Defined by ClientExtensions)
ParkAsync Returns an awaitable, running, Task that parks the dome
(Defined by ClientExtensions)
SlewToAltitudeAsync Returns an awaitable, running, Task that slews the dome to the specified altitude
(Defined by ClientExtensions)
SlewToAzimuthAsync Returns an awaitable, running, Task that slews the dome to the specified azimuth
(Defined by ClientExtensions)

Version Information

.NET Standard

Supported in: 2.0

See Also