Skip to content

This C++ program simulates the flight of a projectile based on given factors.

License

Notifications You must be signed in to change notification settings

lorax42/projectile_sim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

projectile_sim

This program simulates the flight of a projectile based on given variables.
For flexibility the velocity vector is not reliant on the starting angle.
Otherwise use:

      /|
     / |
  v /  |
   /   |v0y
  /    |
 /     |
/a_____|
   v0x

cos(a)=v0x/v
sin(a)=v0y/v

Therefore: v0x=cos(a)*v
v0y=sin(a)*v

Dependencies

  • Unix like OS
  • gcc
  • cmake
  • libinih-dev
  • python3
    • matplotlib
    • pandas
    • sys

To define the variables edit the sim.ini file.

To build and run the program type:

$ ./build.sh
$ ./run.sh <filename>

This outputs data to filename.csv.

This file was last edited: 2024-11-30

About

This C++ program simulates the flight of a projectile based on given factors.

Resources

License

Stars

Watchers

Forks

Packages

No packages published