Jump to content
The simFlight Network Forums

fullington99

Members
  • Posts

    1
  • Joined

  • Last visited

fullington99's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Greetings Pete, I've been using FSUIPC for a long time now (thanks for such a vital program), but am finally getting into some more demanding setups. I'm running FSX, sp2 and FSUIPC 4.3. I am connecting some real aircraft radio remote tuning heads which use 5 pins to output each digit. Two pins are active for each digit in the frequency (note this not BCD - my XPDR and ADF output BCD and I have that code working reasonably well). I'm using betainnovations' gammaray interface boards, which will send key presses for each wired pin. (I cannot have it send joystick button presses.) I'm not a programmer, so I'm trying to build everything in the FSUIPC config files as opposed to writing vb or c++ etc. ....pins>.....A..............B...............C...............D..............E key.code....50............51.............52.............53............54 (ctrl + alt) 0.....................…….....1...............................................1 1...............1..............1 2...............1...............................1 3..............................1................1 4..............................1..............................1 5...............................................1.............1 6...............................................1..............................1 7..............................................................1...............1 8..............1..............................................1 9..............1...............................................................1 I have two questions regarding two different ways to make this work. Right now I'm using joystick button flags to store and clear the output from each digit's pins, (joy 10 buttons 2-6 in the example below) as follows (from the KEYS section)... 928=50,11,1003,2562,1004,2562; nav1 ones 929=51,11,1003,2563,1004,2563 930=52,11,1003,2564,1004,2564 931=53,11,1003,2565,1004,2565 932=54,11,1003,2566,1004,2566 For the first method, I am then using the following compound button press commands to set the bcd bits... 504=CP(F+10,3)(F+10,6)0,0,Cx0A000350,x0100; set nav1 ones to 0 505=CP(F+10,3)(F+10,6)0,0,Cx0A000350,x0200; 506=CP(F+10,3)(F+10,6)0,0,Cx0A000350,x0400; 507=CP(F+10,3)(F+10,6)0,0,Cx0A000350,x0800; 508=CP(F+10,2)(F+10,3)0,0,Cx06000350,x0100; set nav1 ones to 1 509=CP(F+10,2)(F+10,3)0,0,Cx0A000350,x0200; 510=CP(F+10,2)(F+10,3)0,0,Cx0A000350,x0400; 511=CP(F+10,2)(F+10,6)0,0,Cx0A000350,x0800; etc for each value. This actually works, however, this requires actually pressing joystick button 0,0 to trigger the update. I'd like for this to update automatically. Since joystick 10 isn't real, there's no actual button press to do the triggering in the compound statement. Is there a way to make a key command send a "real" button press, not just set a flag? Or some other way to automatically trigger the update? For the second method... I also tried to do this using a conditional statement in the key section, but couldn't figure out how to read the state of the button flag - I don't know which offset to read. Are the button flags accessable via an offset read, or is there an undefined offset I can use? Thanks for any assistance you can provide! Best regards, Mike.
×
×
  • 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.