Browse Source

add getter for the arrival waypoints

Sven Czarnian 3 years ago
parent
commit
874cc7871d
2 changed files with 27 additions and 0 deletions
  1. 15 0
      include/aman/types/ArrivalWaypoint.h
  2. 12 0
      src/types/ArrivalWaypoint.cpp

+ 15 - 0
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;
     };
 }

+ 12 - 0
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;
+}