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 { ... }
}dome only.Expand description
Dome Specific Methods
Provided Methods§
sourceasync fn altitude(&self) -> ASCOMResult<f64>
async fn altitude(&self) -> ASCOMResult<f64>
The dome altitude (degrees, horizon zero and increasing positive to 90 zenith).
sourceasync fn at_home(&self) -> ASCOMResult<bool>
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.
sourceasync fn at_park(&self) -> ASCOMResult<bool>
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.
sourceasync fn azimuth(&self) -> ASCOMResult<f64>
async fn azimuth(&self) -> ASCOMResult<f64>
Returns the dome azimuth (degrees, North zero and increasing clockwise, i.e., 90 East, 180 South, 270 West)
sourceasync fn can_find_home(&self) -> ASCOMResult<bool>
async fn can_find_home(&self) -> ASCOMResult<bool>
True if the dome can move to the home position.
sourceasync fn can_park(&self) -> ASCOMResult<bool>
async fn can_park(&self) -> ASCOMResult<bool>
True if the dome is capable of programmed parking (Park() method)
sourceasync fn can_set_altitude(&self) -> ASCOMResult<bool>
async fn can_set_altitude(&self) -> ASCOMResult<bool>
True if driver is capable of setting the dome altitude.
sourceasync fn can_set_azimuth(&self) -> ASCOMResult<bool>
async fn can_set_azimuth(&self) -> ASCOMResult<bool>
True if driver is capable of setting the dome azimuth.
sourceasync fn can_set_park(&self) -> ASCOMResult<bool>
async fn can_set_park(&self) -> ASCOMResult<bool>
True if driver is capable of setting the dome park position.
sourceasync fn can_set_shutter(&self) -> ASCOMResult<bool>
async fn can_set_shutter(&self) -> ASCOMResult<bool>
True if driver is capable of automatically operating shutter
sourceasync fn can_slave(&self) -> ASCOMResult<bool>
async fn can_slave(&self) -> ASCOMResult<bool>
True if driver is capable of slaving to a telescope.
sourceasync fn can_sync_azimuth(&self) -> ASCOMResult<bool>
async fn can_sync_azimuth(&self) -> ASCOMResult<bool>
True if driver is capable of synchronizing the dome azimuth position using the SyncToAzimuth(Double) method.
sourceasync fn shutter_status(&self) -> ASCOMResult<DomeShutterStatus>
async fn shutter_status(&self) -> ASCOMResult<DomeShutterStatus>
Returns the status of the dome shutter or roll-off roof.
sourceasync fn slaved(&self) -> ASCOMResult<bool>
async fn slaved(&self) -> ASCOMResult<bool>
True if the dome is slaved to the telescope in its hardware, else False.
sourceasync fn set_slaved(&self, slaved: bool) -> ASCOMResult
async fn set_slaved(&self, slaved: bool) -> ASCOMResult
Sets the current subframe height.
sourceasync fn slewing(&self) -> ASCOMResult<bool>
async fn slewing(&self) -> ASCOMResult<bool>
True if any part of the dome is currently moving, False if all dome components are steady.
sourceasync fn abort_slew(&self) -> ASCOMResult
async fn abort_slew(&self) -> ASCOMResult
Calling this method will immediately disable hardware slewing (Slaved will become False).
sourceasync fn close_shutter(&self) -> ASCOMResult
async fn close_shutter(&self) -> ASCOMResult
Close the shutter or otherwise shield telescope from the sky.
sourceasync fn find_home(&self) -> ASCOMResult
async fn find_home(&self) -> ASCOMResult
After Home position is established initializes Azimuth to the default value and sets the AtHome flag.
sourceasync fn open_shutter(&self) -> ASCOMResult
async fn open_shutter(&self) -> ASCOMResult
Open shutter or otherwise expose telescope to the sky.
sourceasync fn park(&self) -> ASCOMResult
async fn park(&self) -> ASCOMResult
After assuming programmed park position, sets AtPark flag.
sourceasync fn set_park(&self) -> ASCOMResult
async fn set_park(&self) -> ASCOMResult
Set the current azimuth, altitude position of dome to be the park position.
sourceasync fn slew_to_altitude(&self, altitude: f64) -> ASCOMResult
async fn slew_to_altitude(&self, altitude: f64) -> ASCOMResult
Slew the dome to the given altitude position.
sourceasync fn slew_to_azimuth(&self, azimuth: f64) -> ASCOMResult
async fn slew_to_azimuth(&self, azimuth: f64) -> ASCOMResult
Slew the dome to the given azimuth position.
sourceasync fn sync_to_azimuth(&self, azimuth: f64) -> ASCOMResult
async fn sync_to_azimuth(&self, azimuth: f64) -> ASCOMResult
Synchronize the current position of the dome to the given azimuth.