Jump to content
The simFlight Network Forums
CXA001

Prevent Refueling Mid-Flight

Recommended Posts

As we are not a military VA, we do not have facilities to refuel during mid-flight.

How would I go about prevent our pilots from adding fuel during mid-flight? I have looked at the different offsets and can't seem to find one that would prevent the pilot from adding fuel.

Regards,

Marc

Share this post


Link to post
Share on other sites
45 minutes ago, CXA001 said:

How would I go about prevent our pilots from adding fuel during mid-flight? I have looked at the different offsets and can't seem to find one that would prevent the pilot from adding fuel.

You'd have to read the fuel quantities per tank and prevent them being increased. i.e keep a note of the last value and if an increase is seen, write back the last value you read. If you do this often enough the user won't even see the blip.

You can make an aircraft use less or more fuel using the same technique. This is how fuel leak problems are simulated by some instructor programs which provide fault simulation.

Pete

 

Share this post


Link to post
Share on other sites

Perhaps you made it but just to show a way to other people.. my application collects data from the aircraft 10 times per second. On every collect run, I calculate the total fuel on board, put the calculated value on a variable called "currentfuel". I also have another variable "lastfuel" which is assigned the amount of total fuel in the very beginning. If currentfuel > lastfuel then.... do whatever... else lastfuel=currentfuel.

My app disqualifies the flight :)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • 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.