Skip to content

Commit

Permalink
fix config warning unsync
Browse files Browse the repository at this point in the history
fix config warning unsync by checking n1(synced variable) instead of throttle input
  • Loading branch information
Heriyadi235 committed May 4, 2023
1 parent 2072be3 commit 4385135
Show file tree
Hide file tree
Showing 3 changed files with 125 additions and 115 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public partial class FWSWarningData : UdonSharpBehaviour

public void MonitorConfig()
{
if (FWS.SaccAirVehicle.ThrottleInput == 1 && FWS.SaccAirVehicle.Taxiing)
if (FWS.Engine1.n1== FWS.Engine1.takeOffN1 && FWS.Engine2.n1 == FWS.Engine2.takeOffN1 && FWS.SaccAirVehicle.Taxiing)
{
setWarningMessageVisableValue(ref FLAPS_NOT_IN_TAKEOFF_CONFIG.IsVisable, !(FWS.Flaps.detentIndex == 1 | FWS.Flaps.detentIndex == 2), true);
setWarningMessageVisableValue(ref PARK_BRAKE_ON.IsVisable, FWS.Brake.ParkBreakSet, true);
Expand Down
Loading

0 comments on commit 4385135

Please # to comment.