Menu

#2900 Heading Indicator tumbling: make g-node configurable

2020.4
New
nobody
None
Low
2 days ago
2024-06-28
No

I think it may be useful if the aircraft dev could optionally specify a custom g node in heading_indicator_dg.cxx.

So this patch adds that.

instrumentation.xml:

<heading-indicator-dg>
...
    <limits>
        <g-node>/accelerations/pilot-gdamped</g-node>
        ...

will get the value from the alternate node. Default node remains untouched if not configured.


Code can be found in my branch heading_indicator_gnodeConf at https://beni.hallinger.org/git/flightgear.git

Discussion

  • Benedikt Hallinger

    While at it; I also added configurable heading-in and yaw-rate.
    Especially the heading source may be useful for easily switching heading sources in complex planes.
    And yaw-rate may be useful to implement custom aircraft error compensation technic.

    <heading-indicator-dg>
    ...
       <heading-source>/orientation/heading-deg-TEST</heading-source>
        <limits>
            <g-node>/accelerations/pilot-gdamped</g-node>
            <yaw-rate-source>/orientation/yaw-rate-degps-TEST</yaw-rate-source>
            ...
    
     

    Last edit: Benedikt Hallinger 2024-06-28
  • Benedikt Hallinger

     

    Last edit: Benedikt Hallinger 2024-06-28
  • Benedikt Hallinger

     

    Last edit: Benedikt Hallinger 2024-06-28
  • Benedikt Hallinger

    Tested with the c182 (and its /accelerations/pilot-gdamped node, and that seems to work better.

    The alternative to this implementation is in my view to implement such a thing in c++ space.

    The best thing would be imho, if the instrument had an internal (configurable) filter in c++ space, but could also source the value from some external/custom property (like the patch adds currently).

     
  • Benedikt Hallinger

    Pushed another addition, implementing a (optional configurable) low pass filter.
    it defaults to 10 currently, which allowed me hard landings without tumbling.

    <heading-indicator-dg>
    ...
       <heading-source>/orientation/heading-deg-TEST</heading-source>
        <limits>
            <g-node>/accelerations/pilot-gdamped</g-node>
            <g-filter-time>10.0</g-filter-time>
            <yaw-rate-source>/orientation/yaw-rate-degps-TEST</yaw-rate-source>
            ...
    

    The g-filter-time is changeable at runtime (limits subtree of the instrument instance)

     

    Last edit: Benedikt Hallinger 2024-07-05
  • Benedikt Hallinger

    @jmturner I Think this should be ready.

     

Log in to post a comment.