Skip to content

Sensors

Defined in: tick_input.rs:80

pub struct Sensors {
pub magnetometers: Vec<MagneticFieldBody>,
pub gyroscopes: Vec<AngularVelocityBody>,
pub star_trackers: Vec<AttitudeBodyToInertial>,
}

Sensor readings evaluated at the current tick instant.

Each field is a Vec — empty means no sensor of that type is configured. Index order is stable (config definition order) and does not change during a simulation run.

magnetometers: [Vec<MagneticFieldBody>](https://doc.rust-lang.org/std/vec/struct.Vec.html)

Magnetometer readings. Pre-evaluated once per tick.


gyroscopes: [Vec<AngularVelocityBody>](https://doc.rust-lang.org/std/vec/struct.Vec.html)

Gyroscope readings.


star_trackers: [Vec<AttitudeBodyToInertial>](https://doc.rust-lang.org/std/vec/struct.Vec.html)

Star tracker readings.


fn empty() -> Self

Construct an empty set of readings (no sensors configured).