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

Separating the altimeters

Messages
1,468
Country
italy
I have two altimeters (one being the standby). However, the problem is that when adjusting one, it automatically updates the other. Which is not "as real as it gets!" As for example during the landing phase one is set for QNH and the other for QFE. During climb one is set for QNH the other at 1013mb.(and/or 2992)
Here are the entries in the cfg. file:-
Code:
gauge03=DM_VC10!ALTIMETER,  454,582,90,91
gauge48=DM_VC10!STANDBY_ALTIMETER,  739,745,89,88

So, my question is: How can I get the altimeters to work independently of each other.
vololiberista
 
There is this vastly underused document known as the FS SDK, in which most questions are answered...

altimeter.0
to
altimeter.n

If the parameter is set to 1, a separate altimeter is instantiated, which will operate independently of other altimeters, and can have failures applied to it.

IOW, simply add this entry to your aircraft.cfg file:

Code:
[altimeters]
altimeter.0 = 1
altimeter.1 = 1
 
There is this vastly underused document known as the FS SDK, in which most questions are answered...



IOW, simply add this entry to your aircraft.cfg file:

Code:
[altimeters]
altimeter.0 = 1
altimeter.1 = 1

Many thanks I'll try that.
vololiberista

Later:-
Is there a specific position in the cfg. file I need to put it?
Do I need to modify the gauge coding in the cfg. file?
Do I need to modify the gauge xml code?

I ask these questions because what you have suggested doesn't work!!!!!!!! The altimeters still work in tandem with your code entered into the cfg. file.
vololiberista
 
Last edited:
Many thanks I'll try that.
vololiberista

Later:-
Is there a specific position in the cfg. file I need to put it?
Do I need to modify the gauge coding in the cfg. file?
Do I need to modify the gauge xml code?

I ask these questions because what you have suggested doesn't work!!!!!!!! The altimeters still work in tandem with your code entered into the cfg. file.
vololiberista

It would appear not to be possible in FS9. Unless there is some way of coding the gauge. Which I'm not sure how to do.
vololiberista
 
It would appear not to be possible in FS9. Unless there is some way of coding the gauge. Which I'm not sure how to do.
vololiberista

You should have said in the first post this was for FS9...

...either by clicking on the dropbox in front of the Title: field, or putting it in your thread's Title line manually. ;)

No, this is specific to FSX. For FS9 you would need to write your own variable to control the second altimeter.
 
You should have said in the first post this was for FS9...

...either by clicking on the dropbox in front of the Title: field, or putting it in your thread's Title line manually. ;)

No, this is specific to FSX. For FS9 you would need to write your own variable to control the second altimeter.

That's the problem! The variable would have to allow me to set 1013mb in isolation and/or set QFE/QNH in isolation.
For example in the climb p1 would be set to QNH stby to 1013 at trans alt p1 set to 1013.
in the descent p1 set to QNH at trans alt. below trans alt stby set to QNH p1 to QFE.

Not an easy one!!
vololiberista
 
If you declare altimeter.0 and altimeter.1 in the aircraft.cfg in FSX this is only valid to have diferent failures but not different pressure.

My opinion is that we must know the value of 1 mb in altitude. But I am not sure that it's a simple value.

Jean-Pierre
 
My opinion is that we must know the value of 1 mb in altitude.

It's 30 feet give or take. Theoretically it does increase with altitude but for operations below ~30000' that's considered close enough.
 
Hello,

I made the different altimeters in C++, using execute_calculator_code as it is not possible directly using token variables. In the aircraft.cfg you must declare altimeter.0 and altimeter.1.
In your gauge code you must declare 2 variables for the baro pressure and the altitude :
static FLOAT64 altitude_2 = 0;
static FLOAT64 press_inhg_2 = 0;
THe variables are used to display on the gauge.
In the gauge calback you must calculate the values of the baro pressure and altitude :
case PANEL_SERVICE_PRE_UPDATE:
// We calculate the altitude
execute_calculator_code("(A:INDICATED ALTITUDE:2,FEET)", &altitude_2, NULL, NULL);
execute_calculator_code("(A:KOHLSMAN SETTING HG:2, inHg)", &press_inhg_2, NULL, NULL);

To increase/decrease the pressure altitude, use this:
static BOOL FSAPI baro_press_inc_cb( PPIXPOINT relative_point, FLAGS32 mouse_flags )
{
execute_calculator_code("2 (>K:KOHLSMAN_INC,number)",NULL, NULL, NULL);

return FALSE;
}
Hope this helps
Jean-Pierre
 
Again somewhat late after the original post but from one of my FSX gauges:

(L:B21_C4_kohlsman, millibars) (A:SEA LEVEL PRESSURE, millibars) - 9 *
(A:PLANE ALTITUDE, meters) +
(>L:B21_C4_indicated_altitude, meters)

I.e. the knob on the gauge adjusts (L:B21_C4_kohlsman, millibars) while the gauge displays (L:B21_C4_indicated_altitude, meters). As a non-reverse-polish expression this is:

(L:B21_C4_indicated_altitude, meters) = (A:PLANE ALTITUDE, meters) + 9 * ((L:B21_C4_kohlsman, millibars) - (A:SEA LEVEL PRESSURE, millibars))

i.e. you adjust the 'plane altitude' by 9 meters per millibar of delta in the knob versus sea level, or 29.5 feet as said earlier.

B21
 
Back
Top