pub struct Lead {
pub d_rel: f64,
pub y_rel: f64,
pub v_rel: f64,
pub a_rel: f64,
pub v_lead: f64,
pub a_lead: f64,
pub d_path: f64,
pub v_lat: f64,
pub v_lead_k: f64,
pub a_lead_k: f64,
pub status: bool,
pub fcw: bool,
}Expand description
Represents a lead vehicle.
Fields§
§d_rel: f64Relative longitudinal distance to the lead vehicle.
y_rel: f64Negative lateral distance to the lead vehicle.
v_rel: f64Relative speed to the lead vehicle.
a_rel: f64Relative acceleration to the lead vehicle.
v_lead: f64Lead vehicle speed.
a_lead: f64Lead vehicle acceleration.
d_path: f64Computed distance to the path.
v_lat: f64Filtered lateral velocity.
v_lead_k: f64Kalman filter predicted lead vehicle speed.
a_lead_k: f64Kalman filter predicted lead vehicle acceleration.
status: boolStatus indicating the presence of a lead vehicle.
fcw: boolForward Collision Warning (FCW) status.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Lead
impl RefUnwindSafe for Lead
impl Send for Lead
impl Sync for Lead
impl Unpin for Lead
impl UnwindSafe for Lead
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> 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