draken152 Posted February 22, 2018 Share Posted February 22, 2018 Hi guys, during my FW 190D panel building I have found one issue. Lamp for empty fuel tanks are in DCS bios coded as servos (and also some other lights): DcsBios::ServoOutput fuelLowFwd(0x347a, PIN, 544, 2400); DcsBios::ServoOutput fuelLowRear(0x347c, PIN, 544, 2400); I was trying to change it simple to LED class like this, (using mask from advance options) but it isn't working: DcsBios::LED fuelLowFwd(0x347a, 0xffff, PIN); It is possible to change it and how to do it correctly??? [sIGPIC][/sIGPIC] Building FW190D pit ,,To Dora with love" http://forums.eagle.ru/showthread.php?t=132743 Link to comment Share on other sites More sharing options...
draken152 Posted February 25, 2018 Author Share Posted February 25, 2018 Ian, ArturDCS anyone???? [sIGPIC][/sIGPIC] Building FW190D pit ,,To Dora with love" http://forums.eagle.ru/showthread.php?t=132743 Link to comment Share on other sites More sharing options...
ArturDCS Posted February 26, 2018 Share Posted February 26, 2018 I had a look into the FW190D9.lua and I cannot find fuelLowFwd nor fuelLowRear. The ones I found are FUEL_LOW_FWD and FUEL_LOW_REAR and they are just float values. I do not know anything about panel building and coding electronics. Where do you get the DcsBios::ServoOutput from? Is it autogenerated? DCSFlightpanels dcs-insight dcs-bios DCSBIOSBridge BIOSBuddy Link to comment Share on other sites More sharing options...
draken152 Posted February 26, 2018 Author Share Posted February 26, 2018 I had a look into the FW190D9.lua and I cannot find fuelLowFwd nor fuelLowRear. The ones I found are FUEL_LOW_FWD and FUEL_LOW_REAR and they are just float values. I do not know anything about panel building and coding electronics. Where do you get the DcsBios::ServoOutput from? Is it autogenerated? Hi ArturDCS, Thanks for respond. I have just user experience with DCS bios, I dont know if the code is autogenerated or is inputed by Ian, the code was simply copy from control reference (see attached picture). I thought you have made also class specification for each input/output (so also ServoOutput), then probably only Ian can help. What I only know from my opinion it should be LED output…. [sIGPIC][/sIGPIC] Building FW190D pit ,,To Dora with love" http://forums.eagle.ru/showthread.php?t=132743 Link to comment Share on other sites More sharing options...
ArturDCS Posted February 26, 2018 Share Posted February 26, 2018 (edited) What if you replace the lines (FW190D9.lua): defineFloat("FUEL_LOW_FWD", 100, {0.0, 1.0}, "Indicator", "Fuel_Low_Fwd") defineFloat("FUEL_LOW_REAR", 101, {0.0, 1.0}, "Indicator", "Fuel_Low_Rear") with defineIndicatorLight("FUEL_LOW_FWD", 100, "Indicator", "Fuel_Low_Fwd") defineIndicatorLight("FUEL_LOW_REAR", 101, "Indicator", "Fuel_Low_Rear") and then start a mission and check the reference page? (what moron did the FW-190 DCS-BIOS profile in the first place??) Edited February 26, 2018 by ArturDCS 1 DCSFlightpanels dcs-insight dcs-bios DCSBIOSBridge BIOSBuddy Link to comment Share on other sites More sharing options...
draken152 Posted February 26, 2018 Author Share Posted February 26, 2018 Working like charm man :thumbup::thumbup::thumbup: . Thanks a lot:worthy::worthy::worthy: I will make update the of the FW190D9.LUA for all of those issues and send it to Ian. [sIGPIC][/sIGPIC] Building FW190D pit ,,To Dora with love" http://forums.eagle.ru/showthread.php?t=132743 Link to comment Share on other sites More sharing options...
ArturDCS Posted February 27, 2018 Share Posted February 27, 2018 (edited) Excellent! If you find any other lights having the same problem please report in this thread and I will update our fork of DCS-BIOS. Edited February 27, 2018 by ArturDCS DCSFlightpanels dcs-insight dcs-bios DCSBIOSBridge BIOSBuddy Link to comment Share on other sites More sharing options...
draken152 Posted March 3, 2018 Author Share Posted March 3, 2018 Excellent! If you find any other lights having the same problem please report in this thread and I will update our fork of DCS-BIOS. So here Some small findings: I think this should be also lamp class. (I have try it with my panel and was working Ok): defineFloat("GUN_FIRE_1", 50, {0.0, 1.0}, "Indicator", "Gun_Fire_1") defineFloat("GUN_FIRE_2", 164, {0.0, 1.0}, "Indicator", "Gun_Fire_2") defineFloat("GUN_FIRE_3", 165, {0.0, 1.0}, "Indicator", "Gun_Fire_3") defineFloat("GUN_FIRE_4", 166, {0.0, 1.0}, "Indicator", "Gun_Fire_4") Bomb lamps are twice in code as lamps and also as float: defineFloat("BOMB_LAMP_1", 196, {0.0, 1.0}, "Indicator", "Bomb_Lamp_1") defineFloat("BOMB_LAMP_2", 197, {0.0, 1.0}, "Indicator", "Bomb_Lamp_2") defineFloat("BOMB_LAMP_3", 198, {0.0, 1.0}, "Indicator", "Bomb_Lamp_3") defineFloat("BOMB_LAMP_4", 199, {0.0, 1.0}, "Indicator", "Bomb_Lamp_4") defineIndicatorLight("BMB1",196, "Lamps", "Bomb 1 Lamp") defineIndicatorLight("BMB2",197, "Lamps", "Bomb 2 Lamp") defineIndicatorLight("BMB3",198, "Lamps", "Bomb 3 Lamp") defineIndicatorLight("BMB4",199, "Lamps", "Bomb 4 Lamp") :music_whistling: [sIGPIC][/sIGPIC] Building FW190D pit ,,To Dora with love" http://forums.eagle.ru/showthread.php?t=132743 Link to comment Share on other sites More sharing options...
ArturDCS Posted March 3, 2018 Share Posted March 3, 2018 Thanks for the feedback. I have to check this out. :) So here Some small findings: I think this should be also lamp class. (I have try it with my panel and was working Ok): defineFloat("GUN_FIRE_1", 50, {0.0, 1.0}, "Indicator", "Gun_Fire_1") defineFloat("GUN_FIRE_2", 164, {0.0, 1.0}, "Indicator", "Gun_Fire_2") defineFloat("GUN_FIRE_3", 165, {0.0, 1.0}, "Indicator", "Gun_Fire_3") defineFloat("GUN_FIRE_4", 166, {0.0, 1.0}, "Indicator", "Gun_Fire_4")Bomb lamps are twice in code as lamps and also as float: defineFloat("BOMB_LAMP_1", 196, {0.0, 1.0}, "Indicator", "Bomb_Lamp_1") defineFloat("BOMB_LAMP_2", 197, {0.0, 1.0}, "Indicator", "Bomb_Lamp_2") defineFloat("BOMB_LAMP_3", 198, {0.0, 1.0}, "Indicator", "Bomb_Lamp_3") defineFloat("BOMB_LAMP_4", 199, {0.0, 1.0}, "Indicator", "Bomb_Lamp_4") defineIndicatorLight("BMB1",196, "Lamps", "Bomb 1 Lamp") defineIndicatorLight("BMB2",197, "Lamps", "Bomb 2 Lamp") defineIndicatorLight("BMB3",198, "Lamps", "Bomb 3 Lamp") defineIndicatorLight("BMB4",199, "Lamps", "Bomb 4 Lamp") :music_whistling: DCSFlightpanels dcs-insight dcs-bios DCSBIOSBridge BIOSBuddy Link to comment Share on other sites More sharing options...
Recommended Posts