Skip to content

saurabhvyas97/vehicleModel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vehicle Model Simulation

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).


Features

  • 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.

Repository Structure

📦 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  

Prerequisites

  • Compiler: A C compiler such as GCC.
  • Build System: Make (recommended for using the provided Makefile).
  • Development Environment: Tested on Linux and Windows.

Getting Started

1. Clone the Repository

git clone https://github.com/saurabhvyas97/vehicleModel.git  
cd vehicleModel  

2. Build the Project

Run the following command to compile the project:

make

3. Run the Simulation

Execute the program:

./build/vehicleModel

Modules

Tire Model (tireModel.c)

Calculates tire forces (Lateral Fy) based on:

  • Slip angle
  • Normal load

Contributions

Contributions are welcome!

To contribute:

  1. Fork the repository.
  2. Create a new branch:
git checkout -b feature/YourFeature
  1. Commit yor changes:
git commit -m "Add new feature"
  1. Push to the branch:
git push origin feature/YourFeature
  1. Open a pull request

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published