Typos.

parent c19f327b
......@@ -30,36 +30,30 @@
<lat type="double">54.26</lat>
</wp>
<wp n="3">
<type type="string">navaid</type>
<ident type="string">BMK</ident>
<lon type="double">48.225</lon>
<lat type="double">54.26333333</lat>
</wp>
<wp n="4">
<type type="string">navaid</type>
<ident type="string">ORN</ident>
<lon type="double">55.45333333</lon>
<lat type="double">51.7975</lat>
</wp>
<wp n="5">
<wp n="4">
<type type="string">navaid</type>
<ident type="string">AKB</ident>
<lon type="double">57.183889</lon>
<lat type="double">50.263056</lat>
</wp>
<wp n="6">
<wp n="5">
<type type="string">navaid</type>
<ident type="string">GN</ident>
<lon type="double">67.792553</lon>
<lat type="double">47.737081</lat>
</wp>
<wp n="7">
<wp n="6">
<type type="string">navaid</type>
<ident type="string">ALM</ident>
<lon type="double">77.085833</lon>
<lat type="double">43.374444</lat>
</wp>
<wp n="8">
<wp n="7">
<type type="string">runway</type>
<approach type="bool">true</approach>
<ident type="string">05R</ident>
......
......@@ -174,14 +174,14 @@ var ImportFGFPAP = func(file) {
var count = 0;
for(var ii = 0; ii < fgfp.getPlanSize(); ii += 1){
# SIC First and last AP used for departure and destination.
if(count > 5){
print("AP > 8 ignored.");
break;
}
var wp = fgfp.getWP(ii);
if(wp.wp_type != "navaid"){
continue;
}
if(count > 5){
print("AP > 8 ignored.");
break;
}
var ap = airportinfo(wp.lat, wp.lon);
if(ap == nil){
continue;
......@@ -283,9 +283,11 @@ var ImportFGFPRM = func(file) {
setprop("/fdm/jsbsim/fcs/NPK/Orbita/flightplan/RM/RM[" ~ (count + 1) ~ "]/phi-deg", navaids[jj].lat);
setprop("/fdm/jsbsim/fcs/NPK/Orbita/flightplan/RM/RM[" ~ (count + 1) ~ "]/lam-deg", navaids[jj].lon);
var freq = navaids[jj].frequency;
# If RSBN, extract channel.
if((freq >= 960000.0) and (freq <= 964350.0)){
freq = int((freq - 959950.0) / 50.0);
if((freq >= 96000.0) and (freq <= 96435.0)){
# If RSBN, extract channel.
freq = int((freq - 95995.0) / 5.0);
}else{
freq /= 100.0;
}
setprop("/fdm/jsbsim/fcs/NPK/Orbita/flightplan/RM/RM[" ~ (count + 1) ~ "]/f", freq);
count += 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment