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 { ... }
}rotator only.Expand description
Rotator Specific Methods
Provided Methods§
sourceasync fn can_reverse(&self) -> ASCOMResult<bool>
async fn can_reverse(&self) -> ASCOMResult<bool>
True if the Rotator supports the Reverse method.
sourceasync fn is_moving(&self) -> ASCOMResult<bool>
async fn is_moving(&self) -> ASCOMResult<bool>
True if the rotator is currently moving to a new position. False if the focuser is stationary.
sourceasync fn mechanical_position(&self) -> ASCOMResult<f64>
async fn mechanical_position(&self) -> ASCOMResult<f64>
Returns the raw mechanical position of the rotator in degrees.
sourceasync fn position(&self) -> ASCOMResult<f64>
async fn position(&self) -> ASCOMResult<f64>
Current instantaneous Rotator position, in degrees.
sourceasync fn reverse(&self) -> ASCOMResult<bool>
async fn reverse(&self) -> ASCOMResult<bool>
Returns the rotator’s Reverse state.
sourceasync fn set_reverse(&self, reverse: bool) -> ASCOMResult
async fn set_reverse(&self, reverse: bool) -> ASCOMResult
Sets the rotator’s Reverse state.
sourceasync fn step_size(&self) -> ASCOMResult<f64>
async fn step_size(&self) -> ASCOMResult<f64>
The minimum StepSize, in degrees.
sourceasync fn target_position(&self) -> ASCOMResult<f64>
async fn target_position(&self) -> ASCOMResult<f64>
The destination position angle for Move() and MoveAbsolute().
sourceasync fn halt(&self) -> ASCOMResult
async fn halt(&self) -> ASCOMResult
Immediately stop any Rotator motion due to a previous Move or MoveAbsolute method call.
sourceasync fn move_(&self, position: f64) -> ASCOMResult
async fn move_(&self, position: f64) -> ASCOMResult
Causes the rotator to move Position degrees relative to the current Position value.
sourceasync fn move_absolute(&self, position: f64) -> ASCOMResult
async fn move_absolute(&self, position: f64) -> ASCOMResult
Causes the rotator to move the absolute position of Position degrees.
sourceasync fn move_mechanical(&self, position: f64) -> ASCOMResult
async fn move_mechanical(&self, position: f64) -> ASCOMResult
Causes the rotator to move the mechanical position of Position degrees.
sourceasync fn sync(&self, position: f64) -> ASCOMResult
async fn sync(&self, position: f64) -> ASCOMResult
Causes the rotator to sync to the position of Position degrees.