Can I assign a A:Parameter to a G:Var1 type?

Recommended Posts

Dear gauge builders,I need to preserve the original value of the

Share on other sites
 Help AVSIM continue to serve you!Please donate today!

Yes, what you're trying to do is very easy... (A:FUEL TOTAL QUANTITY WEIGHT, pounds) (>G:Var1) I have to assume that you actually WANT to be using a click event to store the original fuel qty, but just so you know, there are other more appropriate ways to do that, such as when the aircraft is loaded.--Jon

Share on other sites

Thanks Jon for your fast response,Yes, your explanation helps a lot...The idea is keep the initial fuel load and then subtract to the actual quantity, so I can get the consumed fuel. Take in mind the plane is not always loaded with the same fuel quantity. This is my code. But is done with a fix starting fuel quantity (2565 lbs). My idea is get the Total Fuel Quantity initial value and put it in a variable, then replace the fix value with the G:Var1. The actual Event loads and swap (0 to 1 and viseversa) for put the gauge to zero before take-off, multiplicating by zero or by 1 the

Share on other sites

Hi,May be this one is useful too.It gives you the used fuel per engine since startup.This is the code for engine 1 :(P:ABSOLUTE TIME,seconds) (L:Last time eng 1,number) d 0 > if{ - 3600.0 / (A:ENG1 FUEL FLOW PPH,pounds per hour) * (L:used fuel eng 1,number) + (>L:L:used fuel eng 1,number) } (P:ABSOLUTE TIME,seconds) (>L:Last time eng 1,number) %((L:used fuel eng 1,number))%!d!Jan"Beatus Ille Procul Negotiis"

Share on other sites

Hi Jan, Thanks for your good contribution. I will give a try this code right now!Mines works fine now, and the code is this: (need some cosmetics yet).%((G:Var2) (A:fuel total quantity weight, pounds) near - (G:Var1) *)%!04s!(G:Var1) ! (>G:Var1) (A:fuel total quantity weight, pounds) near (>G:Var2)Have another question. What about the "goto" facilities, which jump executions to the corresponding label ":0", ":1", ""? Any example?Thanks again for help.Dirk Trotteyn (SANT)

Share on other sites

Not sure,You can find them in the GPS.(@g:listItems) 0 != if{ l1 l2 * l3 >= if{ :10 (@g:listCurrent) ++ l2 * (@g:listScroll) - 5 + l3 >= if{ (@g:listScroll) l2 + (>@g:listScroll) g10 } :11 (@g:listScroll) 0 > (@g:listCurrent) l2 * (@g:listScroll) - 5 - 0 <= and if{ (@g:listScroll) l2 - 0 max (>@g:listScroll) g11 } } els{ 0 (>@g:listScroll) }Still not totally clear how they work.Jan"Beatus Ille Procul Negotiis"

Create an account

Register a new account

• Tom Allensworth,
Founder of AVSIM Online

• Hot Spots

• Flight Simulation's Premier Resource!

AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!