Search found 2267 matches

by JackZ
Thu Sep 07, 2023 1:55 am
Forum: General Instrument Help
Topic: Trying to simulate instrument errors in a VSI
Replies: 18
Views: 4653

Re: VSI and altitude

I “think” you are probably overthinking this. In the standard atmosphere model the pressure decreases “almost” linearly with altitude since density is derived from temperature that changes linearly with altitude. The real formula is here: http://fisicaatmo.at.fcen.uba.ar/practicas/ISAweb.pdf Integra...
by JackZ
Wed Sep 06, 2023 9:06 pm
Forum: Air Manager Help
Topic: ((autopilot_state >> 4) & 1 == 1) )
Replies: 12
Views: 705

Re: ((autopilot_state >> 4) & 1 == 1) )

Interesting question.
Not sure if in Lua true is equal to 1 and false equal to 0 as in other languages. Not a Lua specialist to be honest, just using the normal stuff, never used bitwise operations.

Take care my friend!
by JackZ
Wed Sep 06, 2023 11:03 am
Forum: Air Manager Help
Topic: ((autopilot_state >> 4) & 1 == 1) )
Replies: 12
Views: 705

Re: ((autopilot_state >> 4) & 1 == 1) )

Hi guys if ((autopilot_state >> 4) & 1 == 1 basically is shifting right the bits of autopilot_state so by shifting 4 places and then 'anding' with 1 means we are looking specifically at the bit 4 in autopilot_state. the & 1 == 1 could simply be & 1 as far as I can see as this is operati...
by JackZ
Wed Sep 06, 2023 5:58 am
Forum: Air Manager Help
Topic: ((autopilot_state >> 4) & 1 == 1) )
Replies: 12
Views: 705

Re: ((autopilot_state >> 4) & 1 == 1) )

1==1 is always true AFAIK. I don’t know what’s the point with this part of the code. And without the surrounding code it is difficult to understand what it is doing. Where autopilot_state gets its value from? Is it for MSFS? Which addon? The best is to tell which autopilot instrument the code extrac...
by JackZ
Sun Sep 03, 2023 5:08 pm
Forum: General Instrument Help
Topic: Trying to simulate instrument errors in a VSI
Replies: 18
Views: 4653

Re: VSI and altitude

Hi. What you described is the principle for an altimeter. The aneroid capsule is sealed and submitted to the ambient static pressure taken from the static port. Less ambient pressure outside the capsule, inflates the capsule and moves the needle through a set of reduction gear. A VSI in its principl...
by JackZ
Tue Aug 29, 2023 7:18 pm
Forum: Under development and finished work
Topic: Air Manager Panel for Leonardo Maddog X MSFS
Replies: 13
Views: 3911

Re: Air Manager Panel for Leonardo Maddog X MSFS

Most likely, there is some internal calculations with a specific Lvar. Had the same problem with the Carenado PC12.
Try to hunt down any exotic Lvar with EGT using the developer’s tool Behavior explorer
by JackZ
Tue Aug 29, 2023 7:14 pm
Forum: Air Manager Bug Reports
Topic: [WIKI] Clarification Requests / Typos & dead links report
Replies: 9
Views: 2713

Re: [WIKI] Typos & dead links report

I do confirm.
The link to XPlane Datarefs from the Wiki page is dead
by JackZ
Mon Aug 28, 2023 2:42 pm
Forum: Air Manager Help
Topic: New User - Bespoke Panels?
Replies: 5
Views: 347

Re: New User - Bespoke Panels?

That’s the joy of Air Manager, you can create your own instruments. The learning curve is steep at first, and some graphic skills along some programming are involved but it’s worth the try. The forum is here to help, I can even add some needle vibration routines once done, to mimic the needle vibrat...
by JackZ
Mon Aug 28, 2023 8:36 am
Forum: Lua and API Scripting Help
Topic: Can't read LVAR in Leonardo's Md80
Replies: 4
Views: 1368

Re: Can't read LVAR in Leonardo's Md80

You could try
fs2020_variable_subscribe("L:fgcp_autothrottle_switch1", "number", atSwitch)

I found that on other sims, some LVars return a number instead of an INT or Float
by JackZ
Sun Aug 20, 2023 1:27 pm
Forum: Under development and finished work
Topic: PC 12 panel
Replies: 4
Views: 1799

Re: PC 12 panel

Unfortunately not, as it is a private development command for a customer. Apart the radio, everything is custom. And the MSFS port was a pain… As usual I worked out of the real manual to add features not included in the Carenado addon The Altitude selector KCS297 is also on the works, here again poo...