HHS81 / c182s

Cessna C182S (1996 model) for FlightGear
GNU General Public License v2.0
26 stars 9 forks source link

Magnetic Compass: Tilting wrong, should be influenced by g-forces #599

Closed hbeni closed 4 days ago

hbeni commented 1 month ago

Some time ago, the pivot mount of the magnetic compass was added (#523).

While adding the force influences of the tilting, the reference as "earth gravity" instead of "plane gravity" which could differ. In a coordinated bank, the compass card should not tilt like it does now, because "down" is to the floor of the plane, not earths gravity, due to centrifugal forces.

So, the tilting should be switched to the planes g-forces. We probably can peek at the fuel system, because tank crossfeeding already uses that reference. (edit: prop accelerations/Ny is used there)

@wlbragg: C172 also affected.

hbeni commented 1 month ago

I think this should be properly adressed by exposing the calculated values from the C++ instrument.

hbeni commented 1 month ago

I submitted a PR to FGFS upstream: https://sourceforge.net/p/flightgear/codetickets/2904/

Those props then can be used directly; maybe we should keep simulating the damping fluid aircraft side.

hbeni commented 1 month ago

Code at FGFS now has a damper itself, however It's not quite working well. I'm out of ideas for now, maybe sometime in the future I get some enlightement...

hbeni commented 1 month ago

I fixed that. Now it looks good. Branch can be merged once FlightGear ticket was merged.