-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathESHelper.cpp
More file actions
28 lines (25 loc) · 747 Bytes
/
ESHelper.cpp
File metadata and controls
28 lines (25 loc) · 747 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include "pch.h"
#include "ESHelper.h"
#include "settings.h"
#include "flightStrip.h"
#include <EuroScopePlugIn.h>
#include <string>
namespace ESHelper {
bool isAirborne(EuroScopePlugIn::CFlightPlan flightPlan) {
if (flightPlan.GetFPTrackPosition().GetPressureAltitude() > 500 && flightPlan.GetFPTrackPosition().GetReportedGS() > 50) {
return true;
}
else {
return false;
}
}
bool depOrArrival(EuroScopePlugIn::CFlightPlan flightPlan) {
return (flightPlan.GetDistanceFromOrigin() > flightPlan.GetDistanceToDestination());
}
bool isNearFPAirport(EuroScopePlugIn::CFlightPlan flightPlan) {
if (flightPlan.GetDistanceFromOrigin() < 25 || flightPlan.GetDistanceToDestination() < 25) {
return true;
}
return false;
}
}