Board index FlightGear Development Aircraft

dhc6 warning about heading-indicator-real-dg on next

Questions and discussion about creating aircraft. Flight dynamics, 3d models, cockpits, systems, animation, textures.

dhc6 warning about heading-indicator-real-dg on next

Postby cgdae » Wed Jul 28, 2021 11:36 pm

The error reporting system on next has been triggered by this section in dhc6:Systems/instrumentation.xml:

Code: Select all
    <heading-indicator-real-dg>
        <name>heading-indicator-real-dg</name>
        <number>0</number>
    </heading-indicator-real-dg>


The problem is that "heading-indicator-real-dg" is not in flightgear/src/Instrumentation/instrument_mgr.cxx:FGInstrumentMgr::build()'s set of allowed names.

This is with the latest dhc6 in fgaddon.

Anyone got any ideas about how this should be fixed?

Thanks,

- Jules
cgdae
 
Posts: 117
Joined: Tue May 31, 2016 8:35 pm

Re: dhc6 warning about heading-indicator-real-dg on next

Postby Octal450 » Thu Jul 29, 2021 1:34 am

I never seen that thing. Why not just use heading-indicator?

Kind Regards,
josh
Skillset: JSBsim Flight Dynamics, Systems, Canvas, Autoflight/Control, Instrumentation, Animations
Aircraft: A320-family, MD-11, MD-80, Contribs in a few others

Octal450's GitHub|Launcher Catalog
|Airbus Dev Discord|Octal450 Hangar Dev Discord
User avatar
Octal450
 
Posts: 5583
Joined: Tue Oct 06, 2015 1:51 pm
Location: Huntsville, AL
Callsign: WTF411
Version: next
OS: Windows 11

Re: dhc6 warning about heading-indicator-real-dg on next

Postby WoodSTokk » Thu Jul 29, 2021 10:07 am

Should be <heading-indicator> or <heading-indicator-dg>.
The former is a air driven, the later is electric driven.
WoodSTokk
 
Posts: 1077
Joined: Tue Oct 17, 2017 3:30 pm
Location: Milky Way/Sol/Earth/Europe
Callsign: SX-W57
IRC name: WoodSTokk
Version: 2020.4.0
OS: Debian Bullseye

Re: dhc6 warning about heading-indicator-real-dg on next

Postby cgdae » Thu Jul 29, 2021 11:29 am

It looks like there are three supported heading indicators:

    "heading-indicator", class HeadingIndicator, "Model a vacuum-powered heading indicator".
    "heading-indicator-dg", class HeadingIndicatorDG, "Model an electrically-powered heading indicator".
    "heading-indicator-fg", class HeadingIndicatorFG, "Model an electically-powered fluxgate compass".

The dhc6 is attempting to use "heading-indicator", "heading-indicator-dg" and "heading-indicator-real-dg", the last of which gives the warning.

Code: Select all
    <heading-indicator>
        <name>heading-indicator</name>
        <number>0</number>
        <suction>systems/vacuum/suction-inhg</suction>
    </heading-indicator>

    <heading-indicator-dg>
      <name>heading-indicator-dg</name>
      <suction>systems/vacuum/suction-inhg</suction>
        <number>0</number>
    </heading-indicator-dg>

    <heading-indicator-real-dg>
        <name>heading-indicator-real-dg</name>
        <number>0</number>
    </heading-indicator-real-dg>


I'm not intending to make any changes to the dhc6; hopefully a dhc6 developer will see this thread and decide on the correct fix.

Thanks,

- Jules
cgdae
 
Posts: 117
Joined: Tue May 31, 2016 8:35 pm

Re: dhc6 warning about heading-indicator-real-dg on next

Postby SurferTim » Thu Jul 29, 2021 12:22 pm

What is the result of the warning? No gyro? Inaccurate gyro?
The version I use does not throw that warning.

Edit: I believe that variable should be initialized in /Nasal/systems.nas
Fly low. Fly slow. Land on a dime. Twin Otter. https://github.com/SurferTim/dhc6p
My other aircraft is a Citation-X https://github.com/SurferTim/CitationX
PirateAir videos at https://www.youtube.com/user/SurferTim850
User avatar
SurferTim
 
Posts: 1711
Joined: Sun Dec 09, 2018 6:49 pm
Location: Miramar Beach, FL
Callsign: Pirate
Version: 2020.4.0
OS: Ubuntu 18.04

Re: dhc6 warning about heading-indicator-real-dg on next

Postby cgdae » Thu Jul 29, 2021 1:04 pm

SurferTim wrote in Thu Jul 29, 2021 12:22 pm:What is the result of the warning? No gyro? Inaccurate gyro?


The error-reporting system doesn't change behaviour other than showing/logging information about problems that it comes across.

The incorrect heading-indicator-real-dg specification is ignored, regardless of whether the error reporting system is active.

This is a bug in the dhc6 aircraft that has been hidden in the past. The error reporting system is exposing this sort of previously-hidden bug, which i think is a good thing.

The version I use does not throw that warning.


The error reporting system is fairly new on next; i think it will be (or maybe already is being) rolled out to releases, but i'm not sure of the details.

Thanks,

- Jules
cgdae
 
Posts: 117
Joined: Tue May 31, 2016 8:35 pm

Re: dhc6 warning about heading-indicator-real-dg on next

Postby SurferTim » Thu Jul 29, 2021 2:11 pm

My bad. I was not clear. The Twin Otter I fly with FG2020.4.0 does not throw that error/warning.

Edit: You might not want that function operational. The "real-dg" part is it precesses a few degrees an hour.
Fly low. Fly slow. Land on a dime. Twin Otter. https://github.com/SurferTim/dhc6p
My other aircraft is a Citation-X https://github.com/SurferTim/CitationX
PirateAir videos at https://www.youtube.com/user/SurferTim850
User avatar
SurferTim
 
Posts: 1711
Joined: Sun Dec 09, 2018 6:49 pm
Location: Miramar Beach, FL
Callsign: Pirate
Version: 2020.4.0
OS: Ubuntu 18.04

Re: dhc6 warning about heading-indicator-real-dg on next

Postby WoodSTokk » Thu Jul 29, 2021 8:31 pm

Had now a look into the files. You can delete the '<heading-indicator-real-dg>' from 'Systems/instrumentation.xml'.
The author has build his own gyro via nasal scripts and named it 'heading-indicator-real-dg'.
I dont know why he inserted it in the instrumentation file.
WoodSTokk
 
Posts: 1077
Joined: Tue Oct 17, 2017 3:30 pm
Location: Milky Way/Sol/Earth/Europe
Callsign: SX-W57
IRC name: WoodSTokk
Version: 2020.4.0
OS: Debian Bullseye

Re: dhc6 warning about heading-indicator-real-dg on next

Postby wkitty42 » Fri Jul 30, 2021 1:58 am

cgdae wrote in Thu Jul 29, 2021 1:04 pm:The error reporting system is fairly new on next; i think it will be (or maybe already is being) rolled out to releases, but i'm not sure of the details.

it is being rolled out in releases... it is one of the main reasons why so many previously hidden bugs are now being found and eradicated...
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 9148
Joined: Fri Feb 20, 2015 4:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 20.04


Return to Aircraft

Who is online

Users browsing this forum: No registered users and 17 guests