Trait ascom_alpaca::api::Dome

source ·
pub trait Dome: Device + Send + Sync {
Show 25 methods // Provided methods async fn altitude(&self) -> ASCOMResult<f64> { ... } async fn at_home(&self) -> ASCOMResult<bool> { ... } async fn at_park(&self) -> ASCOMResult<bool> { ... } async fn azimuth(&self) -> ASCOMResult<f64> { ... } async fn can_find_home(&self) -> ASCOMResult<bool> { ... } async fn can_park(&self) -> ASCOMResult<bool> { ... } async fn can_set_altitude(&self) -> ASCOMResult<bool> { ... } async fn can_set_azimuth(&self) -> ASCOMResult<bool> { ... } async fn can_set_park(&self) -> ASCOMResult<bool> { ... } async fn can_set_shutter(&self) -> ASCOMResult<bool> { ... } async fn can_slave(&self) -> ASCOMResult<bool> { ... } async fn can_sync_azimuth(&self) -> ASCOMResult<bool> { ... } async fn shutter_status(&self) -> ASCOMResult<DomeShutterStatus> { ... } async fn slaved(&self) -> ASCOMResult<bool> { ... } async fn set_slaved(&self, slaved: bool) -> ASCOMResult { ... } async fn slewing(&self) -> ASCOMResult<bool> { ... } async fn abort_slew(&self) -> ASCOMResult { ... } async fn close_shutter(&self) -> ASCOMResult { ... } async fn find_home(&self) -> ASCOMResult { ... } async fn open_shutter(&self) -> ASCOMResult { ... } async fn park(&self) -> ASCOMResult { ... } async fn set_park(&self) -> ASCOMResult { ... } async fn slew_to_altitude(&self, altitude: f64) -> ASCOMResult { ... } async fn slew_to_azimuth(&self, azimuth: f64) -> ASCOMResult { ... } async fn sync_to_azimuth(&self, azimuth: f64) -> ASCOMResult { ... }
}
Available on crate feature dome only.
Expand description

Dome Specific Methods

Provided Methods§

source

async fn altitude(&self) -> ASCOMResult<f64>

The dome altitude (degrees, horizon zero and increasing positive to 90 zenith).

source

async fn at_home(&self) -> ASCOMResult<bool>

Indicates whether the dome is in the home position. 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 durng 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.

source

async fn at_park(&self) -> ASCOMResult<bool>

True if the dome is in the programmed park position. Set only following a Park() operation and reset with any slew operation.

source

async fn azimuth(&self) -> ASCOMResult<f64>

Returns the dome azimuth (degrees, North zero and increasing clockwise, i.e., 90 East, 180 South, 270 West)

source

async fn can_find_home(&self) -> ASCOMResult<bool>

True if the dome can move to the home position.

source

async fn can_park(&self) -> ASCOMResult<bool>

True if the dome is capable of programmed parking (Park() method)

source

async fn can_set_altitude(&self) -> ASCOMResult<bool>

True if driver is capable of setting the dome altitude.

source

async fn can_set_azimuth(&self) -> ASCOMResult<bool>

True if driver is capable of setting the dome azimuth.

source

async fn can_set_park(&self) -> ASCOMResult<bool>

True if driver is capable of setting the dome park position.

source

async fn can_set_shutter(&self) -> ASCOMResult<bool>

True if driver is capable of automatically operating shutter

source

async fn can_slave(&self) -> ASCOMResult<bool>

True if driver is capable of slaving to a telescope.

source

async fn can_sync_azimuth(&self) -> ASCOMResult<bool>

True if driver is capable of synchronizing the dome azimuth position using the SyncToAzimuth(Double) method.

source

async fn shutter_status(&self) -> ASCOMResult<DomeShutterStatus>

Returns the status of the dome shutter or roll-off roof.

source

async fn slaved(&self) -> ASCOMResult<bool>

True if the dome is slaved to the telescope in its hardware, else False.

source

async fn set_slaved(&self, slaved: bool) -> ASCOMResult

Sets the current subframe height.

source

async fn slewing(&self) -> ASCOMResult<bool>

True if any part of the dome is currently moving, False if all dome components are steady.

source

async fn abort_slew(&self) -> ASCOMResult

Calling this method will immediately disable hardware slewing (Slaved will become False).

source

async fn close_shutter(&self) -> ASCOMResult

Close the shutter or otherwise shield telescope from the sky.

source

async fn find_home(&self) -> ASCOMResult

After Home position is established initializes Azimuth to the default value and sets the AtHome flag.

source

async fn open_shutter(&self) -> ASCOMResult

Open shutter or otherwise expose telescope to the sky.

source

async fn park(&self) -> ASCOMResult

After assuming programmed park position, sets AtPark flag.

source

async fn set_park(&self) -> ASCOMResult

Set the current azimuth, altitude position of dome to be the park position.

source

async fn slew_to_altitude(&self, altitude: f64) -> ASCOMResult

Slew the dome to the given altitude position.

source

async fn slew_to_azimuth(&self, azimuth: f64) -> ASCOMResult

Slew the dome to the given azimuth position.

source

async fn sync_to_azimuth(&self, azimuth: f64) -> ASCOMResult

Synchronize the current position of the dome to the given azimuth.

Trait Implementations§

source§

impl Hash for dyn Dome

source§

fn hash<H: Hasher>(&self, state: &mut H)

Feeds this value into the given Hasher. Read more
source§

impl PartialEq<dyn Dome + 'static> for dyn Dome

source§

fn eq(&self, other: &Self) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Eq for dyn Dome

Implementors§