Merge branch 'jmt/navradio'
This commit is contained in:
commit
2bd897df8e
1 changed files with 4 additions and 1 deletions
|
@ -917,7 +917,10 @@ void FGNavRadio::search()
|
|||
double FGNavRadio::localizerWidth(FGNavRecord* aLOC)
|
||||
{
|
||||
FGRunway* rwy = aLOC->runway();
|
||||
assert(rwy);
|
||||
if (!rwy) {
|
||||
return 6.0; // no runway associated, return default value
|
||||
}
|
||||
|
||||
|
||||
SGVec3d thresholdCart(SGVec3d::fromGeod(rwy->threshold()));
|
||||
double axisLength = dist(aLOC->cart(), thresholdCart);
|
||||
|
|
Loading…
Add table
Reference in a new issue