1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
//! Sensor sample types.
//!
//! Each type is `#[repr(C)]` with a layout identical to the corresponding
//! C struct in `ekf2_wrapper.h` (validated by `static_assert` in the C++
//! translation unit).
//!
//! All types implement `Copy` and `Default` for ergonomic initialisation.
use ekf2_sys as ffi;
// ── Frame enums ───────────────────────────────────────────────────────────
pub use PositionFrame;
pub use VelocityFrame;
// ── IMU (always required) ─────────────────────────────────────────────────
pub use EkfImuSample as ImuSample;
// ── GNSS ──────────────────────────────────────────────────────────────────
pub use EkfGnssSample as GnssSample;
// ── Magnetometer ─────────────────────────────────────────────────────────
pub use EkfMagSample as MagSample;
// ── Barometer ─────────────────────────────────────────────────────────────
pub use EkfBaroSample as BaroSample;
// ── Airspeed ──────────────────────────────────────────────────────────────
pub use EkfAirspeedSample as AirspeedSample;
// ── Range finder ──────────────────────────────────────────────────────────
pub use EkfRangeSample as RangeSample;
// ── Optical flow ──────────────────────────────────────────────────────────
pub use EkfFlowSample as FlowSample;
// ── External vision ───────────────────────────────────────────────────────
pub use EkfExtVisionSample as ExtVisionSample;
// ── Auxiliary velocity ────────────────────────────────────────────────────
pub use EkfAuxVelSample as AuxVelSample;
// ── System flags ──────────────────────────────────────────────────────────
pub use EkfSystemFlagUpdate as SystemFlagUpdate;