1
0
Fork 0
Commit graph

17 commits

Author SHA1 Message Date
James Turner
d0d55ccb04 Route-manager: use Flightplan transition data
Explicitly use the flight-plan transition data when building the
routes for the SID and STAR. Previously we didn’t actually pick
this up reliably.
2020-05-21 22:34:28 +01:00
Henning Stahlke
fba17e4d34 Replace printlog by logprint 2020-04-21 09:07:20 +02:00
James Turner
d1998f27ff Default GPS handling of DISCON waypoints
When a DISCON is sequencing, revert to OSB mode at the current heading.
Also fix heading capture when reverting to OBS mode in various other
places.
2020-04-19 17:05:29 +01:00
James Turner
fc50680694 Use logprint() in various places
This reduces Nasal console spamming to match to the set log-level
2020-04-19 16:46:57 +01:00
James Turner
f83caf7e45 The default GPS delegate now handles sequencing
In conjunction with some FlightGear changes, the delegate can now do
all sequencing decisions, i.e the GPS C++ code does not make any policy
decisions about sequencing.

Update the default Nasal delegate to mimic the old behaviour, and set
the config option, both to allow future developments and to demonstrate
the new API.
2019-09-20 13:08:10 +01:00
James Turner
20bcc16032 Route-manager: guard against a procedure failure
When we have a STAR which is invalid for the selected runway, which
can occur when switching runway/approach, don’t cause a Nasal runtime
error.
2019-06-24 16:41:45 +01:00
James Turner
e370899a93 Procedures: be defensive about STAR/approach choice.
Current GUI allows selected mis-matched STAR and approach. Low risk
fix is to detect and deal with this case by just routing direct. Real
fix involves a slicker GUI or inserting a route discontinuity (possible
in FG 3.6 hopefully)
2015-01-10 19:38:29 +00:00
James Turner
f786e57c96 Set new route-path / flightplan control values.
Propagation is done by the FMSDelegate so custom FMS/GPS
systems can trivially replace this behaviour.
2015-01-08 19:48:17 +00:00
James Turner
6a763a0d77 Route-manager: fix approach transitions. 2014-12-19 17:02:55 +00:00
Philosopher
807062d0b6 Misc. Nasal cleanup 2014-06-06 21:19:11 -05:00
James Turner
0b6dbe9ad0 Bug-fix: only set AP altitude for 'at' constraint. 2014-01-18 08:45:20 +00:00
James Turner
43a8b16dab Fix altitude constrain handling.
Thanks to Curt for spotting the issue.
2013-07-22 18:04:14 +01:00
James Turner
246f4e2bac Fix an issue with circular flight-plans.
Hyde identified a problem where the departure and destination
runway are identical; the logic would detect a 'landing' on
activation and immediately deactivate the FP again.
2013-06-01 11:12:23 +01:00
James Turner
b64dd768d3 Move more high-level GPS logic to Nasal/XML. 2013-04-10 18:52:34 +01:00
James Turner
4d3a00bf68 Use Nasal to provide GPS search functions. 2013-04-10 18:52:34 +01:00
James Turner
6612848745 Explicit 'cleared' callback for FP Delegate.
Fix bug 940, where GPS remains in active LEG mode when the route is cleared. (there is an associated flight gear code change). With this fix, the work-around in the GUI dialog is no longer required.
2012-12-31 17:38:18 +00:00
James Turner
898b3769d3 Add default FlightPlan delegate for the route-manager. 2012-05-15 17:51:48 +01:00