-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.cpp
42 lines (31 loc) · 1.05 KB
/
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#include <iostream>
#include <vector>
#include "utils/Vector.hpp"
#include "utils/LinAlg.hpp"
#include "utils/coordinates.hpp"
#include "ballistic_rocket/modeling/RK4Solver.hpp"
#include "ballistic_rocket/system/BR3DRoundEarth.hpp"
#include "utils/file_input/ParametersInputter.hpp"
#include "utils/file_input/filenames.hpp"
#include "global/GlobalScope.hpp"
#include "global/Constants.hpp"
#include "core/Core.hpp"
int main() {
Core core;
Vector blhStart = core.getStartBLH();
auto blhEnd = core.calculateEndpoint();
std::cout << "Flight time: " << core.getFlightTime() << " s. \n";
blhStart[0] *= 180 / M_PI;
blhStart[1] *= 180 / M_PI;
blhEnd[0] *= 180 / M_PI;
blhEnd[1] *= 180 / M_PI;
std::cout << "Start point: " << blhStart
<< "\nEnd point: " << blhEnd << '\n';
std::ofstream heights("heights.txt");
for(auto const& distHeight : core.heights()) {
heights << distHeight.first << " " << distHeight.second << '\n';
}
heights.close();
std::cout << "\nFinished.\n";
return 0;
}