January 20, 200521 yr I have tried to add a feature to my gauge not to function if autothrottle is not on. As far as I know this is possible in a single switch, and even pretty easy.The feature should be that the case value 0 bitmap is on if autothrottle is not available, and nothing else could be chosen.Now the gauge works fine but all the options are possible even when autothrottle is not connected. What is wrong with this code?80"/> (L:valinta, enum)80"/>80"/>80"/> (>K:AP_PANEL_MACH_OFF, bool) (>K:AP_PANEL_SPEED_OFF, bool) 0 (>L:valinta, enum)0 (>L:Mach-IAS select, bool) 0 (>K:AP_PANEL_SPEED_HOLD) 1 (>L:valinta, enum)1 (>L:Mach-IAS select, bool) 0 (>K:AP_PANEL_MACH_HOLD) 2 (>L:valinta, enum)
January 20, 200521 yr Author Hi,Not tested!I made some changes in the click section.When you press 0 (>L:valinta, enum) the autothrottle goes off line and thereafter it is not possible anymore to press 1 (>L:valinta, enum) and 2 (>L:valinta, enum); the case value 0 bitmap is visible then.Of course you need somewhere another switch to arm the autothrottle again!(A:AUTOPILOT THROTTLE ARM,bool) if{ (>K:AUTO_THROTTLE_ARM) (>K:AP_PANEL_MACH_OFF) (>K:AP_PANEL_SPEED_OFF) 0 (>L:valinta, enum) }(A:AUTOPILOT THROTTLE ARM,bool) if{ 0 (>L:Mach-IAS select, bool) 0 (>K:AP_PANEL_SPEED_HOLD) 1 (>L:valinta, enum) }(A:AUTOPILOT THROTTLE ARM,bool) if{ 1 (>L:Mach-IAS select, bool) 0 (>K:AP_PANEL_MACH_HOLD) 2 (>L:valinta, enum) }Hope it helps,Jan"Beatus Ille Procul Negotiis" Jan "Beatus ille qui procul negotiis..."
January 20, 200521 yr Hmmm...it didn't work as it should. the bitmap now freezes to the selected point, but the gauge works. I don't still understand what is the problem...it should work.
January 20, 200521 yr Author Hi,May be i don't understand the problem very well.Jan"Beatus Ille Procul Negotiis" Jan "Beatus ille qui procul negotiis..."
Create an account or sign in to comment