1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

V/S Bug to zero event

Discussion in 'SimConnect' started by Achim, 29/12/06.

  1. Achim

    Achim

    Joined:
    29/12/06
    Messages:
    2
    Country:
    germany
    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
  2. DocMoriarty

    DocMoriarty

    Joined:
    20/12/06
    Messages:
    64
    Country:
    germany
    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.
  3. Achim

    Achim

    Joined:
    29/12/06
    Messages:
    2
    Country:
    germany
    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
  4. DocMoriarty

    DocMoriarty

    Joined:
    20/12/06
    Messages:
    64
    Country:
    germany
    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.

Share This Page