Fix CI into AF (DTMB ALTER SID into 07)
This commit is contained in:
parent
73373420d3
commit
048d5129aa
@ -40,7 +40,7 @@ LGAV 03L BIBE1K SID (Cycle 2507, ID 10653)
|
|||||||
|
|
||||||
While similar to an RF, the center point is coded differently.
|
While similar to an RF, the center point is coded differently.
|
||||||
|
|
||||||
Calculate distance for FMS based on ` 2 * π NavDist * abs(NavBear - Course) 360`.
|
Calculate distance for FMS based on `2 * π * NavDist * abs(NavBear - Course) 360`.
|
||||||
|
|
||||||
|
|
||||||
## Course to Altitude (CA)
|
## Course to Altitude (CA)
|
||||||
|
|||||||
@ -1,3 +1,4 @@
|
|||||||
|
import computeDestinationPoint from 'geolib/es/computeDestinationPoint';
|
||||||
import getGreatCircleBearing from 'geolib/es/getGreatCircleBearing';
|
import getGreatCircleBearing from 'geolib/es/getGreatCircleBearing';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -29,8 +30,12 @@ export const getCourseAndFixForIntercepts = (leg: TerminalEntry, origin: NavFix)
|
|||||||
}
|
}
|
||||||
case 'AF': {
|
case 'AF': {
|
||||||
const _leg = leg as AFTerminalEntry;
|
const _leg = leg as AFTerminalEntry;
|
||||||
const fix = { latitude: _leg.WptLat, longitude: _leg.WptLon };
|
const navAid = { latitude: _leg.NavLat, longitude: _leg.NavLon };
|
||||||
return [_leg.Course.reciprocalCourse().toTrue(fix), fix];
|
const fix = {
|
||||||
|
...computeDestinationPoint(navAid, _leg.NavDist.toMetre(), _leg.Course.toTrue(navAid)),
|
||||||
|
isIntersection: true,
|
||||||
|
};
|
||||||
|
return [_leg.Course.toTrue(fix), fix];
|
||||||
}
|
}
|
||||||
case 'DF': {
|
case 'DF': {
|
||||||
const _leg = leg as DFTerminalEntry;
|
const _leg = leg as DFTerminalEntry;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user