Jump to content
The simFlight Network Forums

Wydawnictwo Mfiles Pl

Members
  • Posts

    13
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling
  • Location
    aaa

Wydawnictwo Mfiles Pl's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Hello! I try to create condition for button. In manual it is described like this: 1=W0366=0 P1,0,C65570,0 and it's works. Conditions are for B, W and D type variables. My problem is, that I have Float32 variable. How to do it? This line works fine. It increases float offset by 0.1 1=P1,0,x78005668,100 I'd like to do it this way (but what to put instead of "?"): 1=?5668>0 P1,0,x78005668,100 I tried with double word, as it is 32-bit too, but without success. Is there any solution? Regards, Slawek
  2. Hello! I try to implement Eric Marciano's FSUIPC Exporter. It mostly works, however I have problem with landing lights switch. I use 2-position switch (on/off). I programmed it this way: 1=P2,1,Cx010056A9,x02 ; turn on lights - set value to 2 2=U2,1,Cx010056A9,x00 ; turn off lights - set value to 1 The first one works, the second doesn't. How to set value to 0? Am I doing something wrong? Next, identical switch works with other offset. Here I use toggle function: 3=P2,1,Cx0D0056A7,x01 ; switch taxi lights 4=U2,1,Cx0D0056A7,x01 ; switch taxi lights Regards, Slawek
  3. Ach, I tried on the ground. Thanks. That will probably solve my problem. :-) Slawek
  4. In QWSim Avro RJ, spoilers axis has "no spoilers" position at 0 and max spoilers at 16384. However my axis is from -16k to +16k. In result, axis is dead from -16k to 0, and then very short move causes large changes in spoilers. Is it possible in FSUIPC to change or somehow recalculate the input from "-16k->+16k" to "0->+16k", to use all the axis? I can probably do this with LUA, but is it possible without it? Regards, Slawek
  5. Thanks, I'll ask friend about FSUIPC version. I finished the gauge, however it will need some work. I publish my LUA script. Maybe someone would be interested. I solved quite easily problem of turning while moving back. local i = 1 while i == 1 do --repeat forever while ipc.readLvar("WHEELTUG_POWER") == 1 do --power on if ipc.readLvar("WT_START_SPEED") > 0 then --we need a kick to start ipc.writeDBL(0x3090, ipc.readLvar("WT_START_SPEED")) end if ipc.readLvar("WT_START_SPEED") < 0 then --the same to move back ipc.writeDBL(0x3090, ipc.readLvar("WT_START_SPEED")) end if ipc.readLvar("WT_FASTER") == 1 then --this controls the speed ipc.writeDBL(0x3070, 20) else ipc.writeDBL(0x3070, -20) end if ipc.readLvar("WT_KNOB") == 1 then --if knob is set to BACK, we need alternate steering (using rudder/tiller) if ipc.readUW(0x0BBC) < 20000 then turn = - ipc.readUW(0x0BBC) / 16383 * 10 elseif ipc.readUW(0x0BBC) > 20000 then turn = - ( ipc.readUW(0x0BBC) - 65532 ) / 16383 * 10 end ipc.writeDBL(0x3088, turn) end ipc.sleep(50) end end Thanks again for your help. Regards, Slawek.
  6. Almost everything works ok*. My friend, who tests gauge for me found strange information in FSUIPC.log regarding to this LUA script: attempt to call field 'readLvar' (a nil value)I looks like LUA can't read L:Vars. Switches and buttons in gauge work properly, but LUA can't see this. What can be the cause of this? We both have FS9.1 and registered FSUIPC. * - I have to deal with moving back - wheels turn, but aircraft doesn't. :-( No problem while moving forward. Regards, Slawek.
  7. The [Auto] section will solve the problem. I'll test event call then. Thanks a lot! Regards, Slawek.
  8. I found solution :-) if ipc.readLvar("WT_START_SPEED") > 0 then ipc.writeDBL(0x3090, ipc.readLvar("WT_START_SPEED")) end This (added after first line) checks in XML whether GROUND SPEED is zero. If so, this will set some small speed, just to move aircraft. Then acceleration 0x3070 can handle it.
  9. Thanks for answer. As usual it was very helpful. I made progress. This loop works nice: while ipc.readLvar("WHEELTUG_POWER") == 1 do --> this is the power button if ipc.readLvar("WT_FASTER") == 1 then --> this checks the speed (speed can be changed during taxi) ipc.writeDBL(0x3070, 50) else ipc.writeDBL(0x3070, -10) end ipc.sleep(10) x = ipc.readDBL(0x3070) ipc.writeLvar("WT_ACCEL", x) end However, there is one problem: this works only if the speed of the aircraft is >0 at the beginning. In that case script keeps choosen speed. But the script is unable to move aircraft when speed at the beginning is 0. How to overcome this? Another question: is it possible to start LUA script using L:variable? Is it possible through FSUIPC? (the idea is: I click the button in my XML gauge and then LUA is loaded). WT_ACCEL variable is for better knowledge whether script actually works. Just for tests. It does nothing more.
  10. Hello! I'd like to create gauge which would work as WheelTUG - electrical engine in nose gear, which allows aircraft to taxi without jet engines. For steering I'd use tiller or rudder, but I need to simulate electrical engine. I found, that it is almost impossible in XML gauge, because I can't write into velocity and acceleration variables. I try to combine XML with LUA and FSUIPC. LUA can read/write those variables (offsets). LUA script looks like this: 1: ipc.writeDBL(0x3070, 10) 2: x = ipc.readDBL(0x3070) 3: ipc.writeLvar("WT_ACCEL", x) line 1 - should set acceleration (I tried also with velocity 3190), but it doesn't or is immediately overwritten line 2 and 3 - take offset and send via L:variable to XML script which shows actual acceleration value. Reading works ok. But I can't write into this offset. I know, there are problems with it in FSX, but I use old good FS9, in which this should work. Could you hint how to make aircraft moving without engines? Regards, Slawek
  11. I was afraid, that installing WideFS will be a torment, like in case of many other network applications in Windows. But it just started to work out of box. And I must say it works great. I use WideFS to create First Officer panel on second computer in my cockpit. F/O has every switch at hand, so I have to show him some gauges, second FMC and own joystick. First step was easy - VasFMC set as slave shows everything ok, but sometimes it does messes with engines or heading. I'd like to allow VasFMC only to get data from FS and not send it back. Is it possible to allow some applications to only read data via WideFS, and not send back to FS? Second problem is joystick. Is it possible to connect joystick to second computer? If not, I can of course connect it to main computer. But there is also another question: is it possible to set joystick priority, to make possible for captain to override what first officer does? Or maybe some kind of switch "i have controls / you have controls" to change joysticks? Regards, Slawek.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.