Skip to content

Add examples for Car line following and Platoon#6

Open
ChadliaJerad wants to merge 17 commits into
lf-lang:mainfrom
ChadliaJerad:carlinefollow-platoon
Open

Add examples for Car line following and Platoon#6
ChadliaJerad wants to merge 17 commits into
lf-lang:mainfrom
ChadliaJerad:carlinefollow-platoon

Conversation

@ChadliaJerad

Copy link
Copy Markdown
Contributor

This PR introduces a sensor-rich car model used in two examples: line following and platooning.

The car is equipped with 5 line sensors and 2 range finders (front and rear).

The model is designed in a modular and composable way, with the track defined in a separate model file for reuse and clarity.

  • CarLineFollow.lf implements a PD controller for line following using the line sensors. kpand kd can be frther tuned.
  • CarPlatoon.lf defines a platoon of three cars and applies the same control principles as the line follower.

The current platooning implementation is basic and does not yet exploit the range finders.

Next steps are extending and incorporating inter-vehicle spacing using front and rear distance measurements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants