PDA

View Full Version : V/S Bug to zero event


Achim
29 Dec 2006, 12:32
I use C# and simConnect to be notified about autopilot events.
Everything works fine, for instance if i manipulate the V/S knob
in the simulator (and V/S bug changes its position), my program
received the KEY_AP_VS_VAR_INC/DEC events correctly.

But when the plane reaches the desired altitude and the simulator
automatically sets the V/S bug to zero, i didn't get any event.

Additional to KEY_AP_VS_VAR_INC and KEY_AP_VS_VAR_DEC i tried to register KEY_AP_VS_VAR_SET_ENGLISH, KEY_AP_VS_VAR_SET_METRIC, KEY_VSI_BUG_SELECT, but that doesn't help.

So my question is, which event is fired when the simulator automatically
sets the V/S bug to zero.

(Please apologize my bad English)

Achim

DocMoriarty
29 Dec 2006, 14:08
You would most likely have to poll for the value of "AUTOPILOT VERTICAL HOLD VAR" (feet per minute) to get the current setting, according to the documentation.

Achim
29 Dec 2006, 14:27
Yes, polling works.
But i use the INC/DEC events to be notified, that something changed.
For instance if i receive KEY_HEADING_BUG_INC/DEC event, i poll the value for
heading "AUTOPILOT HEADING LOCK DIR". In the same way, if i receive a
KEY_AP_VS_VAR_INC/DEC event, i poll "AUTOPILOT VERTICAL HOLD VAR"
to get the V/S value.
I thought, this would be the right way, but when not all value changes are
signaled by an event, i must poll the value.

Thanks a lot

Achim

DocMoriarty
29 Dec 2006, 14:48
I agree that it would be nice if tagged data logic would have been available in managed SimConnect. Would make some things way more efficient than polling for that stuff.