In cockpit.cfg ensure you have activated the necessary altimeters. There are up to 4 available. Note that in this section they are numbered 0 to 3 but in all other interactions they will be numbered 1 to 4.
[ALTIMETERS]
altimeter.0 =1
altimeter.1 =1
altimeter.2 =0
altimeter.3 =0
altimeter_position.0=0.000000,0.000000,0.000000
altimeter_position.1=0.000000,0.000000,0.000000
altimeter_position.2=0.000000,0.000000,0.000000
altimeter_position.3=0.000000,0.000000,0.000000
To read the values simply use an index (1 to 4). In these examples I will show the use of index 1 and 2 (for altimeter.0 and altimeter.1).
To read the altitude you would use:
(A:Indicated Altitude:1,feet)
(A:Indicated Altitude:2,feet)
For the kohlsman setting use:
(A:KOHLSMAN SETTING MB:1, mbar)
(A:KOHLSMAN SETTING HG:2, inHg)
To set the altimeter you can use the KOHLSMAN_INC and DEC functions. To set the Kohlsman independently send an index into the input event:
1 (>K:KOHLSMAN_DEC)
2 (>K:KOHLSMAN_INC)
To use the KOHLSMAN_SET input event you specify the index like this (I have no idea if the set value should be in millibars or inhg, I have used millibars in this example):
1010 (>K:1:KOHLSMAN_SET)
1010 (>K:2:KOHLSMAN_SET)
To set the BAROMETRIC (sets the altimeter to the current air pressure automatically) you send the index into the input event just like you do with the INC and DEC events:
1 (>K:BAROMETRIC)
2 (>K:BAROMETRIC)
[ALTIMETERS]
altimeter.0 =1
altimeter.1 =1
altimeter.2 =0
altimeter.3 =0
altimeter_position.0=0.000000,0.000000,0.000000
altimeter_position.1=0.000000,0.000000,0.000000
altimeter_position.2=0.000000,0.000000,0.000000
altimeter_position.3=0.000000,0.000000,0.000000
To read the values simply use an index (1 to 4). In these examples I will show the use of index 1 and 2 (for altimeter.0 and altimeter.1).
To read the altitude you would use:
(A:Indicated Altitude:1,feet)
(A:Indicated Altitude:2,feet)
For the kohlsman setting use:
(A:KOHLSMAN SETTING MB:1, mbar)
(A:KOHLSMAN SETTING HG:2, inHg)
To set the altimeter you can use the KOHLSMAN_INC and DEC functions. To set the Kohlsman independently send an index into the input event:
1 (>K:KOHLSMAN_DEC)
2 (>K:KOHLSMAN_INC)
To use the KOHLSMAN_SET input event you specify the index like this (I have no idea if the set value should be in millibars or inhg, I have used millibars in this example):
1010 (>K:1:KOHLSMAN_SET)
1010 (>K:2:KOHLSMAN_SET)
To set the BAROMETRIC (sets the altimeter to the current air pressure automatically) you send the index into the input event just like you do with the INC and DEC events:
1 (>K:BAROMETRIC)
2 (>K:BAROMETRIC)

