• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

Course setting turnknob

Dutcheeseblend

Resource contributor
Messages
1,541
Country
netherlands
Hi all,

In short, I want a course gyro in my Fokker. (Sorry, but I don't even know the appropriate name of this gauge in Dutch...) It should work as follows: the pilot turns a small wheel (selected in the pic below) above the compass. This wheel is (in real) connected via some gears to a disc, with a 360 deg ring on it (the white disc in the pic below). The pilot uses this to set a certain course and to check wether he's having the correct heading or not. But: how to create this? I know, the disc should rotate based on the variable set by the turn knob. What should be the code to use on the knob?

Code:
<PartInfo>
<Name>Gyro_AskaniaEmilLke12</Name>
<AnimLength>36</AnimLength>
<Animation>
    <Parameter>
      <Code>
        (L:varAL12GYRO)
      </Code>
    </Parameter>
  </Animation>
<MouseRect>
            <Cursor>Hand</Cursor>
            <MouseFlags>LeftSingle+LeftDrag+Wheel</MouseFlags>
            <CallbackCode>
               
            </CallbackCode>
    </MouseRect>
</PartInfo>

And a pic of the thing is attached.

Any help would be greatly appreciated! I'm a real novice to scripting, so please help me out!;)
 

Attachments

  • compass.PNG
    compass.PNG
    287.9 KB · Views: 505
Just in case you meant 'Heading' instead of 'Course' (CRS), I am including both. These are stock animations from the master FSX XML parts sheet.

Heading;

Code:
   <PartInfo>
      <Name>knob_heading</Name>
        <AnimLength>100</AnimLength>
          <Animation>
<!--            <Rotation>Z</Rotation>  -->
                 <Parameter>
                   <Sim>
                       <Variable>AUTOPILOT HEADING LOCK DIR</Variable>
                       <Units>radians</Units>
                        <MinValue>0</MinValue>
                        <MaxValue>100</MaxValue>
                       <Scale>20</Scale>
                   </Sim>
                </Parameter>
          </Animation>
      <MouseRect>
         <Cursor>Hand</Cursor>
         <TooltipID>TOOLTIPTEXT_AUTOPILOT_HEADING_INDICATOR</TooltipID>
         <MouseFlags>LeftSingle+LeftDrag+Wheel</MouseFlags>
         <CallbackJumpDragging>
            <XMovement>
               <Delta>1</Delta>
               <EventIdInc>HEADING_BUG_INC</EventIdInc>
           <EventIdDec>HEADING_BUG_DEC</EventIdDec>
            </XMovement>
         </CallbackJumpDragging>
      </MouseRect>
   </PartInfo>


Course (CRS)


Code:
   <PartInfo>
      <Name>knob_course</Name>
        <AnimLength>100</AnimLength>
          <Animation>
<!--            <Rotation>Z</Rotation>  -->
                 <Parameter>
                   <Sim>
                       <Variable>NAV1 OBS</Variable>
                       <Units>radians</Units>
                        <MinValue>0</MinValue>
                        <MaxValue>100</MaxValue>
                       <Scale>20</Scale>
                   </Sim>
                </Parameter>
          </Animation>
      <MouseRect>
         <Cursor>Hand</Cursor>
         <TooltipID>TOOLTIPTEXT_HSI_HEADING_COURSE</TooltipID>
         <MouseFlags>LeftSingle+LeftDrag+Wheel</MouseFlags>
         <CallbackJumpDragging>
            <XMovement>
               <Delta>1</Delta>
               <EventIdInc>VOR1_OBI_INC</EventIdInc>
           <EventIdDec>VOR1_OBI_DEC</EventIdDec>
            </XMovement>
         </CallbackJumpDragging>
      </MouseRect>
   </PartInfo>
 
Thanks! Do these work without autopilot? Understand, my Fokker has practically no radio and completely no autopilot.
 
A lot of older aircraft had a gyro for heading that was not automatically set by the magnetic compass. The procedure was to fly straight and level, note the magnetic heading from the compass, then set the gyro to that heading. After a while the gyro would drift some and it was necessary to reset it to again match the magnetic heading.
I think this is what is required here, not the heading bug or OBS/CDI setting.
I believe the Event IDs are GYRO_DRIFT_INC, GYRO_DRIFT_DEC or possibly HEADING_GYRO_SET or GYRO_DRIFT_SET.
Corresponding Variables would be HEADING INDICATOR, radians or PLANE HEADING DEGREES GYRO, radians and GYRO DRIFT ERROR
Roy
 
The system works fine right now! Thanks Lionheart and Heretic!

@Roy Holmes: I think it is not the case here. As far as I know, it's just a system that can be rotated, no less no more. Remains in the D.21 wreck also show just a knob which is connected to the disc via a gears. But this is based upon my personal observations and those of others, so maybe ideas change in the future. I suffered a huge lack of information during the development of the Fokker.

The instrument is the Askania Emil Lke 12 by the way.
 
That is a fancy whisky compass with a heading ring at the top that's adjustable just as you've described. It seems it's more for reference than anything else, since it is obviously not corrected by the aircraft's actual heading as it would be in a gyro compass.
 
True that, it's really not functional except for reference. But it must be working:D
And it does now!
 
Back
Top