January 8, 200521 yr 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.
January 8, 200521 yr 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
January 8, 200521 yr OK, that won't work... AP_PANEL_ALTITUDE_SET just turns the altitude hold on. Have you tried AP_ALT_HOLD_ON ?Doug
January 8, 200521 yr Hi,(>K:AP_ALT_HOLD) toggles hold on and off (i think).Jan"Beatus Ille Procul Negotiis" Jan "Beatus ille qui procul negotiis..."
January 9, 200521 yr Moderator 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
January 9, 200521 yr 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!!
January 9, 200521 yr 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
January 12, 200521 yr Author Commercial Member 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 Jon Blum Vertical Reality Simulations
Create an account or sign in to comment