refactor(example): msl_altitude moved to geographic.h and the header file was moved to another dir in examples

This commit is contained in:
Mateusz Pusz
2023-05-15 12:56:11 +02:00
parent 929dc72f13
commit a9cb0c0a40
5 changed files with 48 additions and 39 deletions

View File

@@ -36,8 +36,8 @@
namespace {
using namespace geographic;
using namespace glide_computer;
using namespace mp_units;
auto get_gliders()
@@ -67,8 +67,8 @@ auto get_waypoints()
using namespace geographic::literals;
using namespace mp_units::international::unit_symbols;
static const std::array waypoints = {
waypoint{"EPPR", {54.24772_N, 18.6745_E}, altitude{16. * ft}}, // N54°14'51.8" E18°40'28.2"
waypoint{"EPGI", {53.52442_N, 18.84947_E}, altitude{115. * ft}} // N53°31'27.9" E18°50'58.1"
waypoint{"EPPR", {54.24772_N, 18.6745_E}, msl_altitude{16. * ft}}, // N54°14'51.8" E18°40'28.2"
waypoint{"EPGI", {53.52442_N, 18.84947_E}, msl_altitude{115. * ft}} // N53°31'27.9" E18°50'58.1"
};
return waypoints;
}