• 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 Airspeed Selector for AP, Name?

Messages
10,163
Country
us-arizona
Hey all,

I am digging through the names of knobs and things in the ModelDef trying to find the name of the knob that dials 'speed setting' for auto pilot auto-throttle.

I just roamed through the ModelDef again looking for AP_SPD_VAR_INC and its not in there, so I am going to guess they do not have the speed adjustment knob already done in the ModelDef. :S

Bill
 
AP_SPD_VAR_DEC and AP_SPD_VAR_INC is working variables so no problem there.

Code:
  <PartInfo>
    <Name>mip_AP_ias_select</Name>
    <AnimLength>450</AnimLength>
    <Animation>
      <Parameter>
        <Code>(L:mip ap ias selected, enum) 5 *</Code>
      </Parameter>
    </Animation>
    <MouseRect>
      <Cursor>Hand</Cursor>
      <TooltipID>TOOLTIPTEXT_AUTOPILOT_SPEED_INDICATOR_KNOTS</TooltipID>
      <MouseFlags>LeftSingle+RightSingle+WheelUp+WheelDown+DownRepeat</MouseFlags>
      <CallbackCode>
        (L:mip ap ias selected, enum) 0 &lt; if{ 90 (>L:mip ap ias selected, enum) }
        (L:mip ap ias selected, enum) 90 &gt; if{ 0 (>L:mip ap ias selected, enum) }
       
        (M:Event) 'LeftSingle' scmi 0 ==
        (M:Event) 'WheelDown'  scmi 0 == or
        if{ (&gt;K:AP_SPD_VAR_DEC) (L:mip ap ias selected, enum) -- 90 min (>L:mip ap ias selected, enum) }
      
        (M:Event) 'RightSingle' scmi 0 ==
        (M:Event) 'WheelUp'     scmi 0 == or
        if{ (&gt;K:AP_SPD_VAR_INC) (L:mip ap ias selected, enum) ++ 0 max (>L:mip ap ias selected, enum) }
      </CallbackCode>
    </MouseRect>
  </PartInfo>
 
And why the entry is not in the modeldef... My guess is because all the default planes use 2D gauges to set the airspeed if I'm not mistaken. (but have been wrong In the past and WILL be in the future as well) :whiteflag
 
Thanks Daniel. I did whip up a quick code for it that worked. Oddly, the Airbus has this in the VC knob, but there isnt one in the ModelDef. I wonder if the Airbus has more animations that arent in the ModelDef.

I might have to try yours. Mine takes quite a ways to drag to move the speed bug.

Code:
  <PartInfo>
    <Name>learjet24_knob_speed_select</Name>
    <AnimLength>360</AnimLength>
    <Animation>
      <Parameter>
        <Code>(L:Attitude calibration, number)</Code>
      </Parameter>
    </Animation>
    <MouseRect>
      <Cursor>Hand</Cursor>
      <MouseFlags>LeftSingle+LeftDrag+Wheel+RightSingle+RightDrag</MouseFlags>
         <CallbackCode>
           (M:Event) 'LeftSingle' scmp 0 ==
           els{ (M:Event) 'LeftDrag' scmp 0 == if{ (&gt;K:AP_SPD_VAR_INC) }
           (M:Event) 'WheelUp' scmp 0 ==
           if{ (&gt;K:AP_SPD_VAR_INC) }
           (M:Event) 'WheelDown' scmp 0 ==
           if{ (&gt;K:AP_SPD_VAR_DEC) }
           (M:Event) 'RightSingle' scmp 0 ==
           els{ (M:Event) 'RightDrag' scmp 0 == if{ (&gt;K:AP_SPD_VAR_DEC) }
         </CallbackCode>
      <TooltipText>Speed Setting</TooltipText>
    </MouseRect>
  </PartInfo>
 
Back
Top