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