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
impl Clone for ImageRecord
Source§fn clone(&self) -> ImageRecord
fn clone(&self) -> ImageRecord
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 moreAuto Trait Implementations§
impl Freeze for ImageRecord
impl RefUnwindSafe for ImageRecord
impl Send for ImageRecord
impl Sync for ImageRecord
impl Unpin for ImageRecord
impl UnwindSafe for ImageRecord
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<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