Jump to content
The simFlight Network Forums

High-Octane

Members
  • Content Count

    72
  • Joined

  • Last visited

Community Reputation

0 Neutral

About High-Octane

  • Rank
    Advanced Member
  • Birthday 01/01/1970

Contact Methods

  • AIM
    ProjectB767
  • Website URL
    http://

Profile Information

  • Location
    Texas,USA
  • Interests
    Flight Simulating, offroading, bike
  1. Pete, I am doing FSUIPC_Write on Offset 0AF8 Fuel Tank Select and I notice something unusual when succed writing. 0AF8-- 0=Off------------------->FSI shows = 0 1=All-------------------->FSI shows = 1 2=Left------------------->FSI shows = 14 3=Right------------------>FSI Shows = 3 4=LeftAux---------------->FSI Show = 4 5=RightAux--------------->FSI Show = 5 6=Center------------------>FSI Shows = 6 7=Centre2----------------->FSI Shows = 7 8=Centre3----------------->FSI Shows = 8 9=Ext1--------------------->FSI Shows = 9 10=Ext2-------------------->FSI Shows = 10 11=RtTip------------------->FSI Shows = 11 12=LftTip------------------->FSI Shows = 12 13= ?----------------------->FSI Shows = 13 14=CrossFeed Left to Right---->FSI Shows = 14 15=CrossFeed Right to Left----->FSI Shows = 15 16=?-------------------------------> FSI Shows = 16 17=?------------------------------->FSI Shows = 17 (Max) As for Number 2-Left... I get 14, which is for crossfeed.. I tried to find 2 but couldn't I am flying 2002 and I haven't tried 2004. So let me know what's wrong
  2. High-Octane

    Need help from VB Gurus

    Interesting Theory Pete, I got this working now.... I created two VB button, one for increasing and other one for decreasing fuel, At that time, I simply click it at both ways and they either dump or increases fuel by 10 pounds on every button clicks. Now I am working on VB "doevent" function (loop) and see if I could get it to lose few pound automatically following by clock ticks as if I engages fuel jettison. Your theory really helps. Thanks
  3. High-Octane

    Need help from VB Gurus

    I evidently don't understand VB at all. What is actually setting or changing Perhaps, I got really confused. Seem like I got myself in mess.. I have suceed getting my application to Read Fuel Capacity, Lbs, and Percentage. But Unable to clarify the logic in writing them. Actually it's my first time doing this Say, if you were me... You use C ?? (I assume thats the programming language you are familar with) and you wanted to increase or decrease fuel % for center tank. How would you implement it? with calculation of Fuel Level and Capacity? Let me know Arthur
  4. High-Octane

    Need help from VB Gurus

    Apparently, I must mistype it, I type the whole thing in this previous post instead copying it out of VB appl... So, 'setLFuelPct' correct ....
  5. I created application that has two command button and a label.... One command button is to increase value and other command button is to decrease value. Using FSUIPC write...so here's code snippet. Private Sub Increase_Click() Lfuelval 1 End Sub Private Sub Decrease_Click() Lfuelval -1 End Sub Private Sub Lfuelval(ByVal argNum As Long) Dim dwresult As Long Dim setLfuelPct As Long Dim Value Call FSUIPC_Write(&HB7C, 4, VarPtr(setLfuel), dwresult) Call FSUIPC_Process(dwresult) setLfuelPct = Val(100) + argNum / 8372890 * (128 * 63556) LFuelPct.Caption = Val(LFuelPct.Caption) + argNum End Sub It did not work, what did I do wrong?? if you can help I'd be appreicated.[/b]
  6. High-Octane

    Fuel weight

    Well if you could... run FS, select jetliner aircraft such as 737, 747, or 777, select fuel from the aircraft menu. Then you would notice pounds of these three tanks (L+C+R). That's what I'm trying to figure out getting exact same thing into my VB appl. So would offset 0B98-Cap Gallon, 0B94 Level, or reverse from my best memory (don't have offset table with me at work) change too based on different altitude? Uh-Oh that's going to be complicated... :? but I believe I would figure out somehow.
  7. High-Octane

    Fuel weight

    Pete... with offset 0AF4 -- Fuel weight... I assume it adds up total fuel weight for aircraft... In FSInterrogate It shows #/256 lbs/gal, a 1715 as buffer and factored up 6.69922. Now I am trying to get exactly fuel weight for Left, Center and Right tank, how could I calculate it? Would I have to calculate it with L+C+R Fuel Cap Gal, Level? Let me know
  8. High-Octane

    Refueling Offset

    Yes, I have seen several fuel offsetzs, but never thought they can be used as refueling... Oh, sound good.. I will give it a try, Never tried FS_Write in VB before... How about Fuel Jettison? wouldn't that occur only in specific aircraft types?
  9. Are there any offset on Refueling aircraft? I went through Offset Table and FSInterrogate, couldn't find any. I recall someone did use offset on refueling back then on this forum. Anyone?
  10. efratomer That's only solution... otherwise we can't really help by giving the exact you need.
  11. efratomer, Without looking at FSInterrogate, this is where you get value wrong. For example You wrote: Dim dwResult As Long Dim GndAlt As Integer Private Sub Timer1_Timer() GndAlt = 0 If FSUIPC_Read(&HB4C, 2, VarPtr(GndAlt), dwResult) Then If FSUIPC_Process(dwResult) Then Label1.Caption = "Altitude: " & GndAlt End If End If End Sub GndAlt = 0 will always stay 0 because you set to 0, otherword it does nothing but stay 0. Now try this code... Dim dwResult As Long Dim GndAlt As Integer Private Sub Timer1_Timer() If FSUIPC_Read(&HB4C, 2, VarPtr(GndAlt), dwResult) Then If FSUIPC_Process(dwResult) Then GndAlt = 3.28084/ 256 Label1.Caption = Format(GndAlt,"Altitude: 000") End If End If End Sub How do I know? Well it's in FSInterrogate, showing how to write equation for offset value. I know it sound complicated for beginner., I have been there. Without FSI none of programmer would have got it worked. My strong advice to you... Play around with it, click on everything but dont save it, learn it, make it useful and you will understand it. I promise you, you would feel it's worth it. :wink:
  12. High-Octane

    Looking for offsets

    Okay :) Will keep on reading, reading and reading. Will try to play around and anaylize and find some crucial information on offsets. Thanks
  13. High-Octane

    Looking for offsets

    Yeah Pete, Sometime I wish there is easy way for you to hack some variables in FS, so that way everyone can entitle to use so many varible that FS uses for their 3rd party or written program. Perhaps next version could be better for you :wink: I have recongise some of variable listed in FS interrogation has already declared offset but FSUIPC does not support it. I was curious to know why?
  14. Hi Pete I was hoping there are offset that can get aircraft doors such as enterance/exit. cargo or perhaps engine doors. There are some type of addon aircraft that include it, and it can be found under FS2002 or higher command control "select exit" or wing fold/unfold. Let me know
  15. Correct Pete... VB doesn't support unsigned, But it can be converted. For example when come across operation, HiWords or LoWord in C . VB would have to strip out the high bit and add it back again later to avoid overflows and misleading results. I have seen it and its so far complicated than I thought. Assume, MS designed VB for Basic Programmers who doesn't have much knowledge in advance type of operations. It's supported :wink: You declare As Byte in VB. Of course because Bytes equals to 8 bits :D No Idea, In VB6 I don't think there is any compiler option... you just complie it once and if it detects error it will acknowledge you rather its declaration arguement or math operations is not properly converted. That would avoid from system crash, this is probably another reason why unsigned is not supported.
×

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.