gillesdrone Posted September 2, 2011 Author Share Posted September 2, 2011 I found parametres for galvanometres but after creation in SiocConfig.lua and SSI, I obtain values 0 or 1. How to obtain values from 0 to 100 to make galvanometres in my cockpit ? I do not know how to or put coéficients. Thank you I join the parts SSI and lua concerned, thank you , in SiocConfig.lua : galva = { [1200] = {0,469}, -- VOYANT hydrolic valv1 [1201] = {0,470}, --VOYANT hydrolic valv2 [1202] = {0,471}, --hydro_common_pressure [1203] = {0,472}, --hydro_main_pressure [1204] = {0,473}, --hydro_acc_brake_pressure [1205] = {0,474}, --hydro_gear_brake_pressure [1206] = {0,475}, --hydro_common_temperature [1207] = {0,476}, --hydro_main_temperature [1208] = {0,252}, --controllers.NeedleOilPressureEngineLeft [1209] = {0,253}, --controllers.NeedleOilPressureEngineRight [1211] = {0,254}, --controllers.NeedleOilPressureGearBox [1212] = {0,255}, --controllers.NeedleOilTemperatureEngineLeft [1213] = {0,256}, --controllers.NeedleOilTemperatureEngineRight [1214] = {0,257} --controllers.NeedleOilTemperatureGearBox in SSI : I have put in display to see if it is correct for display 0 or 1 but in IPconsole I have only 0 or 1 Var 1200, name galv_hydro1, Link IOCARD_OUT, Output 220 // VOYANT hydrolic valv1 Var 1201, name galv_hydro2, Link IOCARD_OUT, Output 221 // VOYANT hydrolic valv2 Var 1202, name compress, Link IOCARD_DISPLAY, Digit 139, Numbers 1 // hydro_common_pressure Panneau arriere Var 1203, name mainpress, Link IOCARD_DISPLAY, Digit 138, Numbers 1 // hydro_main_pressure panneau arriere Var 1204, name Accbrakpres, Link IOCARD_DISPLAY, Digit 137, Numbers 1 // hydro_acc_brake_pressure Var 1205, name brakpress, Link IOCARD_DISPLAY, Digit 136, Numbers 1 // hydro_gear_brake_pressure Var 1206, name commTemp, Link IOCARD_DISPLAY, Digit 135, Numbers 1 // hydro_common_temperature Var 1207, name mainTemp, Link IOCARD_DISPLAY, Digit 134, Numbers 1 // hydro_main_temperature Var 1208, name oilpresL, Link IOCARD_DISPLAY, Digit 133, Numbers 1 // controllers.NeedleOilPressureEngineLeft Var 1209, name oilpresR, Link IOCARD_DISPLAY, Digit 132, Numbers 1 // controllers.NeedleOilPressureEngineRight Var 1211, name oilpresGB, Link IOCARD_DISPLAY, Digit 131, Numbers 1 // controllers.NeedleOilPressureGearBox Var 1212, name oilTempL, Link IOCARD_DISPLAY, Digit 130, Numbers 1 // controllers.NeedleOilTemperatureEngineLe Var 1213, Link IOCARD_DISPLAY, Digit 129, Numbers 1 // controllers.NeedleOilTemperatureEngineRi Var 1214, name oilTemGB, Link IOCARD_DISPLAY, Digit 128, Numbers 1 // controllers.NeedleOilTemperatureGearBox Link to comment Share on other sites More sharing options...
m0jo Posted September 2, 2011 Share Posted September 2, 2011 I found parametres for galvanometres but after creation in SiocConfig.lua and SSI, I obtain values 0 or 1. How to obtain values from 0 to 100 to make galvanometres in my cockpit ? I do not know how to or put coéficients. The game use a float value between 0.0 and 1.0, sioc can only use integer. Multiply the value by 100 and round it before sending the data to the sioc server. The data received by the sioc server will then be between 0 and 100, you could also use a factor of 255 instead of 100 to interface directly with some servo. Link to comment Share on other sites More sharing options...
gillesdrone Posted September 2, 2011 Author Share Posted September 2, 2011 The game use a float value between 0.0 and 1.0, sioc can only use integer. Multiply the value by 100 and round it before sending the data to the sioc server. The data received by the sioc server will then be between 0 and 100, you could also use a factor of 255 instead of 100 to interface directly with some servo. Thank you for your answer but exactly I do not know where and how to make this modification before sending it to SIOC Link to comment Share on other sites More sharing options...
gillesdrone Posted February 15, 2012 Author Share Posted February 15, 2012 Here is the last version of my Pit BS2 Improvements: Less cabling, in spite of what is still visible there is much less, especially at the level of the back connections I put cards SIOC and UBX in panels what makes that I have no more the multiple connections on the back, just the supplies of these cards and the connected cable has the USBcard. The hat of the dashboard is made I found a thumb wheel for the SAI help The collective is now finished any metal for sleeve and mechanism with ceramic brake to manage the hardness The UV26 and the LWS L140 + datalink now stand by the panel superior lights, ease of transport and no cables " floating) The panel R828 is completely fonctional Ark 22, functional under BS1, do not have him(it) here because of a bug of BS2 which will be corrected http://gilles.guesnel.free.fr/video/version2PIT.wmv Link to comment Share on other sites More sharing options...
hassata Posted February 15, 2012 Share Posted February 15, 2012 Incredible :thumbup: [sIGPIC][/sIGPIC] Link to comment Share on other sites More sharing options...
Cali Posted February 15, 2012 Share Posted February 15, 2012 Incredible :thumbup: + :thumbsup: i7-4820k @ 3.7, Windows 7 64-bit, 16GB 1866mhz EVGA GTX 970 2GB, 256GB SSD, 500GB WD, TM Warthog, TM Cougar MFD's, Saitek Combat Pedals, TrackIR 5, G15 keyboard, 55" 4K LED Link to comment Share on other sites More sharing options...
MTFDarkEagle Posted February 15, 2012 Share Posted February 15, 2012 Wow! Looks very very cool!! Lukas - "TIN TIN" - 9th Shrek Air Strike Squadron TIN TIN's Cockpit thread Link to comment Share on other sites More sharing options...
gillesdrone Posted December 3, 2012 Author Share Posted December 3, 2012 Hello, I have make SIA standby panels here : http://gilles.guesnel.free.fr/video/SAIsec.avi I would like to export to the SIOC the values of the SIA of help I got back the variables which I have integral in my siocConfig.lua, no concerns(marigolds) ADISEC = { [1400] = {0,142}, -- AGR_81_Roll [1410] = {0,143}, -- AGR_81_Pitch [1420] = {0,144}, -- AGR_81_sideslip [1430] = {0,145}, -- AGR_81_failure_flag [1440] = {0,599}, -- AGR_81_LongitudinalDeviationBar [1450] = {0,613}, -- AGR_81_LateralDeviationBar I put variables in my SSI Var 1400, name AGR_81_Roll Var 1410, name AGR_81_Pitch Var 1420, name AGR_81_sidesl Var 1430, name AGR_81_failure Var 1440, name AGR_81_Longitu Var 1450, name AGR_81_Lateral When I launch the simulator and the pass on the IOCP console, for Flag not of Pb it crosses 1 has 0 and inverts For other values roll reeling, I pass from 0 to 1 when I tip over, I do not manage to have a 3-digit number for example and to develop it in which file have to I modify the value by multiplying by 1000? In the siocConfig.lua.? In the export .lua And what is the syntax? Thank you for your answer I also found variables to make instruments oil and pressure but same Pb Link to comment Share on other sites More sharing options...
RpSPT Posted December 3, 2012 Share Posted December 3, 2012 I unfortunately dont have an answer to your problem. Your cockpit looks very good. Some holiday I will have to make an trip around europe and visit all the good cockpit builders that are posting their builds here on internet. Would be an interesting holiday if it would be ok to visit everyone. It would need some planning to make schedule that works. Could you also post your videos to your youtube page. Would be easier to watch them that way. The SAI looks good, hope you will get it working with the game soon. Link to comment Share on other sites More sharing options...
gillesdrone Posted December 3, 2012 Author Share Posted December 3, 2012 thank's for your post , and if you go to France for holiday and if you contact me it is possible to see my pit , no Problem ;) I know an other very good pit builder near my home , BaDCrc :) Link to comment Share on other sites More sharing options...
Takeoff-For-Fun Posted December 4, 2012 Share Posted December 4, 2012 Very nice work, Gillesdrone! :thumbup: Maybe I can help you, hope I understood the question correctly. -But I´m not a LUA specialist! I did something similiar with the KA-50 APU-temperature and a servo this year. I had to redesign OAKES´ great script a little. I separated Inputs and Outputs into different LUA-Files (SIOCConfig\DcsToSioc.lua, RunAtSimulationStart.lua and SiocToDcs.lua. This gave me the possibility to understand OAKES great work and I got the APU temperature working by creating a new function in which I could multiply the LUA-Variable to get a bigger integer output for SIOC. Proposal overview for "SAI roll": (Details missing) - Create a new function in file "ExportSupport.lua" similiar to "function Variometer(pVarioMeterSIOCParam)": e.g. function SAIoutputRoll(pSAIrolloutputSIOCParam) with local lSAIroll = (lMainPanel:get_argument_value(142) * 1000) -- do multiplication here - in file "ExportHelios3rdParty.lua" you could add this into "function LuaExportActivityNextEvent(t)": lSIOC_SendString = lSIOC_SendString..SAIoutput(gSAIrolloutputSIOCParam) - in file "DcsToSioc.lua" or "SiocConfig.lua" add gSAIrolloutputSIOCParam = 1400 -- SIC var (AGR_81_Roll) This isn´t the full code, because it´s not easy to assist remotely and not seeing your current scripts. It´s just a quick shot and my two cents. Hope it helps a little bit. :unsure: Takeoff-for-fun Link to comment Share on other sites More sharing options...
gillesdrone Posted December 4, 2012 Author Share Posted December 4, 2012 Thank you very much for your answer I am going to test it this evening, and I inform you , if it works , I hope to realize instruments temperature and oil pressing Link to comment Share on other sites More sharing options...
gillesdrone Posted December 5, 2012 Author Share Posted December 5, 2012 please , is it possible you send me your export and other files about your APU ? I want make it too and that see mee how make export nota ; I have not " ExportHelios3rdParty.lua" in my Pc Link to comment Share on other sites More sharing options...
Takeoff-For-Fun Posted December 6, 2012 Share Posted December 6, 2012 Sure, no problem. I´ll put them online, when I´m back home. ExportHelios3rdParty.lua is a replacement for the export.lua which is modified by helios. I thought you are using Helios in your homepit, too? I use OC and Helios simultaneously. My Helios is configured to use the file "ExportHelios3rdParty.lua" as 3rd Party-Script. I am exited in seeing your SAI mechanics in detail. Please, would you mind sharing some pictures with us? :thumbup: Takeoff-for-fun (WB) Link to comment Share on other sites More sharing options...
gillesdrone Posted December 6, 2012 Author Share Posted December 6, 2012 If you look here http://www.3rd-wing.net/index.php?showtopic=8507&st=130 You will see at the bottom of page and on the following one I made a comment on the forum of my squadron I shall put more detailed photos when I am going to unsettle it to make the inscriptions Link to comment Share on other sites More sharing options...
Takeoff-For-Fun Posted December 7, 2012 Share Posted December 7, 2012 You´re really gifted! Great work. :thumbup: Sorry for the delay, here are my scripts: myScripts.zip Don´t know if I should explain somthing in advance, hope they´re self-explanatory. :smilewink: The scripts are based on OAKES great work (hope he´s still kicking!). They´re still in progress. I´m trying to add every possible input and output from the KA-50 manual and using constantly the same english labels as the simulator. That´ll make adoptions easier for us all. It´s time demanding, so I´m still working on it, interrupted by working in the garage on my two-seater homepit.:) By the way, don´t forget to add lSIOC_SendString = lSIOC_SendString..ResetSIOCvar(gSAIrolloutputSIOCParam) into the file "ExportHelios3rdParty.lua" or "export.lua" in the function "LuaExportStop". This will stop sending current into the servo and worming your room. -Ask me how I know.:doh: Takeoff-for-fun (WB) Link to comment Share on other sites More sharing options...
gillesdrone Posted December 7, 2012 Author Share Posted December 7, 2012 (edited) this a pics of the interior of my SIA stb if you want other information no Pb Material : ping pong's ball , paper for the horizon maquette , 2 minis servos , 1 Beam of wheel of bicycle and balza wood to fixed thank's for your Script ;) Edited December 7, 2012 by gillesdrone Link to comment Share on other sites More sharing options...
gillesdrone Posted December 10, 2012 Author Share Posted December 10, 2012 (edited) Thank's Takeoff-for-fun ;) I have make mix between your files and my files , because I hav'nt HeliosExport but I progress , an begin to see how it's made Edit : Yes that's good for Roll ;) when I have finished , I join My Folder Export ;) Edited December 10, 2012 by gillesdrone Link to comment Share on other sites More sharing options...
gillesdrone Posted December 12, 2012 Author Share Posted December 12, 2012 (edited) Here is the promised video Registration(Inscription) remains to make, to put the mask and the window http://gilles.guesnel.free.fr/video/SAI_Standby.avi http://gilles.guesnel.free.fr/video/SAI_Standby.mp4 Thanks to Takeoff-For-Fun of the forum ED for his its help, by transmitting me its files on the température APU which allowed me to understand lua (at least on this subject ) :) Edited December 12, 2012 by gillesdrone Link to comment Share on other sites More sharing options...
gillesdrone Posted December 12, 2012 Author Share Posted December 12, 2012 (edited) Here is thus the result of the day And small video of the latest this evening, the dial APU temperature http: // gilles.guesnel.free.fr/video/tempAPU.avi Good evening Edited December 12, 2012 by gillesdrone Link to comment Share on other sites More sharing options...
Takeoff-For-Fun Posted December 13, 2012 Share Posted December 13, 2012 You´re welcome. Both instruments look very professional! Link to comment Share on other sites More sharing options...
gillesdrone Posted December 15, 2012 Author Share Posted December 15, 2012 Hello I have finished the Export files with this gauges : gAGR_81_RollSIOCParam = 1400 --AGR_81_Roll gAGR_81_PitchSIOCParam = 1410 --AGR_81_Pitch--- AGR_81_failure_flagSIOCParam = 1420 ---AGR_81_failure gAPUTempSIOCParam = 2000 -- SIOC Var 2000, APUTemperature 0-900 KI_13_courseSIOCParam = 2010 -- MAGNETIC COMPAS NeedleOilPressEngLeftSIOCParam = 2020 -- PRESSION HUILE MOTEUR GAUCHE NeedleOilPressEngRightSIOCParam = 2030 -- PRESSION HUILE MOTEUR DROIT NeedleOilPressGearBoxSIOCParam = 2040 -- PRESSION HUILE GEAR BOX NeedleOilTempEngLeftSIOCParam = 2050 -- TEMPERATURE HUILE MOTEUR GAUCHE NeedleOilTempEngRightSIOCParam = 2060 -- TEMPERATURE HUILE MOTEUR DROIT NeedleOilTempGearBoxSIOCParam = 2070 -- TEMPERATUER HUILE GEAR BOX three files modified : siocConfig.lua ExportSupport.lua SIOCExport.lua I have no same configuration of files but you can find yourself there Thank's for your Help without you I think it's not possible for me to make that :thumbup:ExportGG.rar Link to comment Share on other sites More sharing options...
gillesdrone Posted December 17, 2012 Author Share Posted December 17, 2012 Further to tries deepenedthis morning, I found one or two bugs of syntax, which made default Sioc I put you here the version 9 which is the last one and which works Saddened for the inconvenience;)Export9.rar Link to comment Share on other sites More sharing options...
gillesdrone Posted December 18, 2012 Author Share Posted December 18, 2012 (edited) I have finalise version 10 I join my file SSI in txtExport10.zipKA50_GILLES.txt Edited December 18, 2012 by gillesdrone Link to comment Share on other sites More sharing options...
Duckling Posted December 24, 2012 Share Posted December 24, 2012 Great reference. Thanks for sharing - - - - Link to comment Share on other sites More sharing options...
Recommended Posts