define the arrival waypoint

This commit is contained in:
Sven Czarnian
2021-11-22 16:18:47 +01:00
parent 155a035a9c
commit 2240978b01
3 changed files with 95 additions and 0 deletions

View File

@@ -46,6 +46,7 @@ SET(SOURCE_CONFIG_FILES
)
SET(SOURCE_TYPES_FILES
types/ArrivalWaypoint.cpp
types/GeoCoordinate.cpp
)
@@ -73,6 +74,7 @@ SET(INCLUDE_HELPER_FILES
SET(INCLUDE_TYPES_FILES
${CMAKE_SOURCE_DIR}/include/aman/types/AltitudeWindData.h
${CMAKE_SOURCE_DIR}/include/aman/types/ArrivalWaypoint.h
${CMAKE_SOURCE_DIR}/include/aman/types/Communication.h
${CMAKE_SOURCE_DIR}/include/aman/types/GeoCoordinate.h
${CMAKE_SOURCE_DIR}/include/aman/types/Quantity.hpp

View File

@@ -0,0 +1,37 @@
/*
* Author:
* Sven Czarnian <devel@svcz.de>
* Brief:
* Implements the waypoint
* Copyright:
* 2020-2021 Sven Czarnian
* License:
* GNU General Public License v3 (GPLv3)
*/
#include <aman/types/ArrivalWaypoint.h>
using namespace aman;
ArrivalWaypoint::ArrivalWaypoint() noexcept :
m_name(),
m_position(),
m_altitude(),
m_indicatedAirspeed(),
m_plannedArrivalTime() { }
ArrivalWaypoint::ArrivalWaypoint(const std::string& name, const GeoCoordinate& position, const Length& altitude,
const Velocity& indicatedAirspeed, const UtcTime::Point& pta) :
m_name(name),
m_position(position),
m_altitude(altitude),
m_indicatedAirspeed(indicatedAirspeed),
m_plannedArrivalTime(pta) { }
const std::string& ArrivalWaypoint::name() const noexcept {
return this->m_name;
}
const GeoCoordinate& ArrivalWaypoint::position() const noexcept {
return this->m_position;
}