This is the C version of Gravity Turn from MATLAB Examples Orbital Mechanics - "Example_11_03"
And I use ChatGPT for implementing rkf45 method (Runge-Kutta-Fehlberg)
I also add configuration file to easily modify and adjust these settings without having to modify the code itself, providing flexibility and easier maintenance.