#include <flightEnvelopeCalculator.h>
Public Member Functions | |
bool | estimateEnvelope (const double &, const double &, const double &, const double &) |
Estimate flight envelope. | |
FlightEnvelopeCalculator (std::string name="default") | |
Custom constructor. | |
std::string | getAircraftName () |
Get the aircraft name. | |
std::vector< double > | getAltitudeData () |
Get the altitude data. | |
std::vector< double > | getMachData () |
Get the Mach data. | |
Friends | |
class | testEstimateEnvelopeCalculations |
A class which will calculate the flight envelope of an aircraft.
FlightEnvelopeCalculator::FlightEnvelopeCalculator | ( | std::string | name = "default" |
) |
Custom constructor.
Instatiate the class with an aircraft name
name | aircraft name |
bool FlightEnvelopeCalculator::estimateEnvelope | ( | const double & | vStall, | |
const double & | maxIAS, | |||
const double & | maxMach, | |||
const double & | serviceCeiling | |||
) |
Estimate flight envelope.
The flight envelope is estimated based on the aircraft stall speed, maximum idicated airspeed, maximum Mach number and service ceiling.
vStall | the aircraft's stalling speed [m/s] | |
maxIAS | the aircraft's maximum indicated airspeed [m/s] | |
maxMach | the aircraft's maximum Mach number | |
serviceCeiling | the aircraft's service ceiling [m] |
std::string FlightEnvelopeCalculator::getAircraftName | ( | ) | [inline] |
Get the aircraft name.
std::vector<double> FlightEnvelopeCalculator::getAltitudeData | ( | ) | [inline] |
Get the altitude data.
std::vector<double> FlightEnvelopeCalculator::getMachData | ( | ) | [inline] |
Get the Mach data.