Rotator

Trait Rotator 

Source
pub trait Rotator:
    Device
    + Send
    + Sync {
Show 15 methods // Required methods fn is_moving<'this: 'async_trait, 'async_trait>( &'this self, ) -> ASCOMResultFuture<'async_trait, bool>; fn mechanical_position<'this: 'async_trait, 'async_trait>( &'this self, ) -> ASCOMResultFuture<'async_trait, f64>; fn position<'this: 'async_trait, 'async_trait>( &'this self, ) -> ASCOMResultFuture<'async_trait, f64>; fn reverse<'this: 'async_trait, 'async_trait>( &'this self, ) -> ASCOMResultFuture<'async_trait, bool>; fn set_reverse<'this: 'async_trait, 'async_trait>( &'this self, reverse: bool, ) -> ASCOMResultFuture<'async_trait, ()>; fn target_position<'this: 'async_trait, 'async_trait>( &'this self, ) -> ASCOMResultFuture<'async_trait, f64>; fn move_<'this: 'async_trait, 'async_trait>( &'this self, position: f64, ) -> ASCOMResultFuture<'async_trait, ()>; fn move_absolute<'this: 'async_trait, 'async_trait>( &'this self, position: f64, ) -> ASCOMResultFuture<'async_trait, ()>; fn move_mechanical<'this: 'async_trait, 'async_trait>( &'this self, position: f64, ) -> ASCOMResultFuture<'async_trait, ()>; fn sync<'this: 'async_trait, 'async_trait>( &'this self, position: f64, ) -> ASCOMResultFuture<'async_trait, ()>; // Provided methods fn can_reverse<'this: 'async_trait, 'async_trait>( &'this self, ) -> ASCOMResultFuture<'async_trait, bool> { ... } fn step_size<'this: 'async_trait, 'async_trait>( &'this self, ) -> ASCOMResultFuture<'async_trait, f64> { ... } fn halt<'this: 'async_trait, 'async_trait>( &'this self, ) -> ASCOMResultFuture<'async_trait, ()> { ... } fn interface_version<'this: 'async_trait, 'async_trait>( &'this self, ) -> ASCOMResultFuture<'async_trait, i32> { ... } fn device_state<'this: 'async_trait, 'async_trait>( &'this self, ) -> ASCOMResultFuture<'async_trait, TimestampedDeviceState<DeviceState>> { ... }
}
Available on crate feature rotator only.
Expand description

Rotator Specific Methods.

Required Methods§

Source

fn is_moving<'this: 'async_trait, 'async_trait>( &'this self, ) -> ASCOMResultFuture<'async_trait, 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.

Source

fn mechanical_position<'this: 'async_trait, 'async_trait>( &'this self, ) -> ASCOMResultFuture<'async_trait, f64>

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

Returns the raw mechanical position of the rotator in degrees.

Source

fn position<'this: 'async_trait, 'async_trait>( &'this self, ) -> ASCOMResultFuture<'async_trait, f64>

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

Current instantaneous Rotator position, in degrees.

Source

fn reverse<'this: 'async_trait, 'async_trait>( &'this self, ) -> ASCOMResultFuture<'async_trait, bool>

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

Returns the rotator’s Reverse state.

Source

fn set_reverse<'this: 'async_trait, 'async_trait>( &'this self, reverse: bool, ) -> ASCOMResultFuture<'async_trait, ()>

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

Sets the rotator’s Reverse state.

Source

fn target_position<'this: 'async_trait, 'async_trait>( &'this self, ) -> ASCOMResultFuture<'async_trait, f64>

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

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

Source

fn move_<'this: 'async_trait, 'async_trait>( &'this self, position: f64, ) -> ASCOMResultFuture<'async_trait, ()>

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

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

Source

fn move_absolute<'this: 'async_trait, 'async_trait>( &'this self, position: f64, ) -> ASCOMResultFuture<'async_trait, ()>

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

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

Source

fn move_mechanical<'this: 'async_trait, 'async_trait>( &'this self, position: f64, ) -> ASCOMResultFuture<'async_trait, ()>

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

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

Source

fn sync<'this: 'async_trait, 'async_trait>( &'this self, position: f64, ) -> ASCOMResultFuture<'async_trait, ()>

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

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

Provided Methods§

Source

fn can_reverse<'this: 'async_trait, 'async_trait>( &'this self, ) -> ASCOMResultFuture<'async_trait, bool>

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

True if the Rotator supports the Reverse method.

Source

fn step_size<'this: 'async_trait, 'async_trait>( &'this self, ) -> ASCOMResultFuture<'async_trait, f64>

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

The minimum StepSize, in degrees.

Source

fn halt<'this: 'async_trait, 'async_trait>( &'this self, ) -> ASCOMResultFuture<'async_trait, ()>

async fn halt(&self) -> ASCOMResult<()>

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

Source

fn interface_version<'this: 'async_trait, 'async_trait>( &'this self, ) -> ASCOMResultFuture<'async_trait, i32>

async fn interface_version(&self) -> ASCOMResult<i32>

This method returns the version of the ASCOM device interface contract to which this device complies.

Only one interface version is current at a moment in time and all new devices should be built to the latest interface version. Applications can choose which device interface versions they support and it is in their interest to support previous versions as well as the current version to ensure thay can use the largest number of devices.

Source

fn device_state<'this: 'async_trait, 'async_trait>( &'this self, ) -> ASCOMResultFuture<'async_trait, TimestampedDeviceState<DeviceState>>

Return all operational properties of this device.

See What is the “read all” feature and what are its rules?.

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 for dyn Rotator

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

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§