From 3dd944e41b647842753ec5ac3b37a181fd84f887 Mon Sep 17 00:00:00 2001 From: Mark van Renswoude Date: Sun, 20 Jan 2013 21:15:05 +0000 Subject: [PATCH] Added: Tail hook, autopilot, anti-ice switch functions --- G940LEDControl/G940LEDControl.dproj | 4 +- G940LEDControl/G940LEDControl.res | Bin 28524 -> 28524 bytes G940LEDControl/Units/FSXLEDStateProvider.pas | 70 ++++++++++++++++--- 3 files changed, 64 insertions(+), 10 deletions(-) diff --git a/G940LEDControl/G940LEDControl.dproj b/G940LEDControl/G940LEDControl.dproj index 6346c56..459422c 100644 --- a/G940LEDControl/G940LEDControl.dproj +++ b/G940LEDControl/G940LEDControl.dproj @@ -81,8 +81,8 @@ RELEASE;$(DCC_Define) - 4 - CompanyName=X²Software;FileDescription=G940 LED Control;FileVersion=0.4.0.0;InternalName=;LegalCopyright=© 2011 X²Software;LegalTrademarks=;OriginalFilename=G940LEDControl.exe;ProductName=G940 LED Control;ProductVersion=0.4;Comments= + 5 + CompanyName=X²Software;FileDescription=G940 LED Control;FileVersion=0.5.0.0;InternalName=;LegalCopyright=© 2011 X²Software;LegalTrademarks=;OriginalFilename=G940LEDControl.exe;ProductName=G940 LED Control;ProductVersion=0.5;Comments= 1033 $(BDS)\bin\default_app.manifest diff --git a/G940LEDControl/G940LEDControl.res b/G940LEDControl/G940LEDControl.res index 2f3e5fdb991dc89fea9d3b952799645a41633f1f..37b730a375cd00c9129865a1b15db3c1d5110e50 100644 GIT binary patch delta 36 lcmaEJkMYet#t8+StPBvqy0Ma-kBO^bEn#goJ2LQ 0]); // if switchesData^.CarbHeatAvailable <> 0 then -// Consumer.SetStateByFunction(FUNCTION_FSX_CARBHEAT, ONOFF_STATE[switchesData^.AntiIceSwitch <> 0]) + Consumer.SetStateByFunction(FUNCTION_FSX_CARBHEAT, ONOFF_STATE[switchesData^.AntiIceSwitch <> 0]); // else // Consumer.SetStateByFunction(FUNCTION_FSX_CARBHEAT, lsOff); if switchesData^.AutoPilotAvailable <> 0 then - Consumer.SetStateByFunction(FUNCTION_FSX_AUTOPILOT, ONOFF_STATE[switchesData^.AutoPilotMaster <> 0]) - else + begin + Consumer.SetStateByFunction(FUNCTION_FSX_AUTOPILOT, ONOFF_STATE[switchesData^.AutoPilotMaster <> 0]); + Consumer.SetStateByFunction(FUNCTION_FSX_AUTOPILOT_AMBER, AMBER_ONOFF_STATE[switchesData^.AutoPilotMaster <> 0]); + Consumer.SetStateByFunction(FUNCTION_FSX_AUTOPILOT_HEADING, AMBER_ONOFF_STATE[switchesData^.AutoPilotHeading <> 0]); + Consumer.SetStateByFunction(FUNCTION_FSX_AUTOPILOT_APPROACH, AMBER_ONOFF_STATE[switchesData^.AutoPilotApproach <> 0]); + Consumer.SetStateByFunction(FUNCTION_FSX_AUTOPILOT_BACKCOURSE, AMBER_ONOFF_STATE[switchesData^.AutoPilotBackcourse <> 0]); + Consumer.SetStateByFunction(FUNCTION_FSX_AUTOPILOT_ALTITUDE, AMBER_ONOFF_STATE[switchesData^.AutoPilotAltitude <> 0]); + Consumer.SetStateByFunction(FUNCTION_FSX_AUTOPILOT_NAV, AMBER_ONOFF_STATE[switchesData^.AutoPilotNav <> 0]); + end else + begin Consumer.SetStateByFunction(FUNCTION_FSX_AUTOPILOT, lsOff); + Consumer.SetStateByFunction(FUNCTION_FSX_AUTOPILOT_AMBER, lsOff); + Consumer.SetStateByFunction(FUNCTION_FSX_AUTOPILOT_HEADING, lsOff); + Consumer.SetStateByFunction(FUNCTION_FSX_AUTOPILOT_APPROACH, lsOff); + Consumer.SetStateByFunction(FUNCTION_FSX_AUTOPILOT_BACKCOURSE, lsOff); + Consumer.SetStateByFunction(FUNCTION_FSX_AUTOPILOT_ALTITUDE, lsOff); + Consumer.SetStateByFunction(FUNCTION_FSX_AUTOPILOT_NAV, lsOff); + end; end;