Skip to content
Snippets Groups Projects
Commit 97786e33 authored by Andi's avatar Andi
Browse files

Merge branch 'fix/systems_design_range_error' into 'develop'

Fix boundaries of performance values in systems design

See merge request !20
parents df60036a b73ebbfa
No related branches found
No related tags found
5 merge requests!263Apply 1 suggestion(s) to 1 file(s),!261Reintruduced automatic flight condition selection,!245Apply 1 suggestion(s) to 1 file(s),!233Initial open source version,!20Fix boundaries of performance values in systems design
......@@ -462,16 +462,16 @@ void systemsIOData::readCGComponents(const node& acxml) {
void systemsIOData::readPerformance(const node& acxml) {
data.Performance.VMO = EndnodeReadOnly<double>(
"/aircraft_exchange_file/requirements_and_specifications/requirements/top_level_aircraft_requirements/flight_envelope/maximum_operating_velocity").read(acxml).value();
checkBoundaries("Performance VMO", data.Performance.VMO, 0., 250.);
checkBoundaries("Performance VMO", data.Performance.VMO, 0., 700.);
data.Performance.MMO = EndnodeReadOnly<double>(
"/aircraft_exchange_file/requirements_and_specifications/requirements/top_level_aircraft_requirements/flight_envelope/maximum_operating_mach_number").read(acxml).value();
checkBoundaries("Performance MMO", data.Performance.MMO, 0.2, 1.5);
data.Performance.MOA = EndnodeReadOnly<double>(
"/aircraft_exchange_file/requirements_and_specifications/requirements/top_level_aircraft_requirements/flight_envelope/maximum_operating_altitude").read(acxml).value();
checkBoundaries("Performance MOA", data.Performance.MOA, 10000., 60000.);
checkBoundaries("Performance MOA", data.Performance.MOA, 3000., 20000.);
data.Performance.designRange = EndnodeReadOnly<double>(
"/aircraft_exchange_file/requirements_and_specifications/requirements/top_level_aircraft_requirements/design_mission/range").read(acxml).value();
checkBoundaries("Performance design range", data.Performance.designRange, 0., 5000000.);
checkBoundaries("Performance design range", data.Performance.designRange, 0., 55000000.);
}
void systemsIOData::readAccomodation(const node& acxml) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment