Implementing VNAV support in FlightGear: Difference between revisions

Jump to navigation Jump to search
Line 276: Line 276:


=== Adding new Control System Components ===
=== Adding new Control System Components ===
Here's a stub to add an empty '''FGDummy''' component to JSBSim:
We'll probably want to extend JSBSim's FCS framework, to allow VNAV-related components to be registered and parametrized, such as for example:
* flight-plan (encapsulates route, leg, waypoints and constraints)
* trajectory-predict (runs a 2nd FDM instance to "look-ahead" for some point in time)
* performance-compute (computes pitch/thrust changes for a certain VNAV constraint)
* guidance-vertical
 
 
So, for illustration purposes, here's a stub to add an empty '''FGDummy''' component to JSBSim:
<syntaxhighlight lang="diff">
<syntaxhighlight lang="diff">
diff --git a/src/models/FGFCS.cpp b/src/models/FGFCS.cpp
diff --git a/src/models/FGFCS.cpp b/src/models/FGFCS.cpp
Line 397: Line 404:


</syntaxhighlight>
</syntaxhighlight>


=== FGWaypoint ===
=== FGWaypoint ===

Navigation menu