From 9405594f7d424c28ee8867337e42e79a86152b7e Mon Sep 17 00:00:00 2001 From: hbeni Date: Sat, 27 Jul 2024 17:45:55 +0200 Subject: [PATCH 1/2] Magnetic Compass: Switched to exposed magnetic compass props for simulating roll and pitch axis --- Models/Instruments/Compass.xml | 6 +-- Systems/instruments.xml | 93 +++++++++++++++++++--------------- 2 files changed, 56 insertions(+), 43 deletions(-) diff --git a/Models/Instruments/Compass.xml b/Models/Instruments/Compass.xml index 4745cf45..c6f11685 100644 --- a/Models/Instruments/Compass.xml +++ b/Models/Instruments/Compass.xml @@ -34,7 +34,7 @@ instrumentation/magnetic-compass/roll-deg-final - 0.5 + 1.0 1.0 0.0 @@ -51,10 +51,10 @@ instrumentation/magnetic-compass/pitch-deg-final - 0.5 + 1.0 0.0 - -1.0 + 1.0 0.0 diff --git a/Systems/instruments.xml b/Systems/instruments.xml index 34f6ffa6..a86c3b7e 100644 --- a/Systems/instruments.xml +++ b/Systems/instruments.xml @@ -686,47 +686,60 @@ /instrumentation/magnetic-compass/deviation-deg - - Magnetic compass pivot mounting - exponential - 5.0 - - - - /orientation/pitch-deg - -1 - - - - - /instrumentation/magnetic-compass/pitch-offset-deg - - instrumentation/magnetic-compass/pitch-limit-down - instrumentation/magnetic-compass/pitch-limit-up - Magnetic compass stuck gain - - - /orientation/pitch-deg - instrumentation/magnetic-compass/pitch-limit-down - - - /orientation/pitch-deg - instrumentation/magnetic-compass/pitch-limit-up - - - /orientation/roll-deg - instrumentation/magnetic-compass/roll-limit-left - - - /orientation/roll-deg - instrumentation/magnetic-compass/roll-limit-right - - + + + instrumentation/magnetic-compass/stuck + + + /instrumentation/magnetic-compass/pitch-deg-final + instrumentation/magnetic-compass/pitch-limit-down + + + /instrumentation/magnetic-compass/pitch-deg-final + instrumentation/magnetic-compass/pitch-limit-up + + + /instrumentation/magnetic-compass/roll-deg-final + instrumentation/magnetic-compass/roll-limit-left + + + /instrumentation/magnetic-compass/roll-deg-final + instrumentation/magnetic-compass/roll-limit-right + + + + + 1 + + + + + + instrumentation/magnetic-compass/stuck + + + /instrumentation/magnetic-compass/pitch-deg + instrumentation/magnetic-compass/pitch-limit-down + + + /instrumentation/magnetic-compass/pitch-deg + instrumentation/magnetic-compass/pitch-limit-up + + + /instrumentation/magnetic-compass/roll-deg + instrumentation/magnetic-compass/roll-limit-left + + + /instrumentation/magnetic-compass/roll-deg + instrumentation/magnetic-compass/roll-limit-right + + + 1 @@ -774,7 +787,7 @@ Magnetic compass pitch exponential - 0.25 + 0.5 instrumentation/magnetic-compass/stuck @@ -782,7 +795,7 @@ instrumentation/magnetic-compass/pitch-deg-final - orientation/pitch-deg + /instrumentation/magnetic-compass/pitch-deg instrumentation/magnetic-compass/pitch-deg-final @@ -791,7 +804,7 @@ Magnetic compass roll exponential - 0.25 + 0.5 instrumentation/magnetic-compass/stuck @@ -799,7 +812,7 @@ instrumentation/magnetic-compass/roll-deg-final - orientation/roll-deg + /instrumentation/magnetic-compass/roll-deg instrumentation/magnetic-compass/roll-deg-final From 07b0ec4b9a6d2a51f3bf5320704a87624d98d514 Mon Sep 17 00:00:00 2001 From: hbeni Date: Mon, 12 Aug 2024 17:37:13 +0200 Subject: [PATCH 2/2] Switched compass pitch/roll to daped c++ values --- Models/Instruments/Compass.xml | 4 ++-- Systems/instruments.xml | 42 ++++------------------------------ 2 files changed, 6 insertions(+), 40 deletions(-) diff --git a/Models/Instruments/Compass.xml b/Models/Instruments/Compass.xml index c6f11685..7e145bfb 100644 --- a/Models/Instruments/Compass.xml +++ b/Models/Instruments/Compass.xml @@ -31,7 +31,7 @@ -25 25 - instrumentation/magnetic-compass/roll-deg-final + instrumentation/magnetic-compass/roll-deg 1.0 @@ -48,7 +48,7 @@ -9 9 - instrumentation/magnetic-compass/pitch-deg-final + instrumentation/magnetic-compass/pitch-deg 1.0 diff --git a/Systems/instruments.xml b/Systems/instruments.xml index a86c3b7e..3048a02a 100644 --- a/Systems/instruments.xml +++ b/Systems/instruments.xml @@ -696,19 +696,19 @@ instrumentation/magnetic-compass/stuck - /instrumentation/magnetic-compass/pitch-deg-final + /instrumentation/magnetic-compass/pitch-deg instrumentation/magnetic-compass/pitch-limit-down - /instrumentation/magnetic-compass/pitch-deg-final + /instrumentation/magnetic-compass/pitch-deg instrumentation/magnetic-compass/pitch-limit-up - /instrumentation/magnetic-compass/roll-deg-final + /instrumentation/magnetic-compass/roll-deg instrumentation/magnetic-compass/roll-limit-left - /instrumentation/magnetic-compass/roll-deg-final + /instrumentation/magnetic-compass/roll-deg instrumentation/magnetic-compass/roll-limit-right @@ -784,40 +784,6 @@ instrumentation/magnetic-compass/indicated-heading-deg-final - - Magnetic compass pitch - exponential - 0.5 - - - instrumentation/magnetic-compass/stuck - - instrumentation/magnetic-compass/pitch-deg-final - - - /instrumentation/magnetic-compass/pitch-deg - - - instrumentation/magnetic-compass/pitch-deg-final - - - - Magnetic compass roll - exponential - 0.5 - - - instrumentation/magnetic-compass/stuck - - instrumentation/magnetic-compass/roll-deg-final - - - /instrumentation/magnetic-compass/roll-deg - - - instrumentation/magnetic-compass/roll-deg-final - -