Howto talk:Methods to replace the NASAL code with JSBSim code

From FlightGear wiki
Revision as of 19:55, 11 August 2018 by AndersG (talk | contribs) (A suggestion on clean up of the HowTo.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

To me this HowTo seems confused and in its present state not very helpful to anyone. Can you try this single component instead of what you propose in this HowTo?

   <channel name="JATO">
       <switch name="systems/jato/throttle-norm">
           <default value="0"/>
           <test logic = "AND" value = "1">
               systems/jato/ignition-on == 1
               systems/jato/rocket_number_1 == 1
           </test>
           <output>fcs/throttle-pos-norm[1]</output>
       </switch>
   </channel>

This would be a pure JSBSim-side way to control the JATO ignition. Also note that the name of a component should (preferably) be the name of a property tree node that doesn't exist beforehand. AndersG (talk) 15:52, 11 August 2018 (EDT)