Skip to content
Snippets Groups Projects

1st Loop namespace and functions created

Merged gPauls-TUHH requested to merge fix/1stLoop_design_mission into develop
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
@@ -89,8 +89,8 @@ void standard_mission::set_trip_fuel(double *aircraft_mass) {
this->landing_fuel_mass[energy_carrier.first] = 0.;
}
/* If possible, use the trip fuel from the previous run */
if (!((EndnodeReadOnly<bool>("program_settings/general/fuel_planning/fuel_estimation/fuel_estimation_switch").read(this->rtIO->moduleConfig).value()) &&
this->get_fuel_sum(this->previous_trip_fuel_mass) > 10.) && // If global estimate_fuel_calculation is turned on, skip this
if (!(EndnodeReadOnly<bool>("program_settings/general/fuel_planning/fuel_estimation/fuel_estimation_switch").read(this->rtIO->moduleConfig).value()) &&
this->get_fuel_sum(this->previous_trip_fuel_mass) > 10. && // If global estimate_fuel_calculation is turned on, skip this
!EndnodeReadOnly<bool>("program_settings/mode/mission_methods/estimate_fuel_calculation").read(rtIO->moduleConfig).value()) {
this->trip_fuel_mass = this->previous_trip_fuel_mass;
} else {
Loading