pub struct MsgImuRaw {
    pub sender_id: Option<u16>,
    pub tow: u32,
    pub tow_f: u8,
    pub acc_x: i16,
    pub acc_y: i16,
    pub acc_z: i16,
    pub gyr_x: i16,
    pub gyr_y: i16,
    pub gyr_z: i16,
}
Expand description

Raw IMU data

Raw data from the Inertial Measurement Unit, containing accelerometer and gyroscope readings. The sense of the measurements are to be aligned with the indications on the device itself. Measurement units, which are specific to the device hardware and settings, are communicated via the MSG_IMU_AUX message. If using “time since startup” time tags, the receiving end will expect a MSG_GNSS_TIME_OFFSET when a PVT fix becomes available to synchronise IMU measurements with GNSS. The timestamp must wrap around to zero when reaching one week (604800 seconds).

The time-tagging mode should not change throughout a run.

Fields

sender_id: Option<u16>

The message sender_id

tow: u32

Milliseconds since reference epoch and time status.

tow_f: u8

Milliseconds since reference epoch, fractional part

acc_x: i16

Acceleration in the IMU frame X axis

acc_y: i16

Acceleration in the IMU frame Y axis

acc_z: i16

Acceleration in the IMU frame Z axis

gyr_x: i16

Angular rate around IMU frame X axis

gyr_y: i16

Angular rate around IMU frame Y axis

gyr_z: i16

Angular rate around IMU frame Z axis

Implementations

Gets the TimeStatus stored in the tow bitfield.

Returns Ok if the bitrange contains a known TimeStatus variant. Otherwise the value of the bitrange is returned as an Err(u8). This may be because of a malformed message, or because new variants of TimeStatus were added.

Set the bitrange corresponding to the TimeStatus of the tow bitfield.

Gets the time_since_reference_epoch_in_milliseconds stored in tow.

Sets the time_since_reference_epoch_in_milliseconds bitrange of tow.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

The message type.

The message name.

Formats the value using the given formatter. Read more

Converts to this type from the input type.

Get the message name.

Get the message type.

Get the sender_id if it is set.

Set the sender id.

Number of bytes this message will take on the wire.

The type returned in the event of a conversion error.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The resulting type after obtaining ownership.

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

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.