Hey guys,
Terrible luck with the VS on this. I had taken a long holiday from it and came back to work on it today.
I had no luck getting this thing to work. Karol, your code works brilliant, but it does one thing wrong. Let me explain how it goes.
* Turn on VS lock
* Plane locks in its attitude as required
* VS readout says zero (it is actually 300 to 1500 FPM, but the readout (VAR?) is saying 0).
* Clicking on the UP/DN buttons only gets say 10 or 20 FPM changes, not exact 100's. So the plane will be locked at 880 FPM climb, and tapping the button several times only gets about a 50 FPM change. Faster if you use mouse wheel.
What I need is;
* Turn on VS
* Plane locks attitude
* Font comes on stating exact climb, but in 100's, and actual, like 800 instead of zero.
* Tapping up or down buttons cause 100 FPM changes in Attitude.
I found out that I had been using VAR with my up down commands (about 2 months ago?) and thats why the dang buttons werent working. Smacks self...
Here is the code I have;
Buttons;
Code:
// VS UP IN VS MODE
<Area Left="742" Top="118" Right="800" Bottom="150">
<Visible>(A:AUTOPILOT ATTITUDE HOLD,bool) 1 == </Visible>
<Tooltip>TOOLTIPTEXT_AUTOPILOT_VSI_INDICATOR_FTMIN</Tooltip>
<Cursor Type="UpArrow"/>
<Cursor Type="UpArrow"/>
<Click Kind="LeftSingle+LeftRelease">
(M:Event) 'LeftSingle' scmp 0 ==
if{
1 (>L:UP BUTTON ALT MODE FLAG,bool)
(>K:AP_PITCH_REF_INC_UP,bool)
}
(M:Event) 'LeftRelease' scmp 0 ==
if{
0 (>L:UP BUTTON ALT MODE FLAG,bool)
}
</Click>
</Area>
// VS DN IN VS MODE
<Area Left="742" Top="190" Right="800" Bottom="225">
<Visible>(A:AUTOPILOT ATTITUDE HOLD,bool) 1 == </Visible>
<Tooltip>TOOLTIPTEXT_AUTOPILOT_VSI_INDICATOR_FTMIN</Tooltip>
<Cursor Type="DownArrow"/>
<Click Kind="LeftSingle+LeftRelease">
(M:Event) 'LeftSingle' scmp 0 ==
if{
1 (>L:DN BUTTON ALT MODE FLAG,bool)
(>K:AP_PITCH_REF_INC_DN,bool)
}
(M:Event) 'LeftRelease' scmp 0 ==
if{
0 (>L:DN BUTTON ALT MODE FLAG,bool)
}
</Click>
</Area>
Karol, here is your code in my font;
Code:
<Element>
<Visible>(A:AUTOPILOT ALTITUDE LOCK, bool) !
(A:AUTOPILOT MASTER,bool) 1 == and
(A:AUTOPILOT ATTITUDE HOLD,bool) 1 == and
</Visible>
<Element>
<Position X="162" Y="38"/>
<FormattedText X="57" Y="17" Font="Tahoma" FontSize="16" LineSpacing="18" Adjust="Right" Color="#28B228" Bright="Yes">
<String>%((A:Autopilot vertical hold var, ft/min))%!5.0f!</String>
</FormattedText>
</Element>
</Element>
I cant believe just getting VSI to basically work can be this difficult. Evidently I need exotic code that;
A. Captures the exact climb/descent rate
B. Changes it to the nearest 100 FPM (such as locking at 855 FPM, but going to 900 FPM rounded off)
C. Clicking the UP/DN buttons/code causes 100 FPM incremental changes instead of say 10 or 30 FPM changes.
Could I be wrong? Is there an easy way? Should I just use the Airbus autopilot system on this 4 place gasoline engine powered plane?