pub struct RacingLapReport3D {
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_control_effort: f64,
pub first_lap_time: Option<f64>,
pub path: Vec<[f64; 3]>,
}Expand description
Lap-progress metrics from a closed-loop 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 drone speed [m/s] over the rollout.
max_speed: f64Peak drone speed [m/s] over the rollout.
path_length: f64Executed path length [m].
gate_distance: f64Distance [m] to the currently active gate at the end of the rollout.
min_aperture_margin: f64Smallest normalized aperture margin seen at any gate crossing (1 = dead
center, 0 = edge); INFINITY if no gate was crossed.
mean_control_effort: f64Mean commanded acceleration magnitude [m/s^2].
first_lap_time: Option<f64>Time [s] of the first completed lap, or None if no lap finished.
path: Vec<[f64; 3]>Executed drone positions, including the start.
Trait Implementations§
Source§impl Clone for RacingLapReport3D
impl Clone for RacingLapReport3D
Source§fn clone(&self) -> RacingLapReport3D
fn clone(&self) -> RacingLapReport3D
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 RacingLapReport3D
impl Debug for RacingLapReport3D
Source§impl PartialEq for RacingLapReport3D
impl PartialEq for RacingLapReport3D
Source§fn eq(&self, other: &RacingLapReport3D) -> bool
fn eq(&self, other: &RacingLapReport3D) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RacingLapReport3D
Auto Trait Implementations§
impl Freeze for RacingLapReport3D
impl RefUnwindSafe for RacingLapReport3D
impl Send for RacingLapReport3D
impl Sync for RacingLapReport3D
impl Unpin for RacingLapReport3D
impl UnsafeUnpin for RacingLapReport3D
impl UnwindSafe for RacingLapReport3D
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.