๐ openpilot
openpilot provides functionalities for building and simulating sensor models, GPS sensors, and Extended Kalman Filters (EKF) in Rust. It includes modules for representing sensor readings, simple sensors, GPS sensors, and a fast 1D Extended Kalman Filter (EKF) implementation.
๐ Quick Start
Get started with the openpilot library by following these simple steps:
- Install the
openpilotcrate by adding the following line to yourCargo.tomlfile:
[]
= "0.0.1"
- Import the necessary modules and use the provided functionality in your Rust project:
use ;
use ;
// Example usage
let data = arr2;
let obs_model = arr2;
let covar = arr2;
let sensor_reading = new;
// Create a simple sensor
let simple_sensor = new;
let reading = simple_sensor.read;
// Create a GPS sensor
let gps_sensor = GPSnew;
let latlon = &;
let reading = gps_sensor.read;
// Create and use a fast 1D Extended Kalman Filter
let mut fast_ekf_1d = new;
fast_ekf_1d.update_scalar;
fast_ekf_1d.predict;
let = fast_ekf_1d.calc_transfer_fun;
๐งช Testing
Run tests for the openpilot crate using:
๐ GitHub Repository
You can access the source code for the openpilot crate on GitHub.
๐ค Contributing
Contributions and feedback are welcome! If you'd like to contribute, report an issue, or suggest an enhancement, please engage with the project on GitHub. Your contributions help improve this crate for the community.
๐ Documentation
Full documentation for openpilot is available on docs.rs.
๐ License
This project is licensed under the MIT License.