Struct ImageRecord

Source
pub struct ImageRecord {
Show 25 fields pub header: CIHeader, pub version: u16, pub image_version: u16, pub range_start: u32, pub range_end: u32, pub range_compression: u16, pub bearing_start: u32, pub bearing_end: u32, pub compression_type: u16, pub data_ptr: u32, pub data_size: u32, pub bearing_table: Vec<f64>, pub state_flags: u32, pub modulation_frequency: u32, pub beam_form_app: f32, pub db_tx_time: DateTime<Utc>, pub ping_flags: u16, pub sos_at_xd: f32, pub percent_gain: u16, pub chirp: u8, pub sonar_type: u8, pub platform: u8, pub record_size: u32, pub image_width: u32, pub image_height: u32,
}
Expand description

The image record holds all the information on a single frame / image from the sonar, including the starting position in the byte array for this image.

Fields§

§header: CIHeader

The CIHeader

§version: u16

Version number

§image_version: u16

Image version number.

§range_start: u32

The starting range in metres.

§range_end: u32

End of the range in metres.

§range_compression: u16

Range compression.

§bearing_start: u32

Starting bearing in degrees.

§bearing_end: u32

Ending bearing in degrees.

§compression_type: u16

Compression type.

§data_ptr: u32

Pointer into the data buffer.

§data_size: u32

The number of bytes to read.

§bearing_table: Vec<f64>

The bearing table for this image.

§state_flags: u32

Any state flags.

§modulation_frequency: u32

Modulation frequency.

§beam_form_app: f32

Beam forming

§db_tx_time: DateTime<Utc>

The transmission time in UTC

§ping_flags: u16

Any ping flags.

§sos_at_xd: f32

sos at xd.

§percent_gain: u16

Percentage gain.

§chirp: u8

CHIRP mode on?

§sonar_type: u8

The type of the sonar.

§platform: u8

The platform id.

§record_size: u32

Size of the record.

§image_width: u32

The width of the image in pixels.

§image_height: u32

The height of the image in pixels.

Trait Implementations§

Source§

impl Clone for ImageRecord

Source§

fn clone(&self) -> ImageRecord

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.