Trait ascom_alpaca::api::Rotator

source ·
pub trait Rotator: Device + Send + Sync {
Show 13 methods // Provided methods async fn can_reverse(&self) -> ASCOMResult<bool> { ... } async fn is_moving(&self) -> ASCOMResult<bool> { ... } async fn mechanical_position(&self) -> ASCOMResult<f64> { ... } async fn position(&self) -> ASCOMResult<f64> { ... } async fn reverse(&self) -> ASCOMResult<bool> { ... } async fn set_reverse(&self, reverse: bool) -> ASCOMResult { ... } async fn step_size(&self) -> ASCOMResult<f64> { ... } async fn target_position(&self) -> ASCOMResult<f64> { ... } async fn halt(&self) -> ASCOMResult { ... } async fn move_(&self, position: f64) -> ASCOMResult { ... } async fn move_absolute(&self, position: f64) -> ASCOMResult { ... } async fn move_mechanical(&self, position: f64) -> ASCOMResult { ... } async fn sync(&self, position: f64) -> ASCOMResult { ... }
}
Available on crate feature rotator only.
Expand description

Rotator Specific Methods

Provided Methods§

source

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

True if the Rotator supports the Reverse method.

source

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

True if the rotator is currently moving to a new position. False if the focuser is stationary.

source

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

Returns the raw mechanical position of the rotator in degrees.

source

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

Current instantaneous Rotator position, in degrees.

source

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

Returns the rotator’s Reverse state.

source

async fn set_reverse(&self, reverse: bool) -> ASCOMResult

Sets the rotator’s Reverse state.

source

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

The minimum StepSize, in degrees.

source

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

The destination position angle for Move() and MoveAbsolute().

source

async fn halt(&self) -> ASCOMResult

Immediately stop any Rotator motion due to a previous Move or MoveAbsolute method call.

source

async fn move_(&self, position: f64) -> ASCOMResult

Causes the rotator to move Position degrees relative to the current Position value.

source

async fn move_absolute(&self, position: f64) -> ASCOMResult

Causes the rotator to move the absolute position of Position degrees.

source

async fn move_mechanical(&self, position: f64) -> ASCOMResult

Causes the rotator to move the mechanical position of Position degrees.

source

async fn sync(&self, position: f64) -> ASCOMResult

Causes the rotator to sync to the position of Position degrees.

Trait Implementations§

source§

impl Hash for dyn Rotator

source§

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

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

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

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 Rotator

Implementors§