pub struct AngularCalibration { /* private fields */ }
Expand description
Calibration data best suited for angular servos.
Implementations§
Source§impl AngularCalibration
impl AngularCalibration
pub fn new(min: Point, mid: Point, max: Point) -> Self
pub fn set_min_pulse(&mut self, pulse: f32)
pub fn min_pulse(&self) -> f32
pub fn set_mid_pulse(&mut self, pulse: f32)
pub fn mid_pulse(&self) -> f32
pub fn set_max_pulse(&mut self, pulse: f32)
pub fn max_pulse(&self) -> f32
Trait Implementations§
Source§impl CalibrationData for AngularCalibration
impl CalibrationData for AngularCalibration
const LEN: usize = 3usize
type Iterator<'a> = AngularCalibrationIter<'a>
Source§fn first(&self) -> Point
fn first(&self) -> Point
The first data point in the calibration data. This might overlap with
Self::penultimate.
Source§fn second(&self) -> Point
fn second(&self) -> Point
The second data point in the calibration data. This might overlap with
Self::last.
Source§fn penultimate(&self) -> Point
fn penultimate(&self) -> Point
The penultimate (just before last) data point in the calibration data.
This might overlap with Self::first.
Source§fn last(&self) -> Point
fn last(&self) -> Point
The last data point in the calibration data. This might overlap with
Self::second.
Source§impl Clone for AngularCalibration
impl Clone for AngularCalibration
Source§fn clone(&self) -> AngularCalibration
fn clone(&self) -> AngularCalibration
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for AngularCalibration
impl Default for AngularCalibration
impl Copy for AngularCalibration
Auto Trait Implementations§
impl Freeze for AngularCalibration
impl RefUnwindSafe for AngularCalibration
impl Send for AngularCalibration
impl Sync for AngularCalibration
impl Unpin for AngularCalibration
impl UnwindSafe for AngularCalibration
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more