Jump to content
The simFlight Network Forums

Blouberg

Members
  • Posts

    13
  • Joined

  • Last visited

Everything posted by Blouberg

  1. I think you are right, it's reload flight that's triggered. I'll continue to look into making this all automatic as pr your instructions earlier today. Anyway, we have a working solution now and are happy campers(: Regards Frode
  2. We are resetting the sim in two ways. (maybe the actual function in FSX is the same) We have a pushbutton in the cockpit linked to Sim reset in FSUIPC (66586), we also use Instructor station on a separate PC, IS has a reset simulation function in the Simulator control tab. I’ll look into using a function. Thanks Frode
  3. Hi, The script is working like a charm (: Switches are read and FSX is set accordingly. One small snag, the Auto function works fine for initial load of FS. The sim comes up with all switches in sync with FSX. A Reset simulation does not trigger the Auto function in FSUIPC. This is not a big problem as I have a lot of spare switches I can set up to trigger the script after a reset. Big thank you to Pete for pointing us in the right direction and helping my understand (a little) of FSUIPC programming!! Regards Frode
  4. Hi Pete, hope you have some patience left for newbie questions.. I’m still fiddling with my button read script. I’ve sort of got it to work , but I can’t quite get it to perform consistent. Sometimes it starts and going thru the looping sequence as designed, other times it just skips to the bottom of the script. Setting FSUIPC to run script in debug mode seems to help. In debug mode it goes thru the switch loop every time. Does this make sense? Will it help to add some delay in the script? An other question, What offset or control should I use to set Carb. Heat on/off? (Single piston engine) Is the offset 66488 (anti ice eng 1 SET) the same as Carb Heat? Or will the offsets 66030,66029 set carb. Heat on/off? Thanks /Frode
  5. Sorry, but it was a simple typo on my part. It opens fine now. Thanks again! /Frode
  6. Hi again, New hurdle on my way for this script.. I have run hidscanner, and here is the output for the 32Digital board- Vendor=0D59, Product=0120 (Version 0.1) Manufacturer= TRC Product= TRC 32DIGITAL IN 00 Serial Number= Usage Page: 1 I have tried all combinations and Vendor and Product, with and without quotes in the script, but it reports that it can not open HID. Am I missing something here? Thanks /Frode
  7. Tanks again!! Your Level of support is impressive! Regards Frode
  8. Dear Peter, thanks again! One more thing if I may. The script fails on this statement: if logic.And(Buttons, buttonbit) ~ 0 then Syntax checker says: 'Then' expected near '~' (41) FSUIPC log says the same Sorry for pestering You! Regards Frode
  9. Hi, I’m heading over to our sim this afternoon to try out the scripting. I think I get the programming part where I isolate the correct bit for determining status of the switch and looping thru the switches. Beein a FSUIPC noviceI’m a little confused about the controls and parameters. Here is a part of your template with a ipc.control statement inserted. while j < Switches do if logic.And(Buttons, buttonbit) ~ 0 then -- Button 1, Master ALT = ON ipc.control(66242, 1) ipc.log("Master ALT set to ON") -- E.G ipc.control, or ipc.keypress, or ipc.runlua, or ipc.macro, etc. else -- Button 1, Master ALT = OFF ipc.control(66242, 0) ipc.log("Master ALT set to OFF") -- E.G ipc.control, or ipc.keypress, or ipc.runlua, or ipc.macro, etc. end Is it possible to control a toggle in this manner? Or will it just go to the opposite state whenever it’s invoked. Many of the controls I need exist only as a toggle. Regards Frode
  10. Hi Pete! Thanks for your effort to help! I’ll look into this and hopefully I can sort it out. (: I have no experience of Lua at the moment, but I’ll dive into this to try to get a grip on it. I may be a little “slow” , but to be sure I get this right, what you are saying is that the Lua plugin can read the status of the switches and set the aircraft accordingly? The normal operation of switches during flight will still be handled by FSUIPC as they are today? This certainly opens up possibilities. Thanks! Regards Frode
  11. We have a Cessna 172/182 simulator at our Museum. It’s available for short flights for our visitors. We have a Simkits 32 digital IO board with switches connected for the usual stuff like Master, lights, Avionics and so on. As we have multiple pilots in our sim we have established a routine where the “instructor” resets the flight between pilots to expedite things. The plane is set on Rwy, engine running and ready for TO. We often experience a mismatch between the physical switches in the cockpit and the state of the simulator. As I understand FSUIPC does not read the actual state or position of the switch, but reads the change of state. Is it some way we can come around this issue? A couple of other questions. Can we use multiple InitialButton? Will initialButton be invoked on a simulator reset? Or is it only first load of the sim? Regards Frode (Now on up to date FSUIPC version)
  12. Hi, thanks for quick reply! I kind of hoping to see the history file before I installed the new version (: It’s not included in the Zip file. I know it's unpacked when installing. If no enhancement or fix are relevant for our use I’ll just keep the current version for now. Is it OK to just install the new version on top of the old? Are registration info and settings preserved? Regards Frode
  13. Hi, We are using registrered FSUIPC in Our Cessna Cockpit. The software is working fine, but I see that we do not use the latest Version. We struggle a bit With switch assignment and syncing With the sim. Can someone point me to "What's New" in the current Version? /Frode
×
×
  • 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.