Struct sbp::messages::imu::MsgImuRaw[][src]

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

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

Performs the conversion.

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

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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.