Jump to content
The simFlight Network Forums

Ron Buchwald

Members
  • Posts

    62
  • Joined

  • Last visited

Everything posted by Ron Buchwald

  1. Hello all. I am not sure how to ask this question. So I will explain what I need to do. I have been using EPIC thru FS Comm for many years to send Joystick axis to FS 9 and all was well, now however the EPIC card has died...So I have built an Arduino UNO throttel controler. Arduino is a Serial USB device (Not a HID device as is a joystick, I think)...So I wrote a VB 2010 program to interface to the Adruino and then to FS 9. I say in the VB pgm to read the serial value then send that to an FSUIPC offset. That works....But, as it is not a joystick axis I can not see it in FSUIPC axis assiments ( the problem is this, The ELEV. trim does not disconnect when in auto pilot so My trim send via an offset is conflicting with auto pilot,Yes I undestand that. My question is then, How can I send the Arduino value ,As a USB Serial device to FSUIPC and FSUIPC see it as a joystick axis.? I have read the docs on the LUA plugin "COM" and this seems to be the solution but I don't fully understand what I need to do to use it. For some reason I can't find the HIDDemo script in the LUA examples as stated in the docs. Pete has given instructions on Handling VRInsight devices in FSUIPC which is a serial USB device and so is the Arduino, but I need some direction on how to do this. as I don't have the "SerialFP2" Driver. So I am kinda lost. I don't know if I need that driver or not to do this. To sum this up.... I think I need to make the Arduino value sent to be seen as a joystick axis so FS9 will disconnect it in the auto pilot mode, I think,but don't know how. Ron.
  2. Hi Pete Hope this finds you well, Now I have just finished up-dating to NEW release FSUIPC 3.999, wide sever 6.94, wide client 6.94 on all 5 of networked PCs. I have a question on what offset to use for ELEVATOR TRIM. Ok your docs say to use offset 3338 IF you want to disconnect them if auto pilot is running. YES or NO, via offset 310A, bit 0 or bit 5. YES or NO. now when I send to offset 3338, I get nothing, Well cause that is the post value after cal, I guess, SO, if I send to offset, 0BC0 the value, I do see the trim respond. So I am confused. The problem is " auto pilot is over-written by my sending the elev..trim value via oBCo" so I want to then turn that off, but I can not. I am unclear as how to use 310A and 3338 to do this. Funny, the throttles work ok when in auto pilot, but not the trim, I am using PM MCP.
  3. Thank you Paul. That's what I needed. If your wondering, I have build NEW radio comm panels for my simm. I am replacing my 12yr old EPIC hardware which has pretty much given up. The analogs stoped working some time ago so I built the Arduino UNO for throttles,flaps,elev.trim and spoilers, all working better than EPIC ever did. Now the radios work again. Next will be the MCP. I do use the Interface IT board for the overhead and CDU,but I wanted to keep the price tag down so going with Arduino. So far so good,thanks to you and Mr Dawson's hard work. I am very pleased., Thanks. Ron. :razz:
  4. Hi Paul. your answer did the trick,however here's the problem I now face. I am reading the digi pot, or encoder from the arduino maga 2560. I can send it to VB.NET 2010 and display it in a textbox. For your answer to work it needs to have the decimal point.(121.55) the data I can send from the encoder read is (12155) no (.) I don't know how to change the (12155) to include a (.) if I send from arduino (121.55) I am fine, but the read from arduino does not include a (.) I not asking you to tell me how to change the arduino code if you don't have one you would not know, rather how to convert the VB NET 2010 serial read data to include the (.) IE 12155 to 121.55 and then send it as your answer states.Yes I know this question is confusing. So.... How can I convert a number such as 12155 to 121.55 in VB NET 2010.?? Thanks so much, Ron.
  5. Hi Paul, or anyone who may know how to ::: send a BDC code to set the radio com1 freq. just from the FSUIPC code Example. Paul has shown how to READ the BDC but NOT how to send to. Any Help.
  6. Hi All Qustion on scaling an offset. Trying to get elev.trim -16383 to 16383 to read correct in vb.net 2010 from an adruino 2560 chip..ok it outputs 0-1024 full range of pot. I thought you would say analog .value *128/16383 or something but I don't know. if I just *128 I get close but it rolls over several times and is way to sentisive. I don't konw the scaling factor to use. any help? offset is 0BC0. Ron.
  7. Yes Sir. Ok I now have ver 3.98 and loaded. Now I see all we have spoken about. I am so sorry for my Bad. Now, if you will, I have run into this problem. offset 0af8. If I send it a value of 3 I get the right tank. however if I send a value of 2 fs interrogate reports a 14. All other values I send are Ok. I don't see why value of 2 repoets a 14. Thanks, Ron. PS. I am tring very hard to make this happen and I understand your flustrations with me.
  8. I am running ver.3.75 june 1 2007. I will check to see if latest. Yes, have run the installer,that's how I got it to work. No matter now as I did get a few B777 from Overland co. Simmers sky, the files were called FinalTorrent or somethig. I had to download pgm to open them but It did work. several hours but good to go now. And good news for a change, The new aricraft do support the proper fuel and my Pgm now shows RMAIN or LMANIN fuel flow. I can sw between them and my pgm displays this. and yes PSS is no longer. Thanks Pete, you are the smartest man I know. Ok problem solved, Back to programing. Ron. :rolleyes:
  9. Well try as I might, I don't see it there. I open windows explorer, goto my fs9 folder open that, goto modules. I do see fsuipc.dll,fsuipc.key,fsuipc.log,fsui.dll and many other files but nothing about a fsuipc doc folder or file. so this may sound dumb but I can't find any aircraft to buy or download such as the PSS B777, I find the web site but it has no mention on how to buy it or download it, same for some of the other sites, I know it's me but I don't find a way to get them. Do you or any one have a link to where I can buy a better aircraft? Ron.
  10. Hello Pete. Yes it is I have edited the cfg. and It shows up in the aircaft. That's Ok. Ah Ha, perhaps that Is my error. I will work on this futher. Question then, Is it possiable to edit the aircraft model? Also what is a Lua Plugin?. I will look at a new B777 aircraft and try that as well, Thank you. Ron.
  11. Hello All. I have read most all the post on this site, one I found came close to an answer,but NOW I can't find it so......... I am tring to set up my overhead panel, a B777, or any type twin JET in fs2004. I want to do this: Tell FS that I have 4 tanks: 1) LMain 2) Rightmain 3) Center 4) aux Read fuel flow from: 1) LMain 2) Rightmain 3) Center 4) aux Select which tank I am getting fuel from: Display this info. I have tried these offsets 1) 0AF8 2) 205C 3) 3104 4) 3125 5) 3590 6) 3880 7) 3B98 only does 0AF8 seem to come close to what I want to,but then again that's why I am seeking help. If I use 0AF8, I can sw ,from fs 2004 on the aircraft panel, (the fuel selector sw) And read via FS Interrogate2std. the values of 14,1,15. so in my PGM I am writing, ((VB.NET 2010) (Pete) I am NOT asking about VB.NET I know you don't know it.))) I can read, in my pgm, that if 14 the left fule stops flowin from LMain, if I sw to center, Read 1 and my pgm shows fuel flow from both L and R Main. If I sw to right,value(15) I still see fuel flow from both L and R Main......So that is the Problem. I don't seem to be able to select which tank I am drawing fuel from. Now I realize that (14) and (15) are crossflow. and 1 is ALL. So I can change via my pgm and read via fs int. tank left, center,right, however I still get both fuel flows from both tanks in my pgm. Any One got Any Ideas On how to do the above? Ron.
  12. Again your are right, I was looking at the Interrogate grid., So sorry, Thank you. Ron
  13. Hi Pete I don.t seem to be able to ADD a new var. to the grid. For some reason the offset 0af8 is missing and I need this. I am tying to work out the Eng Tanks and Fuel Pumps in my overhead PGM. I see in your doc. to right click within the grid but it does not say add anywhere. I don't get the " variable-edit" pop up window as show in your doc. When I right click I do see a pop up that reads, write single, grid options, copy to clip,copy quick. Any Ideas. Ron
  14. Thanks Pete, I kind of understand. Below is how I am assigning the offsets. Dim LDRIVEOIL As Offset(Of BitArray) = New Offset(Of BitArray)(&H561F, 2)' LDRIVE LOW OIL IDG BIT 4 Dim RDRIVEOIL As Offset(Of BitArray) = New Offset(Of BitArray)(&H561F, 2)' RDRIVE LOW OIL IDG BIT 5 Then the code is: Dim ENG1N1 As Double = (FS1N2.Value * 100D / 16384D) ' ENG 1 N1 Me.TextBox6.Text = ENG1N1.ToString("f1") If ENG1N1 > 10 Then Me.Label37.ForeColor = Color.Green Me.lDrive.BorderColor = Color.Green Me.LDRIVEOIL.Value(4) = False Else Me.Label37.ForeColor = Color.DarkOrange Me.lDrive.BorderColor = Color.DarkOrange Me.LDRIVEOIL.Value(4) = True End If So it should be called BYTE ARRAY, I guess, but it is not. Any way It works. In VB.NET I can say AND,OR. I do have to call a class called Bit Array, to use that function. I don't know how many offset I will need so I will use 66c0-66ff for now to be safe. Thanks again. Ron.
  15. Not sure what you mean by the Intel stuff, In the PM software, example=(&H5626.0, 5626.2 and so on) Any way, thats what they call them,(BitArray) in VB.Net. I only use AMD chips. So To get assinged offsets, Does It cost me money for them? Ron.
  16. Hi Pete: I have made very good progress on my B777 overhead software and have 2 questions 1) I am using offsets 66c0-66ff. If my PGM works well, Can I keep these offset,after rights, Lic, and all, or will I need to use new offset? Can I just make up offsets? 2) How do I know what the offset type is, IE is it a BYTE, DOUBLE,SHORT, LONG, FLOAT,ARRAY ECT..... I would like to use BitArrays for this as they are most easy to write in VB 2010.net. Ron.
  17. Hi Pete: I have made very good progress on my B777 overhead software and have 2 questions 1) I am using offsets 66c0-66ff. If my PGM works well, Can I keep these offset,after rights, Lic, and all, or will I need to use new offset? Can I just make up offsets? 2) How do I know what the offset type is, IE is it a BYTE, DOUBLE,SHORT, LONG, FLOAT,ARRAY ECT..... I would like to use BitArrays for this as they are most easy to write in VB 2010.net. Ron.
  18. Paul !!!!! Thank you so much. You are a True wonder. You and Mr. Dawson, YES that's It, it works fine. Just to let you and pete know. I have writen several hundreds of lines of code, using you example as a templete, I am writing my own version of PM Systems,lower EICAS pages as Enrico has not. for the B777. I am well on the way, learning this NEW TO ME vb.net, I was a vb.6 users for years. I'll still have some graphic questions to come, but for now I can now start the APU and let the eng1 and eng2 gens go on line. I'll, if you don't mind, keep you posted on my progress. Again thank you and pete for doing this. yours, Ron.
  19. Hi Paul Yes, that works as well, I guess the D means double, Ok BUT, I still see a very large number in the textbox. "1659200.0" with eng not running. How do I format that number to read as 0.0 Dim eng1n1 As Double = (fs1n1.Value * 100D / 16384D) Me.TextBox1.Text = eng1n1.ToString("f1") ("#.#")???? I don't know. Ron.
  20. Oh Hi Pete Good catch, I ment to say offset &h898, sorry, Still, any sugestions?. Ron.
  21. Hi Paul I know this is a dumb question, but I am stuck. I have added three lines to your FSUIPC example, (which is wonderfull) I have dim fs1n1 as integer, with &h989 offset. next two lines are below. I put them in the timer1 as I think thats were they need to go, but I can't see any thing in the textbox1 and all code below the 2 lins don;t update. If I remove The (* 100) then the rest of the code below update and I see a large number in the textbox. I am wanting to get the eng 1 N1 value. I don't see what I am doing wrong. could you show me the proper syntex for getting the N1 value. Ron. Try ' Process the default group FSUIPCConnection.Process() ' IAS - Simple integer returned so just divide as per the ' FSUIPC documentation for this offset and display the result. Dim airpeedKnots As Double = (airSpeed.Value / 128D) Me.txtIAS.Text = airpeedKnots.ToString("f1") ' my code ron Dim eng1n1 As Double = (fs1n1.Value * 100 / 16384) Me.TextBox1.Text = eng1n1.ToString("f1") ' Avionics Master Switch Me.chkAvionics.Checked = (avionics.Value > 0) ' 0 = Off, 1 = On. ECT............
  22. "For a B737NG? No, there's nothing shown there that I cannot select on the upper EICAS." I understand Pete, that's what I mean. your missing half the fun. I find it hard to believe that with ALL your talent, knowledge, and expertise in this field, that you are satisfied with a B737. I hope you are happy with it. Pete I am in no means dogging you or mean to DE-meaner you. No sir, I HAVE THE UP MOST RESPECT FOR YOU. I just don't understand that you don't want to expand your knowledge on the rest of the many aspects of your work. Without FSUIPC, well non OF us, ENRICO, Peter Cos, A Sims, well we would all be nowhere. Please for your own sake, look into it, I know you'll be surprised. I know, now your mad at me but I needed to tell you how saddened :-( this makes me feel. I hope you will forgive me. ;) I'll let you go now, you need not respond. I know you are very busy. After all day playing with VB.net 2010, I think I'll just byte the bullet and buy the A Simm package,$1300.00 usd. but Ned of FDS said it works, so we will see. Enrico and PM can go to hell. Thank you. Again, if I have offended you, I am sorry. Ron. :rolleyes:
  23. Got you. I truely under stand. I will try the forums as you suggest. However without a Lower EICAS page you are missing half the fun. :smile: I know that I can do this as I don't give up. I'll let you know when I get it down. Thank you for your time Pete and thank you for FSUIPC. Happy Days. Ron.
  24. Hi Pete, I think I got us off track last night when I mentioned the FDS hardware. This has nothing to do with the hardware at all It is ALL software realeted. you ask what do I see in the Lower EICAS. if you have time,"please" try this on your simm. On your PFD goto F3 or F7 to display The EICAS page. now hit shift tab, then ctl tab you should see the lower EICAS page then you change pages by ctl tab, OK? If you laod FS as a 4 eng jet, IE a stock B747 and if you are running the CDU you may need to change that to a B747 else this if only running FS and A instance of the PFD it should show the EICAS pages. if you fire up PM SYSTEMS, demo will work, and select the fuel page , turn on and Off the fuel pumps, xfer and such and you see they are GRAPHICALY SHOWN. now if load up as a twin jet IE stock B777 your display should reflect a 2 eng jet. try the fuel again. I bet nothing happens, If You Do Get a Graphical responce then I have something very wrong on system. Please give it a try and let me know. Ron.
  25. You certainly have something wrong then. I use PMsystems for my 737NG as do many others and it works fine, with virtually all the overhead systems operating well. It sounds like you aren't selecting the correct logics from those currently available. sorry Pete I don't how to use quotes, Yes that is the problem, as stated, The B747 works ok, all function look good,,,But if I load a stock FS B777 then in CDU I load a B777 I get nothing on the lower PFD page but the graphic with no action, such as fuel valves closing..ect... Question is What version of PM System B777, or B737 file do I need to get. I have the last ver. of PM Systems, do I need to find a later ver. of the B737 or B777 logics to load and run?????further note all PM files are latest build so ??? can you point me to a download of latest builds for a twin jet logics as the one I have MUST NOT be correct. I thought as you up-grade to latest build that those files follow,, but perhaps not, this may be my problem. I have looked but find no PM systems logic files on the net "I know my fault but...." Thanks for all the info thus far, Ron.
×
×
  • 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.