#[repr(C, packed(1))]pub struct Column {
pub timestamp: u64,
pub measurement_id: u16,
pub frame_id: u16,
pub encoder_ticks: u32,
pub pixels: [Pixel; 64],
pub raw_valid: u32,
}Expand description
Represents a list of Pixels along with meta data.
Fields§
§timestamp: u64Unix timestamp in nanoseconds.
measurement_id: u16The column index.
frame_id: u16The frame index.
encoder_ticks: u32Clockwise encoder count of rotation motor ranging from 0 to ENCODER_TICKS_PER_REV (exclusive).
pixels: [Pixel; 64]Array of pixels.
raw_valid: u32Packet validility mark. True if value is 0xffffffff.
Implementations§
Source§impl Column
impl Column
Sourcepub fn datetime(&self) -> NaiveDateTime
pub fn datetime(&self) -> NaiveDateTime
Construct NaiveDateTime object from column timestamp.
pub fn time(&self) -> Time
Sourcepub fn azimuth_angle_degrees(&self) -> f64
pub fn azimuth_angle_degrees(&self) -> f64
Compute azimuth angle in degrees from encoder ticks.
Sourcepub fn azimuth_angle_radians(&self) -> f64
pub fn azimuth_angle_radians(&self) -> f64
Compute azimuth angle in radians from encoder ticks.
pub fn azimuth_angle(&self) -> Angle
Trait Implementations§
impl Copy for Column
impl Eq for Column
impl StructuralPartialEq for Column
Auto Trait Implementations§
impl Freeze for Column
impl RefUnwindSafe for Column
impl Send for Column
impl Sync for Column
impl Unpin for Column
impl UnwindSafe for Column
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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