• 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.

P3D v2 ADF Knobs; Freq? (ModelDef Animation)

Messages
10,163
Country
us-arizona
Hey all,

I am creating ADF knobs for my ModelDef. I have 2 ADF screens in my bird I am making.

But... I notice on the animation, I have no idea what to use for Freqs on these. There are 3 numbers to a ADF Freq. I am using the 'knob_nav' dial animation as my template to create ADF knobs (3).

What would one use for Freqs on an ADF knob (3 of 3) in the 'code' sections?

These are the NAV knob animations;

Code:
  <PartInfo>
    <Name>knob_nav2_KHz</Name>
    <AnimLength>360</AnimLength>
    <Animation>
      <Parameter>
        <Code>(A:NAV2 ACTIVE FREQUENCY, KHz) 100 / 10 % 36 * dnor</Code>   <--  NOTE KHz Measure
      </Parameter>
    </Animation>
    <MouseRect>
      <Cursor>Hand</Cursor>
      <TooltipID>TOOLTIPTEXT_NAV2_FREQ</TooltipID>
      <MouseFlags>WheelUp+WheelDown+LeftDrag+LeftSingle</MouseFlags>
      <CallbackJumpDragging>
        <XMovement>
          <Delta>5</Delta>
          <EventIdInc>NAV2_RADIO_FRACT_INC</EventIdInc>
          <EventIdDec>NAV2_RADIO_FRACT_DEC</EventIdDec>
        </XMovement>
      </CallbackJumpDragging>
    </MouseRect>
  </PartInfo>
 
  <PartInfo>
    <Name>knob_nav2_MHz</Name>
    <AnimLength>360</AnimLength>
    <Animation>
      <Parameter>
        <Code>(A:NAV2 ACTIVE FREQUENCY, MHz) 10 % 10 * dnor</Code>  <-- NOTE MHz Measure
      </Parameter>
    </Animation>
    <MouseRect>
      <Cursor>Hand</Cursor>
      <TooltipID>TOOLTIPTEXT_NAV2_FREQ</TooltipID>
      <MouseFlags>WheelUp+WheelDown+LeftDrag+LeftSingle</MouseFlags>
      <CallbackJumpDragging>
        <XMovement>
          <Delta>5</Delta>
          <EventIdInc>NAV2_RADIO_WHOLE_INC</EventIdInc>
          <EventIdDec>NAV2_RADIO_WHOLE_DEC</EventIdDec>
        </XMovement>
      </CallbackJumpDragging>
    </MouseRect>
  </PartInfo>



This would be a typical knob for ADF1;

Code:
  <PartInfo>
    <Name>knob_adf_001</Name>
    <AnimLength>360</AnimLength>
    <Animation>
      <Parameter>
        <Code>(A:ADF frequency, KHz) 100 / 10 % 36 * dnor</Code>
      </Parameter>
    </Animation>
    <MouseRect>
      <Cursor>Hand</Cursor>
      <TooltipID>TOOLTIPTEXT_ADF_FREQ</TooltipID>
      <MouseFlags>WheelUp+WheelDown+LeftDrag+LeftSingle</MouseFlags>
      <CallbackJumpDragging>
        <XMovement>
          <Delta>5</Delta>
          <EventIdInc>ADF_1_INC</EventIdInc>
          <EventIdDec>ADF_1_DEC</EventIdDec>
        </XMovement>
      </CallbackJumpDragging>
    </MouseRect>
  </PartInfo>

What would one use for Freq in the 'code' section?
 
FS9? FSX?
If FSX, use...
(A:ADF ACTIVE FREQUENCY:1,KHz) // #1 ADF
(A:ADF ACTIVE FREQUENCY:2,KHz) // #2 ADF
 
FS9? FSX?
If FSX, use...
(A:ADF ACTIVE FREQUENCY:1,KHz) // #1 ADF
(A:ADF ACTIVE FREQUENCY:2,KHz) // #2 ADF


Bill, there are three slots for freq's (commands). KHz, MHz, and what is the third, or do you have frequencies for tuning in the command strings? (increment decrements)

wait.... heh heh... You only need that on the 'code' section. sigh.... Must have more tea... must have... more....... tea............
 
Commands are:
Code:
<!-- ADF #1 TUNING COMMANDS -->
(>K:ADF1_RADIO_TENTHS_INC)
(>K:ADF1_RADIO_TENTHS_DEC)
 
(>K:ADF_1_INC)
(>K:ADF_1_DEC)
 
(>K:ADF_10_INC)
(>K:ADF_10_DEC)
 
(>K:ADF_100_INC)
(>K:ADF_100_DEC)
 
<!-- ADF #2 TUNING COMMANDS -->
(>K:ADF2_RADIO_TENTHS_INC)
(>K:ADF2_RADIO_TENTHS_DEC)
 
(>K:ADF2_1_INC)
(>K:ADF2_1_DEC)
 
(>K:ADF2_10_INC)
(>K:ADF2_10_DEC)
 
(>K:ADF2_100_INC)
(>K:ADF2_100_DEC)
All ADF frequencies are KHz.
 
Last edited:
Thanks Bill. Got those from the FS9 SDK. I ended up having to use whole and fract's as the INC/DEC versions wouldn't work for some reason. Working now though.
 
Back
Top