• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

Needle Rotation query

Messages
22
Hi all,

I'm on a project to create an analog Engine vibration gauge and have the background done and positioned the needle as an element with a needle image and have positioned it OK.

What I can't fathom is how to tie the angle of the needle with the variable value (It's a linear scale from zero in the 7 o'clock position round to five in the 4 o'clock position).


Any help here would be enormously appreciated.

Rgds Chris.

BTW I'm using FSX SP2
and ACES.EXE for design
 
Although you didn't say so, I'm assuming XML script because of the reference to the ACE.exe tool.

All "rotations" are defined by a non-linearity table, the points of which are determined by the x,y location where the tip of the needle will be when pointing in the specified position... <whew!>

If you load your image in Photoshop, you can use the cursor to read the x,y positions and simply enter them into the table.

I believe that the ACES.exe tool will also display x,y values based on your mouse cursor. Since I don't use the tool at all though, that's just what I think I remember... :D
 
Thanks hugely for that n4gix,

I've set a X and Y co-ordinates for maximum (5) and minimum (0) values.

One other thing is - would you know how I tie the gauge needle rotation to the variable? If I enter A: TURB ENG VIBRATION:1 as the script property of the "Expression" of the needle Element?

I get the error "Error Invalid script (no command is more than 4 characters".

And I can't see another property to use to specify that.

Thanks for the info,
Chris.
 
The variable is placed in the Properties/Script box as:

(A:TURB ENG VIBRATION:1,number) (or percent as you wish)

You must include the parentheses, and there's no space between A: and the variable name... ;)
 
Last edited:
Thanks, I got it working.

Actually, I found the ACE too unwieldy and have gone back to basics - creating/editing the XML in Notepad.

Funny thing was that the Variables listed in the SDK wouldn't work - But it worked when I used "A:TURB ENG1 VIBRATION, number", rather than "A:TURB ENG VIBRATION,index", don't know why.
 
Thanks, I got it working.

Actually, I found the ACE too unwieldy and have gone back to basics - creating/editing the XML in Notepad.

Funny thing was that the Variables listed in the SDK wouldn't work - But it worked when I used "A:TURB ENG1 VIBRATION, number", rather than "A:TURB ENG VIBRATION,index", don't know why.

That's because the correct syntax is:

A:Variable Name:index,units)

A:TURB ENG VIBRATION:1,number)
 
Back
Top