Trait ascom_alpaca::api::Focuser
source · pub trait Focuser: Device + Send + Sync {
// Provided methods
async fn absolute(&self) -> ASCOMResult<bool> { ... }
async fn is_moving(&self) -> ASCOMResult<bool> { ... }
async fn max_increment(&self) -> ASCOMResult<i32> { ... }
async fn max_step(&self) -> ASCOMResult<i32> { ... }
async fn position(&self) -> ASCOMResult<i32> { ... }
async fn step_size(&self) -> ASCOMResult<f64> { ... }
async fn temp_comp(&self) -> ASCOMResult<bool> { ... }
async fn set_temp_comp(&self, temp_comp: bool) -> ASCOMResult { ... }
async fn temp_comp_available(&self) -> ASCOMResult<bool> { ... }
async fn temperature(&self) -> ASCOMResult<f64> { ... }
async fn halt(&self) -> ASCOMResult { ... }
async fn move_(&self, position: i32) -> ASCOMResult { ... }
}focuser only.Expand description
Focuser Specific Methods
Provided Methods§
sourceasync fn absolute(&self) -> ASCOMResult<bool>
async fn absolute(&self) -> ASCOMResult<bool>
True if the focuser is capable of absolute position; that is, being commanded to a specific step location.
sourceasync fn is_moving(&self) -> ASCOMResult<bool>
async fn is_moving(&self) -> ASCOMResult<bool>
True if the focuser is currently moving to a new position. False if the focuser is stationary.
sourceasync fn max_increment(&self) -> ASCOMResult<i32>
async fn max_increment(&self) -> ASCOMResult<i32>
Maximum increment size allowed by the focuser; i.e. the maximum number of steps allowed in one move operation.
sourceasync fn max_step(&self) -> ASCOMResult<i32>
async fn max_step(&self) -> ASCOMResult<i32>
Maximum step position permitted.
sourceasync fn position(&self) -> ASCOMResult<i32>
async fn position(&self) -> ASCOMResult<i32>
Current focuser position, in steps.
sourceasync fn step_size(&self) -> ASCOMResult<f64>
async fn step_size(&self) -> ASCOMResult<f64>
Step size (microns) for the focuser.
sourceasync fn temp_comp(&self) -> ASCOMResult<bool>
async fn temp_comp(&self) -> ASCOMResult<bool>
Gets the state of temperature compensation mode (if available), else always False.
sourceasync fn set_temp_comp(&self, temp_comp: bool) -> ASCOMResult
async fn set_temp_comp(&self, temp_comp: bool) -> ASCOMResult
Sets the state of temperature compensation mode.
sourceasync fn temp_comp_available(&self) -> ASCOMResult<bool>
async fn temp_comp_available(&self) -> ASCOMResult<bool>
True if focuser has temperature compensation available.
sourceasync fn temperature(&self) -> ASCOMResult<f64>
async fn temperature(&self) -> ASCOMResult<f64>
Current ambient temperature as measured by the focuser.
sourceasync fn halt(&self) -> ASCOMResult
async fn halt(&self) -> ASCOMResult
Immediately stop any focuser motion due to a previous Move(Int32) method call.
sourceasync fn move_(&self, position: i32) -> ASCOMResult
async fn move_(&self, position: i32) -> ASCOMResult
Moves the focuser by the specified amount or to the specified position depending on the value of the Absolute property.