ESzczesniak Posted January 2, 2022 Posted January 2, 2022 (edited) I have the Winwing throttle, startup, takeoff, and combat panels. The throttle and startup panel are fairly new acquisitions. All works well except the fuel dump and pitot heat switches in DCS is read as a toggle. The switch needs to be cycled off to on to turn on, then cycled fully off back to on again to turn off...which also leads to the physical position being out of sync with DCS. I thought I knew how to fix this, as the takeoff panel has similar issues with the launch bar and bypass switch. I was able to easily edit the default.lua to have retract and extend as separate commands rather than retract/extend as a toggle. However, I am having issues with the fuel dump and pitot heat. The lines I believe are relevant from default.lua are: {down = fuel_commands.DumpSw, up = fuel_commands.DumpSw, cockpit_device_id = devices.FUEL_INTERFACE, value_down = 1.0, value_up = 0.0, name = _('Fuel Dump Switch - ON/OFF'), category = {_('Left Console'), _('Fuel Control Panel')}}, and {down = elec_commands.PitotHeater, up = elec_commands.PitotHeater, cockpit_device_id = devices.ELEC_INTERFACE, value_down = 1.0, value_up = 0.0, name = _('Pitot Heater Switch - ON/AUTO'), category = {_('Right Console'), _('ECS Panel')}}, I edited these creating two different lines each. I changed the name in on to on/on and the name in the other to off/auto. I assigned values of -1.0 and 1.0 (it seems these may have to be trial and error, but I started here). The result was that even the original toggle command for each disappeared from the DCS controller assignments menu. I undid these edits and stopped at this point, coming here for advice. I appreciate any assistnace! P.S. Is there a better way to paste these command lines? I've seen other posts where they in a gray box without automatic "word wrap" to a new line. Edited January 2, 2022 by ESzczesniak
LeCuvier Posted January 2, 2022 Posted January 2, 2022 @ESzczesniak I have created these lines for the fuel dump switch and they worked at the time: {down = fuel_commands.DumpSw, cockpit_device_id = devices.FUEL_INTERFACE, value_down = 1.0, name = _('Fuel Dump Switch ON'), category = {_('Left Console'), _('Fuel Control Panel')}}, {down = fuel_commands.DumpSw, cockpit_device_id = devices.FUEL_INTERFACE, value_down = -1.0, name = _('Fuel Dump Switch OFF'), category = {_('Left Console'), _('Fuel Control Panel')}}, For the pitot heater: {down = elec_commands.PitotHeater, cockpit_device_id = devices.ELEC_INTERFACE, value_down = 1.0, name = _('Pitot Heater Switch - ON'), category = {_('Right Console'), _('ECS Panel')}}, {down = elec_commands.PitotHeater, cockpit_device_id = devices.ELEC_INTERFACE, value_down = -1.0, name = _('Pitot Heater Switch - AUTO'), category = {_('Right Console'), _('ECS Panel')}}, PS: To insert .LUA code, copy the lines to the clipboard. Then in the post window click on the "post" button marked "<>". This will open a window where you can paste your code. 1 LeCuvier Windows 10 Pro 64Bit | i7-4790 CPU |16 GB RAM|SSD System Disk|SSD Gaming Disk| MSI GTX-1080 Gaming 8 GB| Acer XB270HU | TM Warthog HOTAS | VKB Gladiator Pro | MongoosT-50 | MFG Crosswind Pedals | TrackIR 5
ESzczesniak Posted January 2, 2022 Author Posted January 2, 2022 @LeCuvier Thank you on both counts! I thought those are the lines I had created, but such is coding I guess...a missed comma or period or something small could have done me in! 1
Recommended Posts