define the arrival waypoint
This commit is contained in:
@@ -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
|
||||
|
||||
37
src/types/ArrivalWaypoint.cpp
Normal file
37
src/types/ArrivalWaypoint.cpp
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user