pub struct QuadrotorLapReport {Show 14 fields
pub steps: usize,
pub gates_passed: usize,
pub laps_completed: usize,
pub lap_fraction: f64,
pub mean_speed: f64,
pub max_speed: f64,
pub path_length: f64,
pub gate_distance: f64,
pub min_aperture_margin: f64,
pub mean_tilt: f64,
pub max_tilt: f64,
pub mean_body_rate: f64,
pub first_lap_time: Option<f64>,
pub path: Vec<[f64; 3]>,
}Expand description
Lap-progress and attitude metrics from a quadrotor racing rollout.
Fields§
§steps: usizeControl steps executed.
gates_passed: usizeTotal gate passes across the whole rollout (counts repeated laps).
laps_completed: usizeWhole laps completed.
lap_fraction: f64Fraction of the current (partial) lap completed, in [0, 1).
mean_speed: f64Mean speed [m/s] over the rollout.
max_speed: f64Peak speed [m/s] over the rollout.
path_length: f64Executed path length [m].
gate_distance: f64Distance [m] to the active gate at the end of the rollout.
min_aperture_margin: f64Smallest normalized aperture margin at any gate crossing (1 = center,
0 = edge); INFINITY if no gate was crossed.
mean_tilt: f64Mean tilt angle [rad] of the thrust axis from world up.
max_tilt: f64Peak tilt angle [rad] of the thrust axis from world up.
mean_body_rate: f64Mean commanded body-rate magnitude [rad/s].
first_lap_time: Option<f64>Time [s] of the first completed lap, or None.
path: Vec<[f64; 3]>Executed positions, including the start.
Trait Implementations§
Source§impl Clone for QuadrotorLapReport
impl Clone for QuadrotorLapReport
Source§fn clone(&self) -> QuadrotorLapReport
fn clone(&self) -> QuadrotorLapReport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for QuadrotorLapReport
impl Debug for QuadrotorLapReport
Source§impl PartialEq for QuadrotorLapReport
impl PartialEq for QuadrotorLapReport
Source§fn eq(&self, other: &QuadrotorLapReport) -> bool
fn eq(&self, other: &QuadrotorLapReport) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for QuadrotorLapReport
Auto Trait Implementations§
impl Freeze for QuadrotorLapReport
impl RefUnwindSafe for QuadrotorLapReport
impl Send for QuadrotorLapReport
impl Sync for QuadrotorLapReport
impl Unpin for QuadrotorLapReport
impl UnsafeUnpin for QuadrotorLapReport
impl UnwindSafe for QuadrotorLapReport
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<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§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§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 more§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).§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.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.