https://github.com/winstxnhdw/tailgatingpid
Experimental velocity control based on a simple PID controller.
https://github.com/winstxnhdw/tailgatingpid
pid-control speed-controller velocity-control
Last synced: about 1 month ago
JSON representation
Experimental velocity control based on a simple PID controller.
- Host: GitHub
- URL: https://github.com/winstxnhdw/tailgatingpid
- Owner: winstxnhdw
- Created: 2021-06-20T21:23:07.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2023-03-14T20:48:01.000Z (about 2 years ago)
- Last Synced: 2025-02-05T07:30:00.499Z (3 months ago)
- Topics: pid-control, speed-controller, velocity-control
- Language: Python
- Homepage:
- Size: 36.9 MB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TailgatingPID
Experimental velocity control based on a simple PID controller. The line plot illustrates the change in distance between the two vehicles in every frame. The following two animations are the simulated experiments.
```yaml
:param accel: (float) vehicle's current velocity [m/s]
:param max_accel: (float) vehicle's maximum accleration [m/s^2]
:param gap: (float) vehicle's vehicle from the target [m]
:param prev_gap: (float) previous vehicle's distance from the target [m]
:param safety_thresh: (float) maximum allowable distance from the target [m]
:param dt: (float) discrete time period [s]:return desired_accel: (float) vehicle's desired velocity [m/s]
```
## Installation
> To run the animation, if not just install Numpy.
```bash
$ pip install -r requirements.txt
```## The Police Chase
![]()
## The Girlfriend
![]()