pub struct CruiseOutput {
pub thrust: f32,
pub moments: Vec3,
}Expand description
A lift+cruise VTOL’s cruise output (ControlOutput::cruise): what its pusher and
control surfaces fly while the lift rotors fly ControlOutput::thrust and
ControlOutput::moments.
§Examples
use stable_flight::{CruiseOutput, Vec3};
// Pusher at 60%, ailerons rolling right.
let cruise = CruiseOutput { thrust: 0.6, moments: Vec3::new(0.2, 0.0, 0.0) };Fields§
§thrust: f32The pusher’s normalized thrust, in [0, 1].
moments: Vec3The control surfaces’ roll (x), pitch (y), and yaw (z) moments, each in [-1, 1].
Trait Implementations§
Source§impl Clone for CruiseOutput
impl Clone for CruiseOutput
impl Copy for CruiseOutput
Source§impl Debug for CruiseOutput
impl Debug for CruiseOutput
Source§impl Default for CruiseOutput
impl Default for CruiseOutput
Source§impl<'de> Deserialize<'de> for CruiseOutput
impl<'de> Deserialize<'de> for CruiseOutput
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CruiseOutput
impl PartialEq for CruiseOutput
Source§impl Serialize for CruiseOutput
impl Serialize for CruiseOutput
impl StructuralPartialEq for CruiseOutput
Auto Trait Implementations§
impl Freeze for CruiseOutput
impl RefUnwindSafe for CruiseOutput
impl Send for CruiseOutput
impl Sync for CruiseOutput
impl Unpin for CruiseOutput
impl UnsafeUnpin for CruiseOutput
impl UnwindSafe for CruiseOutput
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.