Skip to content

Commit

Permalink
PerformanceModel: limit maximum climbrate to expected climbrate at se…
Browse files Browse the repository at this point in the history
…rvice

ceiling

Signed-off-by: RomanBapst <[email protected]>
  • Loading branch information
RomanBapst committed Oct 3, 2023
1 parent 4f6dba7 commit 3512d37
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ float PerformanceModel::getMaximumClimbRate(float air_density) const
(CONSTANTS_AIR_DENSITY_SEA_LEVEL_15C -
density_min), 0.0f);
const float delta_rho = air_density - CONSTANTS_AIR_DENSITY_SEA_LEVEL_15C;
climbrate_max = _param_fw_t_clmb_max.get() + density_gradient * delta_rho;
climbrate_max = math::max(_param_fw_t_clmb_max.get() + density_gradient * delta_rho, kClimbrateMin);
}

return climbrate_max / getWeightRatio();
Expand Down

0 comments on commit 3512d37

Please sign in to comment.