Jump to content
Sign in to follow this  
Varmint007

Altitude Hold gauge

Recommended Posts

Hi everyone,Does anyone know of a code for a "Altitude Hold gauge" so when pressed it will hold current altitude and not the one dialed in the window. I've tried:1. wing level - but it just levels the wings and I start to decent.2. altitude hold bool - just keeps climbing until altitude set in the window.3. altitude lock bool - same as aboveMaybe it's a combination of different gauges? If anyone has had anyluck with this please let me know.

Share this post


Link to post
Share on other sites

You could try using the AP_PANEL_ALTITUDE_SET command to set the displayed altitude equal to the current altitude. Then use AP_PANEL_ALTITUDE_HOLD to hold the altitude you just set equal to the current altitude.Doug

Share this post


Link to post
Share on other sites

OK, that won't work... AP_PANEL_ALTITUDE_SET just turns the altitude hold on. Have you tried AP_ALT_HOLD_ON ?Doug

Share this post


Link to post
Share on other sites

Hi,(>K:AP_ALT_HOLD) toggles hold on and off (i think).Jan"Beatus Ille Procul Negotiis"

Share this post


Link to post
Share on other sites

In C:if ( alt_select == 1 ) { trigger_key_event (KEY_AP_PANEL_ALTITUDE_HOLD,0) ; } if ( alt_select == 2 ) { trigger_key_event (KEY_AP_ALT_HOLD,0) ; } The first command will hold preset altitude.The second command will "capture and hold" current altitude.


Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

Share this post


Link to post
Share on other sites

Hi Bill, Thanks a whole bunch for the code in "C". I was going to ask if anybody knew it since I'm still having trouble with this combination in XML. Do you have this "C" formula in XML? If you or any others could help me I would greatly appreciate it.Cheers!!

Share this post


Link to post
Share on other sites
Guest dek

Hi,You could always have a button that will set the current altitude value to the altitude hold value when clicked.Also, if you had the bird level, you could use (>K:ATT_HOLD_ON) to capture the current pitch. Or, say if pitch is equal to 0, then capture the indicated attitude.Random thoughts, I hope they're helpful!don

Share this post


Link to post
Share on other sites

I use this to capture and hold the current baro altitude. Of course you can also use radar altitude with (A:Radio Height, feet).(A:Pressure Altitude, feet) (>K:AP_ALT_VAR_SET_ENGLISH) (>K:AP_PANEL_ALTITUDE_ON)If you want to get fancy you can also use an interrogator to trim the aircraft prior to setting altitude hold, but that's way beyond the scope of your original question.--Jon

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...