Skip to content

Commit

Permalink
Fixes the visibility on the lidar payload struct. (#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
gbin authored Dec 5, 2024
1 parent dc7dd75 commit 4410369
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions components/payloads/cu_sensor_payloads/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ impl<'de> BorrowDecode<'de> for Reflectivity {
}

#[derive(Default, PartialEq, Debug, Copy, Clone, Add, Deref, Sub, From, Mul, Div)]
pub struct Distance(Length);
pub struct Distance(pub Length);

/// Encode it as a f32 in m
impl Encode for Distance {
Expand Down Expand Up @@ -67,12 +67,12 @@ impl<'de> BorrowDecode<'de> for Distance {
/// important: The ToV of the points are not assumed to be sorted.
#[derive(Default, Clone, Encode, Decode, PartialEq, Debug, Soa)]
pub struct PointCloud {
tov: CuTime, // Time of Validity, not sorted.
x: Distance,
y: Distance,
z: Distance,
i: Reflectivity,
return_order: u8, // 0 for first return, 1 for second return, etc.
pub tov: CuTime, // Time of Validity, not sorted.
pub x: Distance,
pub y: Distance,
pub z: Distance,
pub i: Reflectivity,
pub return_order: u8, // 0 for first return, 1 for second return, etc.
}

impl PointCloud {
Expand Down

0 comments on commit 4410369

Please sign in to comment.