• There seems to be an uptick in Political comments in recent months. Those of us who are long time members of the site know that Political and Religious content has been banned for years. Nothing has changed. Please leave all political and religious comments out of the forums.

    If you recently joined the forums you were not presented with this restriction in the terms of service. This was due to a conversion error when we went from vBulletin to Xenforo. We have updated our terms of service to reflect these corrections.

    Please note any post refering to a politician will be considered political even if it is intended to be humor. Our experience is these topics have a way of dividing the forums and causing deep resentment among members. It is a poison to the community. We appreciate compliance with the rules.

    The Staff of SOH

  • Server side Maintenance is done. We still have an update to the forum software to run but that one will have to wait for a better time.

Spinning needles

Ascua02

Born to fly...
Hello Gents

I am pretty novice (totally) at creating gauges, however I am trying to create some fuel gauges for the C-119 bt Daisuke Yamamoto. The setup looks very straightforward, 2 central tanks (500 Gal each), 2 main tanks (855 Gal each) and 2 tip tanks (457 Gal apiece) , so I created a gauge with 2 needles for the central tanks and a gauge for each of the others.

The code was also pretty straightforward and inspired (damn right copied :redf: with the necessary modifications, of course) from several other fuel gauges in my setup that work perfectly.

Here comes the rub, whenever I load the fuel the needles do more or less 3 complete turns and then stop somewhere which it is not where they should. I looked the code about 40000 times but for the life of me I can't find where the fault is, it looks like the minimum, maximum values are not read or something like that (thinking of it, looks like the culprit is the maximum value) but I am at a loss.

Does somebody have any ideas or found the same problem? if you need the code and/or the images, give me a shout and I'll send them to you.

Thanks for your help

Saludos
 
I will look in my old files

Ascua02,
I remember having a tutorial about this, I will look thru my old archives and get back with you. Something in my feeble memory says that your digits should all be in even ( squared numbers ) followed by a . or :. Hell, I just don't remember, I will search my files and get back with you.

Dave aka No Dice
 
Never mind, found the problem, sheer stupidity and watching the numbers too long, the nonlinearity was wrong and I could not see it :banghead::banghead::isadizzy:

Thanks anyway
 
Back
Top