Add Rust core for Kalman Filter + Hidden State Inference during telemetry dropout
- Implements PowerSystemKalmanFilter for 5+ second connection loss handling
- Hidden state inference engine maps Kalman predictions to causal graph nodes
- Separates Rust implementation into rust_core/ folder with independent build
- Integrated with Python framework via subprocess calls and JSON output
- Includes comprehensive integration documentation
Features:
- PREDICT: Physics-based state evolution using power balance dynamics
- UPDATE: Measurement correction when telemetry resumes
- Confidence degradation: Exponential uncertainty tracking as dropout extends
- Type-safe matrix operations using nalgebra
- Deterministic, seeded for reproducible testing
Modules:
- kalman_filter.rs: Core Kalman Filter, TelemetryDropoutHandler
- hidden_state_inference.rs: HiddenStateInferenceEngine, causal graph mapping
- lib.rs: Module exports and public API
- main.rs: Standalone demo and testing
Building:
cd rust_core && cargo build --release
./target/release/pravaha_core
Physics:
- Power balance: dQ/dt = (P_solar * eff - P_load) / (capacity * 3600) * 100
- Voltage: V = V_nominal * (0.8 + 0.2 * SOC)
- State bounds: charge [20-100%], voltage [20-32V], solar [0-600W], efficiency [0.5-1.0]
This is a binary file and will not be displayed.
This is a binary file and will not be displayed.
This is a binary file and will not be displayed.
This is a binary file and will not be displayed.
This is a binary file and will not be displayed.
This is a binary file and will not be displayed.
This is a binary file and will not be displayed.
This is a binary file and will not be displayed.