This repository contains a modular simulation model for vehicle dynamics, implemented in C. Each subsystem of the vehicle is designed as an independent module, promoting scalability and reusability. The project is structured to enable simulation of various vehicle subsystems, such as tire forces (more to be added).
- Modular Design: Subsystems are implemented as separate modules, such as
tireModel.c
, allowing for independent development and testing. - Flexibility: Easily extend the model by adding new subsystems or modifying existing ones.
- Interconnected Subsystems: Outputs from one module serve as inputs for others, enabling dynamic interaction between vehicle components.
📦 vehicleModel
├── 📂 src
│ ├── tireModel.c # Module for tire force calculations
│ └── utils.c # Common utility functions
├── 📂 include
│ ├── tireModel.h # Header for tire model
│ └── utils.h # Header for utilities
├── 📂 main
│ ├── vehicleModel.c # Main program for simulation
├── Makefile # Build automation script
└── README.md # Documentation
- Compiler: A C compiler such as GCC.
- Build System: Make (recommended for using the provided Makefile).
- Development Environment: Tested on Linux and Windows.
git clone https://github.com/saurabhvyas97/vehicleModel.git
cd vehicleModel
Run the following command to compile the project:
make
Execute the program:
./build/vehicleModel
Calculates tire forces (Lateral Fy) based on:
- Slip angle
- Normal load
Contributions are welcome!
To contribute:
- Fork the repository.
- Create a new branch:
git checkout -b feature/YourFeature
- Commit yor changes:
git commit -m "Add new feature"
- Push to the branch:
git push origin feature/YourFeature
- Open a pull request