From 874cc7871dfee8109f6aefcbf2d39ae3a3a3b8bf Mon Sep 17 00:00:00 2001 From: Sven Czarnian Date: Thu, 25 Nov 2021 22:25:11 +0100 Subject: [PATCH] add getter for the arrival waypoints --- include/aman/types/ArrivalWaypoint.h | 15 +++++++++++++++ src/types/ArrivalWaypoint.cpp | 12 ++++++++++++ 2 files changed, 27 insertions(+) diff --git a/include/aman/types/ArrivalWaypoint.h b/include/aman/types/ArrivalWaypoint.h index ad6a206..8d74e5a 100644 --- a/include/aman/types/ArrivalWaypoint.h +++ b/include/aman/types/ArrivalWaypoint.h @@ -52,5 +52,20 @@ namespace aman { * @return The position */ const GeoCoordinate& position() const noexcept; + /** + * @brief Returns the planned altitude + * @return The planned altitude + */ + const Length& altitude() const noexcept; + /** + * @brief Returns the indicated airspeed + * @return The indicated airspeed + */ + const Velocity& indicatedAirspeed() const noexcept; + /** + * @brief Returns the planned arrival time + * @return The planned arrival time + */ + const UtcTime::Point& plannedArrivalTime() const noexcept; }; } diff --git a/src/types/ArrivalWaypoint.cpp b/src/types/ArrivalWaypoint.cpp index 1c1e1f8..1a3967e 100644 --- a/src/types/ArrivalWaypoint.cpp +++ b/src/types/ArrivalWaypoint.cpp @@ -35,3 +35,15 @@ const std::string& ArrivalWaypoint::name() const noexcept { const GeoCoordinate& ArrivalWaypoint::position() const noexcept { return this->m_position; } + +const Length& ArrivalWaypoint::altitude() const noexcept { + return this->m_altitude; +} + +const Velocity& ArrivalWaypoint::indicatedAirspeed() const noexcept { + return this->m_indicatedAirspeed; +} + +const UtcTime::Point& ArrivalWaypoint::plannedArrivalTime() const noexcept { + return this->m_plannedArrivalTime; +}