See site in english Voir le site en francais
Website skin:
home  download  forum  link  contact

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

Author Topic: DGII fuel loading question  (Read 2108 times)

0 Members and 1 Guest are viewing this topic.

Offline Orbiter Fan

  • Full Member
  • ***
  • Posts: 162
  • Karma: 0
11 May 2003, 15:58:02
Hello.

Today, I was thinking on something that would be good and realistical to implement into the
shuttle fleet. I'm thinking on External Tank fuel and oxidizer loading. Dan, how are you
acomplishing the DGII fuel loading? Then I don't refer to the crossfeed system. I refer to the
refueling system when you activate the "Fuel hatch" button. Would it be possible to borrow the
code from DGII to the shuttle fleet? In the April 19 build you could acomplish this by setting
MaxRetroThrust to a negative thrust amount and then in the simulation start the "retro engine" to
fuel the vessel.

« Last Edit: 11 May 2003, 17:44:53 by Orbiter Fan »

Offline DanSteph

  • Administrator
  • Legend
  • *****
  • Posts: 15407
  • Karma: 256
  • Hein, quoi !?
    • FsPassengers
Reply #1 - 11 May 2003, 17:44:53
Hello David,

I use a function of the SDK: SetPropellantMass
the routine look as follow and as to be called within ovctimestep:


if(GetPropellantMass(ph_main)<MAX_MAIN_FUEL)
{
       // fuel the tank adding a small amount at each frame
       SetPropellantMass (ph_main,GetPropellantMass(ph_main)+(float)Data.SimStep*60);
       // Ensure that we don't fuel too much
       if(GetPropellantMass(ph_main)>MAX_MAIN_FUEL)
       {        
             SetPropellantMass (ph_main,MAX_MAIN_FUEL);
             // add fuel completion flag here
       }
}


the blank space are gone but once you indent it correctly
it will look clear.


Dan

« Last Edit: 11 May 2003, 17:44:53 by DanSteph »