pub struct PlaneSetpoint {
pub roll_rad: f32,
pub pitch_rad: f32,
pub thrust: f32,
pub transition: bool,
}Expand description
Wing-borne attitude target for a plane stabilizer, for Setpoint::Plane, in the
frame contract’s body frame (a tailsitter’s airplane
frame). Turns are coordinated, so there is no heading: the stabilizer derives the yaw rate
from bank and airspeed. The stabilizer saturates roll and pitch to its limits; NaN means
level.
Fields§
§roll_rad: f32Bank in radians, right wing down positive.
pitch_rad: f32Pitch in radians, nose up positive.
thrust: f32Linear throttle, 0.0 to 1.0, before the stabilizer’s thrust curve.
transition: boolA tailsitter transition ramp: pitch saturates at ±π/2, not the stabilizer’s limit, so
the ramp reaches its handover whatever the cruise limit (ArduPilot’s tailsitter ramps
past its pitch limits, Tailsitter_Transition::set_FW_roll_pitch).
Trait Implementations§
Source§impl Clone for PlaneSetpoint
impl Clone for PlaneSetpoint
impl Copy for PlaneSetpoint
Source§impl Debug for PlaneSetpoint
impl Debug for PlaneSetpoint
Source§impl Default for PlaneSetpoint
impl Default for PlaneSetpoint
Source§impl<'de> Deserialize<'de> for PlaneSetpoint
impl<'de> Deserialize<'de> for PlaneSetpoint
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 PlaneSetpoint
impl PartialEq for PlaneSetpoint
Source§impl Serialize for PlaneSetpoint
impl Serialize for PlaneSetpoint
impl StructuralPartialEq for PlaneSetpoint
Auto Trait Implementations§
impl Forget for PlaneSetpoint
impl Freeze for PlaneSetpoint
impl Move for PlaneSetpoint
impl RefUnwindSafe for PlaneSetpoint
impl Send for PlaneSetpoint
impl Sync for PlaneSetpoint
impl Unpin for PlaneSetpoint
impl UnsafeUnpin for PlaneSetpoint
impl UnwindSafe for PlaneSetpoint
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.