pub struct PlanarTelemetry {
pub forward: Vec2,
pub right: Vec2,
pub speed: f32,
pub forward_speed: f32,
pub lateral_speed: f32,
pub slip_angle: f32,
pub turn_rate: f32,
}Expand description
A planar motor snapshot produced by PlanarState::telemetry.
Distances use host world units; angles are radians and rates use seconds.
Fields§
§forward: Vec2Unit heading; yaw zero faces positive Y in the motor’s 2D plane.
right: Vec2Unit right direction; yaw zero has positive X on its right.
speed: f32Nonnegative velocity magnitude in world units per second.
forward_speed: f32Signed velocity along the heading; negative means reversing.
lateral_speed: f32Signed velocity to the right; negative means sliding left.
slip_angle: f32Velocity angle relative to forward, in [-PI, PI], positive to the right.
Exactly stationary motion reports zero; straight reverse reports +/- PI.
turn_rate: f32Current smoothed yaw rate in radians per second.
Trait Implementations§
Source§impl Clone for PlanarTelemetry
impl Clone for PlanarTelemetry
Source§fn clone(&self) -> PlanarTelemetry
fn clone(&self) -> PlanarTelemetry
Returns a duplicate of the value. Read more
1.0.0 · 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 PlanarTelemetry
impl Debug for PlanarTelemetry
Source§impl PartialEq for PlanarTelemetry
impl PartialEq for PlanarTelemetry
impl Copy for PlanarTelemetry
impl StructuralPartialEq for PlanarTelemetry
Auto Trait Implementations§
impl Freeze for PlanarTelemetry
impl RefUnwindSafe for PlanarTelemetry
impl Send for PlanarTelemetry
impl Sync for PlanarTelemetry
impl Unpin for PlanarTelemetry
impl UnwindSafe for PlanarTelemetry
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