Skip to content

Commit

Permalink
fix(FMS): PROG Page REC MAX Upper Limit (#8424)
Browse files Browse the repository at this point in the history
* Change RECMaxCRZFL upper limit

Add new variable to not affect data entry into INIT and to correct RECMAX to maximum 398 instead of 390.
  • Loading branch information
markszutor committed Jan 21, 2024
1 parent 47871f4 commit f7df985
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class FMCMainDisplay extends BaseAirliners {
this.costIndex = undefined;
this.costIndexSet = undefined;
this.maxCruiseFL = undefined;
this.recMaxCruiseFL = undefined;
this.routeIndex = undefined;
this.coRoute = { routeNumber: undefined, routes: undefined };
this.perfTOTemp = undefined;
Expand Down Expand Up @@ -346,6 +347,7 @@ class FMCMainDisplay extends BaseAirliners {
this.costIndex = 0;
this.costIndexSet = false;
this.maxCruiseFL = 390;
this.recMaxCruiseFL = 398;
this.routeIndex = 0;
this.resetCoroute();
this._overridenFlapApproachSpeed = NaN;
Expand Down Expand Up @@ -4902,7 +4904,7 @@ class FMCMainDisplay extends BaseAirliners {
*/
//TODO: can this be an util?
getMaxFlCorrected(fl = this.getMaxFL()) {
return fl >= this.maxCruiseFL ? this.maxCruiseFL : fl;
return fl >= this.recMaxCruiseFL ? this.recMaxCruiseFL : fl;
}

// only used by trySetMinDestFob
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class FMCMainDisplay extends BaseAirliners {
this.costIndex = undefined;
this.costIndexSet = undefined;
this.maxCruiseFL = undefined;
this.recMaxCruiseFL = undefined;
this.routeIndex = undefined;
this.coRoute = { routeNumber: undefined, routes: undefined };
this.perfTOTemp = undefined;
Expand Down Expand Up @@ -346,6 +347,7 @@ class FMCMainDisplay extends BaseAirliners {
this.costIndex = 0;
this.costIndexSet = false;
this.maxCruiseFL = 390;
this.recMaxCruiseFL = 398;
this.routeIndex = 0;
this.resetCoroute();
this._overridenFlapApproachSpeed = NaN;
Expand Down Expand Up @@ -4902,7 +4904,7 @@ class FMCMainDisplay extends BaseAirliners {
*/
//TODO: can this be an util?
getMaxFlCorrected(fl = this.getMaxFL()) {
return fl >= this.maxCruiseFL ? this.maxCruiseFL : fl;
return fl >= this.recMaxCruiseFL ? this.recMaxCruiseFL : fl;
}

// only used by trySetMinDestFob
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class FMCMainDisplay extends BaseAirliners {
this.costIndex = undefined;
this.costIndexSet = undefined;
this.maxCruiseFL = undefined;
this.recMaxCruiseFL = undefined;
this.routeIndex = undefined;
this.coRoute = { routeNumber: undefined, routes: undefined };
this.perfTOTemp = undefined;
Expand Down Expand Up @@ -346,6 +347,7 @@ class FMCMainDisplay extends BaseAirliners {
this.costIndex = 0;
this.costIndexSet = false;
this.maxCruiseFL = 390;
this.recMaxCruiseFL = 398;
this.routeIndex = 0;
this.resetCoroute();
this._overridenFlapApproachSpeed = NaN;
Expand Down Expand Up @@ -4902,7 +4904,7 @@ class FMCMainDisplay extends BaseAirliners {
*/
//TODO: can this be an util?
getMaxFlCorrected(fl = this.getMaxFL()) {
return fl >= this.maxCruiseFL ? this.maxCruiseFL : fl;
return fl >= this.recMaxCruiseFL ? this.recMaxCruiseFL : fl;
}

// only used by trySetMinDestFob
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class FMCMainDisplay extends BaseAirliners {
this.costIndex = undefined;
this.costIndexSet = undefined;
this.maxCruiseFL = undefined;
this.recMaxCruiseFL = undefined;
this.routeIndex = undefined;
this.coRoute = { routeNumber: undefined, routes: undefined };
this.perfTOTemp = undefined;
Expand Down Expand Up @@ -346,6 +347,7 @@ class FMCMainDisplay extends BaseAirliners {
this.costIndex = 0;
this.costIndexSet = false;
this.maxCruiseFL = 390;
this.recMaxCruiseFL = 398;
this.routeIndex = 0;
this.resetCoroute();
this._overridenFlapApproachSpeed = NaN;
Expand Down Expand Up @@ -4902,7 +4904,7 @@ class FMCMainDisplay extends BaseAirliners {
*/
//TODO: can this be an util?
getMaxFlCorrected(fl = this.getMaxFL()) {
return fl >= this.maxCruiseFL ? this.maxCruiseFL : fl;
return fl >= this.recMaxCruiseFL ? this.recMaxCruiseFL : fl;
}

// only used by trySetMinDestFob
Expand Down

0 comments on commit f7df985

Please sign in to comment.