pub struct SensorOrientation {
pub bearing_offset_deg: f32,
pub elevation_offset_deg: f32,
pub roll_offset_deg: f32,
}Expand description
Sensor orientation relative to platform body frame
Uses standard aerospace convention:
- Bearing: 0 = forward (nose), 90 = right, 180 = aft, 270 = left
- Elevation: 0 = level, positive = up, negative = down
- Roll: 0 = upright, positive = clockwise when looking forward
Fields§
§bearing_offset_deg: f32Bearing offset from platform heading (degrees, 0-360) 0 = forward, 90 = starboard/right, 180 = aft, 270 = port/left
elevation_offset_deg: f32Elevation offset from platform level (degrees, -90 to +90) 0 = level with platform, positive = above horizon, negative = below
roll_offset_deg: f32Roll offset (degrees, -180 to +180) 0 = sensor upright, positive = clockwise rotation
Trait Implementations§
Source§impl Clone for SensorOrientation
impl Clone for SensorOrientation
Source§fn clone(&self) -> SensorOrientation
fn clone(&self) -> SensorOrientation
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 SensorOrientation
impl Debug for SensorOrientation
Source§impl Default for SensorOrientation
impl Default for SensorOrientation
Source§impl<'de> Deserialize<'de> for SensorOrientation
impl<'de> Deserialize<'de> for SensorOrientation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Message for SensorOrientation
impl Message for SensorOrientation
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for SensorOrientation
impl PartialEq for SensorOrientation
Source§fn eq(&self, other: &SensorOrientation) -> bool
fn eq(&self, other: &SensorOrientation) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SensorOrientation
impl Serialize for SensorOrientation
impl Copy for SensorOrientation
impl StructuralPartialEq for SensorOrientation
Auto Trait Implementations§
impl Freeze for SensorOrientation
impl RefUnwindSafe for SensorOrientation
impl Send for SensorOrientation
impl Sync for SensorOrientation
impl Unpin for SensorOrientation
impl UnsafeUnpin for SensorOrientation
impl UnwindSafe for SensorOrientation
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