frk2 / opencaret

An open-source/open-data L3 highway autopilot system for modern cars. Initially being perfected on the Kia Soul EV
MIT License
57 stars 22 forks source link

Acceleration based PID controller. #17

Closed frk2 closed 5 years ago

frk2 commented 5 years ago

This PID controller uses IMU acceleration and a commanded accel to compute brake or accel given a tiny deadband and min/max values.

This is a simplistic implementation. A much better implementation can be had by fitting a model to the car.

Final testing would need to happen on the car. Will add a simplistic velocity planner as well (which can compute acceleration required)

Fixes #14