Jump to content

Masterputin

Members
  • Posts

    26
  • Joined

  • Last visited

Everything posted by Masterputin

  1. thats a bummer. i ll then try to go the bios way. found the developer guide here: http://dcs-bios.a10c.de/docs/v0.2.3/developerguide.html#_connecting_to_dcs_bios
  2. I just found the Beryoza Script (Export.lua) in the SU-27 Helios Profile. Seems pretty straight forward for me. My only worry is this quote on Capt Zeen Helios Profile Website for the Su27:,, Important notice !! For the Beryoza implementation, i use export functions that can be forbiden in some online dedicated servers. Soon i'll prepare a new export.lua version of the profile widthout the Beryoza implementation, to avoid this problems on those servers." Because i mainly just play online on the Growling sidewinder server. ------------------------------------------------------------------------------------------------------------------------------------ local threats = LoGetTWSInfo() ----------------------------------------------------------------- get TWS info for Beryoza if threats then tabla_azimuths_small = {0,0,0,0,0,0,0,0,0,0} -- table to store the 10 small azimuth lights tabla_power_lights = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0} -- table to store the 13 power lights tabla_azimuths_big = {0,0,0,0,0,0,0,0,0,0} -- table to store the 10 big azimuth lights secondary_radar_types = {AIR = 0, LRR = 0, MRR = 0, SRR = 0, EWR = 0, AWACS = 0, Lock = 0, TopHemisphere = 0, BottomHemisphere = 0} primary_radar_type = {AIR = 0, LRR = 0, MRR = 0, SRR = 0, EWR = 0, AWACS = 0, Lock = 0, TopHemisphere = 0, BottomHemisphere = 0} sector = 0 max_priority = 0 power_light = 0 max_power = 0 emmiter_index=1 Primary_azimuth = 0 local Primary_Threat_Index=0 for mode,emit in pairs (threats.Emitters) do threatType = LoGetNameByType(emit.Type.level1, emit.Type.level2, emit.Type.level3, emit.Type.level4) ---- calculate azimuth light to put ON if emit.Azimuth < -1.95 then tabla_azimuths_small[1] = 1 end -- back left if emit.Azimuth < -1.03 and emit.Azimuth > -1.95 then tabla_azimuths_small[2] = 1 end -- 90 if emit.Azimuth < -0.54 and emit.Azimuth > -1.4 then tabla_azimuths_small[3] = 1 end -- 50 if emit.Azimuth < -0.29 and emit.Azimuth > -0.73 then tabla_azimuths_small[4] = 1 end -- 30 if emit.Azimuth < 0.08 and emit.Azimuth > -0.42 then tabla_azimuths_small[5] = 1 end -- 10 if emit.Azimuth > -0.08 and emit.Azimuth < 0.42 then tabla_azimuths_small[6] = 1 end -- 10 if emit.Azimuth > 0.29 and emit.Azimuth < 0.73 then tabla_azimuths_small[7] = 1 end -- 30 if emit.Azimuth > 0.54 and emit.Azimuth < 1.4 then tabla_azimuths_small[8] = 1 end -- 50 if emit.Azimuth > 1.03 and emit.Azimuth < 1.95 then tabla_azimuths_small[9] = 1 end -- 90 if emit.Azimuth > 1.95 then tabla_azimuths_small[10] = 1 end -- back right -- type of the secondary threat secondary_radar_types = FC_FindRadarTypeForSPO15(threats) if max_priority < emit.Priority then -- if the treath is max priority prepare data tabla_azimuths_big = {0,0,0,0,0,0,0,0,0,0} -- table to store the 10 big azimuth lights ---- calculate azimuth light to put ON for the main treath if emit.Azimuth < -1.95 then tabla_azimuths_big[1] = 1 end -- back left if emit.Azimuth < -1.03 and emit.Azimuth > -1.95 then tabla_azimuths_big[2] = 1 end -- 90 if emit.Azimuth < -0.54 and emit.Azimuth > -1.4 then tabla_azimuths_big[3] = 1 end -- 50 if emit.Azimuth < -0.29 and emit.Azimuth > -0.73 then tabla_azimuths_big[4] = 1 end -- 30 if emit.Azimuth < 0.08 and emit.Azimuth > -0.42 then tabla_azimuths_big[5] = 1 end -- 10 if emit.Azimuth > -0.08 and emit.Azimuth < 0.42 then tabla_azimuths_big[6] = 1 end -- 10 if emit.Azimuth > 0.29 and emit.Azimuth < 0.73 then tabla_azimuths_big[7] = 1 end -- 30 if emit.Azimuth > 0.54 and emit.Azimuth < 1.4 then tabla_azimuths_big[8] = 1 end -- 50 if emit.Azimuth > 1.03 and emit.Azimuth < 1.95 then tabla_azimuths_big[9] = 1 end -- 90 if emit.Azimuth > 1.95 then tabla_azimuths_big[10] = 1 end -- back right Primary_azimuth = emit.Azimuth Primary_Threat_Index = emmiter_index max_power= emit.Power max_signaltype = emit.SignalType max_priority = emit.Priority end emmiter_index=emmiter_index + 1 -- SendData("13", string.format("%.2f", emit.Azimuth) ) -- only to test rad numbers end -- type of the primary threat primary_radar_type = FC_FindRadarTypeForSPO15(threats,Primary_Threat_Index, altBar ) -- calculate the power lights of the main treath if max_power >0 then power_light = math.floor(max_power * 15) +1 -- how many light of 13 to put ON for the power indicator for a = 1, power_light do tabla_power_lights [a] = 1 end end -- Sending to Helios all the data fron the beryoza SendData("18", string.format("%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s", table.concat(tabla_azimuths_big, ""), table.concat(tabla_azimuths_small, ""), table.concat(tabla_power_lights, ""), primary_radar_type.AIR, primary_radar_type.LRR, primary_radar_type.MRR, primary_radar_type.SRR, primary_radar_type.EWR, primary_radar_type.AWACS, primary_radar_type.Lock, primary_radar_type.TopHemisphere, primary_radar_type.BottomHemisphere, secondary_radar_types.AIR, secondary_radar_types.LRR, secondary_radar_types.MRR, secondary_radar_types.SRR, secondary_radar_types.EWR, secondary_radar_types.AWACS, secondary_radar_types.Lock, secondary_radar_types.TopHemisphere, secondary_radar_types.BottomHemisphere )) -- send beryoza in side deviation end
  3. I want to connect the Arduino Mega Via USB. And yes it would be great if u send an example script. Thanks for the many valuable information.
  4. Here are the Details: i plan on using an normal rectangle electronics case in black. I am also gonna attach everything to the cover of the case . The first black line is the cover of the case.This is where i drill the holes. The light blue line in the picture is an thin acrylicglass to protect the LEDs from someone sticking an pen or something in the holes. The yellow/red/green lines are "colored transparent foils or paper". In the second picture u can see the colored marks. This is where i cut and glue the transparent foil or paper so it has an colored background. The grey line is some board or plate (metal or plastic doesnt matter). This is where i attach the 3mm or 5mm LEDs. The holes of the grey line must be the exact same as the cover of the case (Black line). I am gonna solder the resistors directly to the LEDs (ignore the drawn value in the picture) and put the + wires to the Arduino mega and the ground wire to an seperate Terminal block for all ground wires. Probably gonna use Dupont connectors for that. But before starting all of that, i first gotta figure out on how to export the DCS data for the SPO-15 and i have never done that kind of stuff so that is gonna be the biggest problem. I also gotta check if that script would also work with Multiplayer because i red somewhere that some server dont allow that kind of scripts. Also i gotta check the current consumption as there are going to be alot of LEDs. I am also probably going to use an compact form of an Arduino Mega because i want to keep this project as compact as possible and neatly as possible. For the letters , I am probably just going to glue letter stickers. And of course i am gonna put heatshrink at the LEDs contacts to prevent shorts. The black kind of rectangle at the LED is supposed to be an black heatshrink to isolate the light. Also sorry for that professional paint drawing i did.
  5. Yes i can explain later my idea of designing it but gotta learn for exam right now
  6. Thanks for the quick answer and alot of informations. Gonna try that out.
  7. I want to build an physical device for it. I just need some software that gives me the output data. Also i only want to build one device.
  8. Hello, I wanted to build an SPO 15 RWR for all the Flanker and Fulcrum jets. But i dont know how to get the output data by DCS. Cant remember that DCS Bios can give me the output data for the SPO 15 RWR. Thanks for help
  9. Ok I now found out how to wire it up and program it but i dont know how to program it with dcs BIOS. Would be great if someone could post an example script for a simple gauge.
  10. Hey , I planed on building some gauge instruments and wanted to test first on how to use the servo motors and stepper motors with DCS BIOS. The Servo one was straight forward for me but i dont know how to wire up the stepper motor (Step Motor 28BYJ-48 5V DC) and program it with the Arduino. I want to build an Airspeed Indicator for the F5 for testing purposes. Thanks for your help.
  11. Hey, are we going to get a plugin for the JF17 in DCS BIOS?
  12. thanks for the mod i enjoy it very much
  13. thanks very much got it working now
  14. I want to build a simple front cockpit with an arduino mega but dont know how. thanks for help
  15. JF 17 is a pay ware module
  16. Thank you ! Modded the SU-27 to carry those PL Missiles, they are really good
  17. These one would be awesome
  18. Ah okay. Thank you for you answer.
  19. Hello Guys, When I press RSHIFT+P, the Pilot body doesn't show up. Is it because it's still wip or a bug?
  20. It doesnt work. The mininum is 1511.
  21. I had to mod the F-5E3 Lua to make it possible to set the laser code to 1111. But it still didnt track the laser.
  22. Ah okay thank you, i didn't really read carefully.
  23. Holy Fck. When you gonna release it ?????????????:lol: Edit: Just saw that u release it in the few weeks
  24. Hello, I modded my F5E3 to carry the 2xGBU-12 (2GBU12 per pylon). I can drop them , but they sadly wont track the laser. { CLSID = "{89D000B0-0360-461A-AD83-FB727E2ABA98}" }, --GBU-12*2 (The CLSID Code i used) Is there somehow a way to fix it?
  25. Of course you can use the Missiles. Simply lock your Target and shoot your R-77, R-27R/ER. With the R-77 you can simply align yourself to the target and launch it with the Emergency Missile Launcher from about 30km.
×
×
  • Create New...