Description Usage Arguments Value Examples
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.
1 2 |
plan |
A flight plan, as a data.frame. Plans created with |
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 |
init.mag |
At the initial waypoint, does the HSI show magnetic heading (instead of true heading)? |
merge |
Merge the NVU data into |
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
.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.