Inclinometer¶
Inclinometer
¶
Inclinometer(path: Path, logpath: str | None = None, sensor_type: Literal['kernel', 'imx5'] | None = None)
Unified inclinometer class that auto-detects and loads either Kernel-100 (binary) or IMX-5 (CSV) inclinometer data.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
str
|
Path to inclinometer file (for Kernel) or sensors directory (for IMX-5). |
required |
logpath
|
str
|
Path to log file for timing information. |
None
|
sensor_type
|
str
|
Force sensor type: 'kernel', 'imx5', or None for auto-detect. |
None
|
Source code in pils/sensors/inclinometer.py
load_data
¶
Load inclinometer data using the detected decoder.
Raises:
| Type | Description |
|---|---|
ValueError
|
If no inclinometer data found at path. |
Source code in pils/sensors/inclinometer.py
plot
¶
Plot roll, pitch, yaw over time.
Raises:
| Type | Description |
|---|---|
ValueError
|
If data not loaded. |