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.
<Click Kind="LeftSingle+RightSingle" Repeat="Yes">(M:Event) 'LeftSingle' scmp 0 == if{
(A:AUTOPILOT ALTITUDE LOCK VAR, feet) 100 - }
els{ (A:AUTOPILOT ALTITUDE LOCK VAR, feet) 1000 - }
0 max (>K:AP_ALT_VAR_SET_ENGLISH)</Click>
<Click Kind="LeftSingle+RightSingle" Repeat="Yes">(M:Event) 'LeftSingle' scmp 0 == if{
(A:AUTOPILOT ALTITUDE LOCK VAR, feet) 100 + }
els{ (A:AUTOPILOT ALTITUDE LOCK VAR, feet) 1000 + }
60000 min (>K:AP_ALT_VAR_SET_ENGLISH)</Click>
<!--ALT SET-->
<Macro Name="Plus1000">
(A:AUTOPILOT ALTITUDE LOCK VAR,feet) 1000 +
</Macro>
<Macro Name="Minus1000">
(A:AUTOPILOT ALTITUDE LOCK VAR,feet) 1000 -
</Macro>
<Macro Name="Button1">(M:Event) 'RightSingle' scmp 0 == if{ (>K:AP_ALT_VAR_INC) }
(M:Event) 'LeftSingle' scmp 0 == if{ (>K:AP_ALT_VAR_DEC) }
(M:Event) 'WheelUp' scmp 0 == if{ @Plus1000 (>K:AP_ALT_VAR_SET_ENGLISH) }
(M:Event) 'WheelDown' scmp 0 == if{ @Minus1000 (>K:AP_ALT_VAR_SET_ENGLISH) }</Macro>
<Area Left="171" Top="62" Width="60" Height="25">
<Tooltip>Set ALT</Tooltip>
<Click Kind="LeftSingle+RightSingle+WheelUp+WheelDown" Repeat="Yes">@Button1</Click>
<Cursor Type="Hand" />
</Area>
(A:AUTOPILOT ALTITUDE LOCK VAR,feet) 7000 +
(A:AUTOPILOT ALTITUDE LOCK VAR,feet) 5000 +
(A:AUTOPILOT ALTITUDE LOCK VAR,feet) 3000 +
(A:AUTOPILOT ALTITUDE LOCK VAR,feet) 1000 +
COBS can you make a wheel rate increase with custom lvars with max limits. Tried a few methods with the samples below with no luck.
(L:custom,number) @@Minus - 100 max (>L:custom,number)
(L:custom,number) @PLUS + 1799 min (>L:custom,number)
(L:custom,number) -- @Minus100 max (>L:custom,number)
(L:custom,number) ++ @PLUS1799 min (>L:custom,number)
<!--ALT SET-->
<Area Left="171" Top="62" Width="60" Height="25">
<Tooltip>Set ALT</Tooltip>
<Click Kind="LeftSingle+RightSingle+WheelUp+WheelDown" Repeat="Yes">
(M:Event) 'RightSingle' scmp 0 == if{ (>K:AP_ALT_VAR_DEC) }
(M:Event) 'LeftSingle' scmp 0 == if{ (>K:AP_ALT_VAR_INC) }
(M:Event) 'WheelUp' scmp 0 == if{ (A:AUTOPILOT ALTITUDE LOCK VAR,feet) 10000 + (>K:AP_ALT_VAR_SET_ENGLISH) }
(M:Event) 'WheelDown' scmp 0 == if{ (A:AUTOPILOT ALTITUDE LOCK VAR,feet) 10000 - (>K:AP_ALT_VAR_SET_ENGLISH) }</Click>
<Cursor Type="Hand" />
</Area>
PS ;
Where I have used 10,000 ( ft ) I presume that you could use any figure ie; 5,000 ( ft) .
<Mouse>
<Tooltip>Nose Wheel Tiller</Tooltip>
<Area Left="0" Top="0" Width="120" Height="138">
<Cursor Type="Hand"/>
<Click Kind="LeftSingle+RightSingle+WheelDown+WheelUp">
(M:Event) 'LeftSingle' scmp 0 == if{ (A:GROUND VELOCITY, knots) 60 < 1 (>L:steering_lock,bool) }
(M:Event) 'WheelDown' scmp 0 == if{ (A:GROUND VELOCITY, knots) 60 < (L:steering_lock,bool) 1 == and
if{ (L:steering,number) 0.02268 + (>L:steering,number) (L:steering,number) + 16384 * (>K:RUDDER_SET) } }
(M:Event) 'RightSingle' scmp 0 == if{ 1 (>K:RUDDER_CENTER) 0 (>L:steering_lock,bool) 0 (>L:steering,number) }
(M:Event) 'WheelUp' scmp 0 == if{ (A:GROUND VELOCITY, knots) 60 < (L:steering_lock,bool) 1 == and
if{ (L:steering,number) 0.02268 - (>L:steering,number) (L:steering,number) + 16384 * (>K:RUDDER_SET) } }
</Click>
</Area>
</Mouse>
FWIW -
The first three commands set the current altitude to the alt select window.
The last four allow an alt set window to be at whatever one wants and once engaged the AP will try for that alt.
(>K:AP_ALT_HOLD)
(>K:AP_ALT_HOLD_OFF)
(>K:AP_ALT_HOLD_ON)
(>K:AP_PANEL_ALTITUDE_HOLD)
(>K:AP_PANEL_ALTITUDE_OFF)
(>K:AP_PANEL_ALTITUDE_ON)
(>K:AP_PANEL_ALTITUDE_SET)
Maybe some more explanation (as far as I'm aware, but someone will correct me if I'm wrong) for the default AP AltHold and V/S-Hold functions..I want the autopilot to ignore any value in the altitude selector. This statement makes me think that. We need a mode that turns off any capture mode. But still holds the VS setting.
Maybe some more explanation (as far as I'm aware, but someone will correct me if I'm wrong) for the default AP AltHold and V/S-Hold functions..
First, the only difference between AP_PANEL_ALTITUDE_ON and AP_ALT_HOLD_ON is:
- AP_PANEL_ALTITUDE_ON will hold the altitude currently in the altitude Selector A:AUTOPILOT ALTITUDE LOCK VAR
- AP_ALT_HOLD_ON does the same, except that it (automatically) will first set A:AUTOPILOT ALTITUDE LOCK VAR to the current altitude (hence holding the current altitude).
Second, as far as I know, FSX doesn't have an independant V/S-Hold; so without AP-Master ON and AltHold ON, the V/S selector does nothing.
There simply isn't any event that sets V/S-hold.
But you can easily simulate a V/S-hold function by:
- Write a very low value (like 0) when V/S should be negative, or a very high value (like 50000) when V/S should be positive, with event AP_ALT_VAR_SET_ENGLISH
- event AP_PANEL_ALTITUDE_ON
- Write the calculated V/S (or current V/S) to the V/S selector, with event AP_VS_VAR_SET_ENGLISH
After that, the simpilot can freely change the V/S Selector with mouseclicks generating events AP_VS_VAR_INC and AP_VS_VAR_DEC.
Of course you have to add some logic to the ALtHold button and AltHold Selector clickspots and displays, because if you implement a V/S-Hold function this way, AltHold should appear to be OFF for the pilot (while it's actually ON) and the ALtHold Selector display (0 or 50000) has no meaning to the pilot.
Rob