Skip to content
This repository has been archived by the owner on May 16, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1436 from Working-Title-MSFS-Mods/cj4-prerelease-…
Browse files Browse the repository at this point in the history
…0.12.10

CJ4 Prerelease 0.12.10
  • Loading branch information
dga711 committed Nov 23, 2021
2 parents 39c5225 + 4eefe62 commit 6596073
Show file tree
Hide file tree
Showing 7 changed files with 55 additions and 18 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<AssetPackage Name="workingtitle-aircraft-cj4" Version="0.12.9">
<AssetPackage Name="workingtitle-aircraft-cj4" Version="0.12.10">
<ItemSettings>
<ContentType>CUSTOM</ContentType>
<Title>CJ4</Title>
Expand Down
2 changes: 1 addition & 1 deletion PackageDefinitions/workingtitle-aircraft-cj4.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<AssetPackage Name="workingtitle-aircraft-cj4" Version="0.12.9">
<AssetPackage Name="workingtitle-aircraft-cj4" Version="0.12.10">
<ItemSettings>
<ContentType>CUSTOM</ContentType>
<Title>CJ4</Title>
Expand Down
14 changes: 5 additions & 9 deletions docs/workingtitle-cj4/CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Working Title CJ4 v0.12.9
Welcome to the Working Title CJ4 v0.12.9. This version brings compatibility for MSFS Sim Update 7, as well as a number of other enhancements and small fixes.
# Working Title CJ4 v0.12.10
Welcome to the Working Title CJ4 v0.12.10. This version contains a few important fixes for bugs found since the SU7 release.

Thanks to everyone, as always, for your contributions! We really love working with you all.

Expand All @@ -20,13 +20,9 @@ Installation is easy, simply copy the `workingtitle-aircraft-cj4` folder inside

**Important: We recommend that you fully delete the previous `workingtitle-aircraft-cj4` folder before copying this release.**

# General Changes
- SU7 Compatibility
- Adjustments to default screen brightness. (Thanks @charles-vomacka)
- Improved stroke fix for some cyan text displays on the PFD to make them more readable. (Thanks @charles-vomacka)
- Fix COM switch buttons on the audio panel.
- FMS now also accepts input from Co-Pilot keypad.

## Fixes
- Fixed an issue where ILS would not auto-tune, auto-switch, or track for some ILS frequencies
- LNAV should no longer fail to provide guidance while a flight plan change is pending execution

## ⚠️ Known Issues
* Wing Light Button does not light up.
Expand Down
41 changes: 41 additions & 0 deletions docs/workingtitle-cj4/Working Title CJ4 v0.12.9 Changes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Working Title CJ4 v0.12.9
Welcome to the Working Title CJ4 v0.12.9. This version brings compatibility for MSFS Sim Update 7, as well as a number of other enhancements and small fixes.

Thanks to everyone, as always, for your contributions! We really love working with you all.

## Note about Liveries
To accommodate for future work on the CJ4 there have been model changes made to the plane in SU7. This means that all liveries that still fully override panel.cfg with their own version (which they really shouldn't) won't work anymore.
You will notice a bad livery or other mods interferring by having all white screens in the cockpit.

Liveries should use the method as described in our [Repainter's Guide](https://www.workingtitle.aero/packages/cj4/guides/repainter).
Many liveries already use that method and should work alright after the update.

## READ THE GUIDE
Please, please, please read the operators guide for instructions on using features. A lot of hard work went into writing the guide and the Discord channels are clogged with questions that are readily answered in the guide.

GUIDES: https://www.workingtitle.aero/packages/cj4/guides/

## Installation
Installation is easy, simply copy the `workingtitle-aircraft-cj4` folder inside the zip file to your MSFS Community folder.

**Important: We recommend that you fully delete the previous `workingtitle-aircraft-cj4` folder before copying this release.**

# General Changes
- SU7 Compatibility
- Adjustments to default screen brightness. (Thanks @charles-vomacka)
- Improved stroke fix for some cyan text displays on the PFD to make them more readable. (Thanks @charles-vomacka)
- Fix COM switch buttons on the audio panel.
- FMS now also accepts input from Co-Pilot keypad.


## ⚠️ Known Issues
* Wing Light Button does not light up.
* The Lower CCP LONG Press does not work for reselecting charts - we will look further at this.
* B/C button throws an error in the FMC - do not use B/C for now.
* Some "lettered" or non-runway-specific approaches now appear as something like RNAV A - 00 and do not allow the selection of a landing runway, preventing using the Approach Refs page - this is something we will be working to address in the future.
* Some external applications that use the GPS/Flight plan SimVars may not function correctly or as expected when FP Sync is off.
* Loading and saving flights can have bad results.
* Custom liveries can render FADEC inoperative if they ship with a panel.cfg. Painters should reference our new [Repainter's Guide](https://www.workingtitle.aero/packages/cj4/guides/repainter) for solutions.
* Autopilot modes cannot be triggered via key bindings or controllers and must currently be triggered in the cockpit with the mouse. External binding applications are adding support for LVars and HEvents. Used SimVars are documented in our [Guide on SimVars](https://www.workingtitle.aero/packages/cj4/guides/simvars).
* Sometimes a heading to altitude instruction on takeoff will display further than the first RNAV fix on an RNAV departure procedure; in these cases the workaround is to cross-check the DP chart and remove the erroneous waypoint either by deleting the heading to altitude fix or dropping the first RNAV fix onto the magenta line in the LEGS page.
* Due to sim autopilot bank rate limitations, the aircraft may overshoot on certain RNP approaches with tight turns. If you encounter this, we recommend hand flying the approach with the given lateral and vertical guidance.
Original file line number Diff line number Diff line change
Expand Up @@ -1269,7 +1269,7 @@ class CJ4_FMC_InitRefIndexPage {
["Working-Title-MSFS-Mods[white s-text]"],
[""],
[" VERSION[blue]"],
["0.12.9[s-text white]"],
["0.12.10[s-text white]"],
[""],
[""],
[""],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -277,11 +277,11 @@ class LNavDirector {
this.sequencingMode = FlightPlanSequencing.INHIBIT;

this.state = LNavState.TURN_COMPLETING;
this.fpm.setActiveWaypointIndex(this.activeFlightPlan.activeWaypointIndex + 1);
this.fpm.setActiveWaypointIndex(this.activeFlightPlan.activeWaypointIndex + 1, EmptyCallback.Void, 0);
}
else {
this.state = LNavState.TURN_COMPLETING;
this.fpm.setActiveWaypointIndex(this.activeFlightPlan.activeWaypointIndex + 1);
this.fpm.setActiveWaypointIndex(this.activeFlightPlan.activeWaypointIndex + 1, EmptyCallback.Void, 0);
}
}
}
Expand All @@ -297,8 +297,8 @@ class LNavDirector {

const nextWaypointIndex = this.activeFlightPlan.activeWaypointIndex + 1;

this.fpm.setActiveWaypointIndex(nextWaypointIndex);
this.fpm.clearDiscontinuity(nextWaypointIndex - 1);
this.fpm.setActiveWaypointIndex(nextWaypointIndex, EmptyCallback.Void, 0);
this.fpm.clearDiscontinuity(nextWaypointIndex - 1, 0);
}

this.sequencingMode = FlightPlanSequencing.AUTO;
Expand Down
4 changes: 2 additions & 2 deletions src/wtsdk/src/flightplanning/FlightPlanManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1047,8 +1047,8 @@ export class FlightPlanManager {
* Clears a discontinuity from the end of a waypoint.
* @param index
*/
public clearDiscontinuity(index: number): void {
const currentFlightPlan = this._flightPlans[this._currentFlightPlanIndex];
public clearDiscontinuity(index: number, fplnIndex = this._currentFlightPlanIndex): void {
const currentFlightPlan = this._flightPlans[fplnIndex];
const waypoint = currentFlightPlan.getWaypoint(index);

if (waypoint !== undefined) {
Expand Down

0 comments on commit 6596073

Please sign in to comment.