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

P3D v4 Glide Slope will not catch

Messages
10,163
Country
us-arizona
Hey all,

My Glideslope refuses to do its job. I cannot figure out whats going on. I have tried importing new stock AP's in from the 737 and Learjet 45, then in the SDK did some basic touches. Nothing. Still refuses to return to Earth.

I noted on my last test run, she was only descending at about 800 to 900 FPM descent and finally we are just about over the runway, still at 1900 feet. What in the world?

This is my AP section;

[autopilot]
autopilot_available= 1
flight_director_available= 1
default_vertical_speed= 1800.0
autothrottle_available= 1
autothrottle_arming_required= 0
autothrottle_max_rpm = 90
autothrottle_takeoff_ga= 0
pitch_takeoff_ga = 8;
max_pitch=10.0
max_pitch_acceleration=1.0
max_pitch_velocity_lo_alt=2.0
max_pitch_velocity_hi_alt=1.5
max_pitch_velocity_lo_alt_breakpoint=20000.0
max_pitch_velocity_hi_alt_breakpoint=28000.0
max_bank=27,14
max_bank_acceleration=1.8
max_bank_velocity=3.00
max_throttle_rate=0.10
nav_proportional_control=11.00
nav_integrator_control=0.20
nav_derivative_control=0.00
nav_integrator_boundary=2.50
nav_derivative_boundary=0.00
gs_proportional_control=9.52
gs_integrator_control=0.26
gs_derivative_control=0.00
gs_integrator_boundary=0.70
gs_derivative_boundary=0.00
yaw_damper_gain = 0.0
direction_indicator = 0
attitude_indicator = 0
default_bank_mode = 0 // 0 = None 1 = Wing Level Hold 2 = Heading Hold (current heading) 3 = Bank Hold
default_pitch_mode = 0 // 0 = None 1 = Pitch Hold 2 = Altitude Hold


Any idea's what could be wrong?



Bill
LHC
 
This is what I have in my autopilot code. The early Learjet autopilot was a bit different from normal, from todays systems. But Approach mode was pretty much the same. On mine, you have instrument panel buttons and center console buttons, which have to interact, including the 2D popup windows, so I made common L:Vars to turn things on and off. A bit complicated.

Here is the coding for Approach mode. This looks proper, I would think. I could be off though. I note that I am turning off NAV mode but when I engage AP APPR mode, the plane does find the localizer. Just cannot ride the beam down. No Glideslope.

Code:
<!-- Approach Mode Hold -->

           (L:LJ24B APPROACH HOLD SWITCH, bool) 1 ==
           (A:AUTOPILOT APPROACH HOLD,bool) 0 == and
                if{ (&gt;K:AP_APR_HOLD_ON)
                  0 (>L:LJ24B REV COURSE HOLD SWITCH, bool)
                  0 (>L:LJ24B NAV LOCK HOLD SWITCH, bool)
                  0 (>L:LJ24B HEADING HOLD SWITCH, bool) }

           (L:LJ24B APPROACH HOLD SWITCH, bool) 0 ==
           (A:AUTOPILOT APPROACH HOLD,bool) 1 == and
               if{ (&gt;K:AP_APR_HOLD_OFF) }
 
Oddly, in doing a lot of testing, looking at the code, not really doing anything to anything, it finds the glideslope. Not all the time. Like perhaps 2 out of 3. I dont like that. It should be every time.

Also, I think the 2 runways I originally was testing on didnt have glideslopes. lolol.. I have heard that some runways do not have glideslopes, but do have localizers. So I think my luck was running thin on finding test runways with ILS, lol.. That could be what happened.
 
Last edited:
Didn't we just have a thread about this?

Anyway:
- Runway needs to have glideslope
- Radios need to be tuned to the right frequency and the runway heading needs to be set as course
- You have to stay below the beam before intercepting; when the AP detects an intersection, it will disable altitude hold and start down

Descent performance can be tweaked with the values for the "gs_" parameters in the Aircraft.cfg.
Mind you that, unless autothrottle is available, approach velocity management is up to you. If you're too slow or fast, the autopilot won't be able to keep up.
Values from a suitable default aircraft (Lear 45 maybe) should be a good starting point. If your LJ's longitudinal stability isn't too far off, you might even get away without any tweaking at all.

PID controllers are explained here (in another context; items #4 to#8):
https://www.fsdeveloper.com/forum/threads/ap-speed-hold-pid-controller.437633/#post-762138
 
Bjoern wrote;
Didn't we just have a thread about this?

I looked... I searched...

Many thanks for the link and info. I still do not have a firm grip on how this thing functions, especially on GS. I would love to tune-out all the 'fuzzy' settings so that its 100%. I want it to lock on excellent.

I think when I was testing it yesterday (all day) I was at first catching the beam too high, including the previous days. Manfred was telling me last night about altitude restrictions on it. I didnt know they required such a low ALT to catch the GS. From yesterday evening, it started working correctly and I was at the right altitude.

I remember hearing in a conversation here years ago about AP's that they have a system where ALT HOLD is turned off when the GS beam is captured. Now, I still do not know if that is fact. I have coding in my AP manager that turns off ALT HOLD when APR is turned on. I wonder if I am over-riding a feature of flight simulator base coding that automatically turns APR HOLD on and off? I ended up making 'ATT HOLD' default pitch in the AP section of the config so that the plane (jet) will not start going Earth or Heaven bound during the run up to the Localizer zone, keeping it level.


Bill
LHC
 
I looked... I searched...

Fair enough.

I would love to tune-out all the 'fuzzy' settings so that its 100%. I want it to lock on excellent.

Considering you're modeling a 1960s/70s autopilot, 100% reliability is way too unrealistic.
This is one thing people won't understand more often than not. Autopilots used to be support systems to be handled with suspicion and care, not pilot replacements.

I remember hearing in a conversation here years ago about AP's that they have a system where ALT HOLD is turned off when the GS beam is captured. Now, I still do not know if that is fact. I have coding in my AP manager that turns off ALT HOLD when APR is turned on. I wonder if I am over-riding a feature of flight simulator base coding that automatically turns APR HOLD on and off? I ended up making 'ATT HOLD' default pitch in the AP section of the config so that the plane (jet) will not start going Earth or Heaven bound during the run up to the Localizer zone, keeping it level.

That's a good question. I think APR mode alone suffices to have ALT HOLD engaged before glideslope capture. Or that ALT HOLD mode, if manually engaged before intercept, is disengaged automatically. Worth a test maybe.
 
Back
Top