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.
Stay away from the autopilot until you get at least the code for more basic cockpit controls right.
VNAV/LVL CHG is not easy to implement in XML.
Hi , Don't make the Knob animation dependent on the IAS number but driven by an L:var that you have control of. for example this is my code for an Altitude target selection knob. the variable controlling the animation is (L:ALT_Knob, number) so when the user left clicks or uses mouse wheel down the following happen:
1- (>K:AP_ALT_VAR_DEC) so the actual selected altitude decreases.
2- (L:ALT_Knob, number) 5 - (>L:ALT_Knob, number) , So the animation variable decreases by 5 , However it also limited between 0 and 100 so if you keep decreasing and reach 0 it will cycle back to 100 . since animation variable is decreasing the corresponding key frames of animation will decrease (reverse animation) so for my knob it will continue to rotate counter clockwise regardless of the actual altitude value, and vice versa.
Code:<PartInfo> <Name>HA420_knob_alt</Name> <AnimLength>100</AnimLength> <Animation> <Parameter> <Code> (L:ALT_Knob, number) </Code> </Parameter> </Animation> <MouseRect> <Cursor>Hand</Cursor> <TooltipText>selected ALT %((A:AUTOPILOT ALTITUDE LOCK VAR,Feet))%!2.2f!</TooltipText> <MouseFlags>LeftSingle+RightSingle+WheelUp+WheelDown</MouseFlags> <CallbackCode> (M:Event) 'LeftSingle' scmp 0 == (M:Event) 'WheelDown' scmp 0 == or if{ (>K:AP_ALT_VAR_DEC) (L:ALT_Knob, number) 5 - (>L:ALT_Knob, number) (L:ALT_Knob, number) 99 > if{ 0 (>L:ALT_Knob, number) } (L:ALT_Knob, number) 0 < if{ 99 (>L:ALT_Knob, number) } } (M:Event) 'RightSingle' scmp 0 == (M:Event) 'WheelUp' scmp 0 == or if{ (>K:AP_ALT_VAR_INC) (L:ALT_Knob, number) 5 + (>L:ALT_Knob, number) (L:ALT_Knob, number) 99 > if{ 0 (>L:ALT_Knob, number) } (L:ALT_Knob, number) 0 < if{ 99 (>L:ALT_Knob, number) } } 7 (>L:knbsound,bool) </CallbackCode> </MouseRect> </PartInfo>

Haha, OK. But I wanna fly good.
VNAV is not work on this version of autopilot (in real). But LVLCHNG is need to realize. I think it's not hard, because we know thrust in climb mode, it's always constant and we can attach to thrust level (73% from 100 +- 3) stay only regulate vertical speed for maintain indicated airspeed.
That's also way beyond your capabilities at the moment.
What is the problem? The double animation sometimes occurring when clicking the button? That's a bug in mouse rectangles with "release" conditions that has existed since FSX. Nothing you can do about it.


(He). Haha, maybe.. Maybe you're right. I'm just want to fly on my favorite aircraft, which is haven't in the simulator, like most Soviet aircraft.keep calm Bjoern, he/she still doesn't understand yet in mater what sim provide, he/she still dreaming ...

keep calm Bjoern, he/she still doesn't understand yet in mater what sim provide, he/she still dreaming ...
Anyway, I'm out of here.
Best of luck, Mr. Jam.

there several things/could be many stuff that not provide by the sim, I call it sim limitation. if you want beyond this limitation, you'll need do your own code. it complicated, for autopilot is very complicated, and you can't do half part, you must do fully and whole autopilot by your own code.(He). Haha, maybe.. Maybe you're right. I'm just want to fly on my favorite aircraft, which is haven't in the simulator, like most Soviet aircraft.