Jump to content

DCS bios Servo to LED class change


draken152

Recommended Posts

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???

1509337649_fuellamps.jpg.74b61e95cb46ad9a60e76c5da32754e3.jpg

[sIGPIC][/sIGPIC]

Building FW190D pit ,,To Dora with love" http://forums.eagle.ru/showthread.php?t=132743

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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….

1227863850_controlreference.thumb.jpg.64cf82b8d244394baafa6e44e1fbff77.jpg

[sIGPIC][/sIGPIC]

Building FW190D pit ,,To Dora with love" http://forums.eagle.ru/showthread.php?t=132743

Link to comment
Share on other sites

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 by ArturDCS
  • Like 1
Link to comment
Share on other sites

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

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:

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...