This commit is contained in:
Kilian Hofmann 2024-09-27 17:13:53 +02:00
parent 368ccbb355
commit e71a8bc738
6 changed files with 1 additions and 1 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -94,7 +94,7 @@ float interp(float lower, float upper, float ratio) {
/// @param weight Weight in kilogrammes /// @param weight Weight in kilogrammes
/// @param tipTankPercent Lowest tip tank quantity (left/right) in percent /// @param tipTankPercent Lowest tip tank quantity (left/right) in percent
/// @param ci CI /// @param ci CI
/// @return Mach corresponding to CI /// @return Mach corresponding to CI. Returns -1 if not possible
float ci2mach(float altitude, float weight, float tipTankPercent, int ci) { float ci2mach(float altitude, float weight, float tipTankPercent, int ci) {
auto [lowerFl, upperFl, ratioFl] = boundAltitude(altitude); auto [lowerFl, upperFl, ratioFl] = boundAltitude(altitude);
auto [lowerWgt, upperWgt, ratioWgt] = boundWeight(weight); auto [lowerWgt, upperWgt, ratioWgt] = boundWeight(weight);