planNVU: Obtain NVU navigational data for a flight plan

Description Usage Arguments Value Examples

Description

This function gets a flight plan as input (i.e. a list of waypoints and geographical coordinates) and calculates appropriate data to feed the NVU navigational computer of the Tu-154B.

Usage

1
2
planNVU(plan, points = NULL, cols = c("fix", "fixLat", "fixLon"),
  init.mag = FALSE, merge = TRUE)

Arguments

plan

A flight plan, as a data.frame. Plans created with planRoute are accepted as input. At a minimum, the data frame.should have three columns: waypoint names, latitudes and longitudes.

points

An optional vector of row numbers or waypoint names to select from the flight plan.

cols

An optional vector of column names, if these are named differently in plan

init.mag

At the initial waypoint, does the HSI show magnetic heading (instead of true heading)?

merge

Merge the NVU data into plan?

Value

If merge = FALSE, returns a matrix with columns ZPY, S and da. ZPY (orthodromic HSI course heading) and S (leg distance, negated) can be fed to the NVU panels. da is the azimuth correction at each waypoint.

If merge = TRUE the above columns are added to the data.frame plan.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Fly from Athens to Samos island
plan1 <- planRoute("LGAV", "LGSM", "KEA", "URNIL")
print(plan1)

# Calculate the data for the NVU
plan1 <- planNVU(plan1, init.mag=TRUE, merge=TRUE)

# We don't need to split the route into so many NVU legs.
# Let's only focus on waypoints with course changes, and recalculate
#     the NVU data with fewer, more manageable legs:
plan1 <- planNVU(plan1,
                 points = c("LGAV","KEA", "RIPLI", "IKARO", "URNIL"),
                 init.mag=TRUE, merge=TRUE)


# Create a flight plan from Moscow (Sheremetyevo) to Tashkent
plan2 <- planRoute("UUEE", "UTTT", "DK", "DODUR")

# It helps if we visualize the plan, by writing it on a KML file:
makeKml(plan2, "UEEE-UTTT.kml")

# Calculate the data for the NVU
plan2 <- planNVU(plan2, c("UUEE", "DK", "FV", "QL", "UWPP", "OG", "URL",
                          "KEKUN", "EL", "NKZ", "MIKNO", "DODUR", "UTTT"),
                 init.mag=TRUE, merge=TRUE)

thlytras/rfgfs documentation built on May 31, 2019, 10:44 a.m.