Jump to content

wytman71

Members
  • Content Count

    3
  • Donations

    $0.00 
  • Joined

  • Last visited

Community Reputation

0 Neutral

Flight Sim Profile

  • Commercial Member
    No
  • Online Flight Organization Membership
    VATSIM
  • Virtual Airlines
    No
  1. Update - these worked perfect - thanks!
  2. Thanks so much! I'll give that a shot later, having a long flight at the moment in airliner.
  3. Thanks for the application - really changes the game! I have been working on the Blackbird Corsair, specifically on the Supercharger handle. I'd like to map an axis on my Honeycomb Bravo to the handle. The handle has a Lvar (L:FG1D021) for position, but that, while settable, is not actually controlling the supercharger application, and is intended for output animation only. I figured out that control is done via two events sent through the EVENTS_ID, and implemented a dirt simple script bound for the moment to a up/down toggle switch on the Honeycomb (the permanent "flap" switch over on the far right - NOT the axis at the far right). The scripts are rather simply: 0x1101B (>L:EVENTS_ID,enum) // to decrement the handle (to neutral from low, or high to low) 0x1101A (>L:EVENTS_ID,enum) // to increment the handle (to low from neutral, or low to high) The above does work to increment and decrement the handle, and the animated position of the handle moves as well without me having the set it. FG1D021 gets set to 0, 50, or 100 depending on the increment/descrement. What I'd love to do is map sending those events to the an axis. I feel like I'd have to set a variable for the current state, though I suppose I could just read the enum or number value for FG1D021 lvar, and then do a comparison against where the axis is (LVAR is mapped 0 to 100 range). From what I can see using dev mode "Tools->Behaviors", the output is 0, 50, or 100 for the lvar. So ... if axis <25, and enum value is 50, then decrement once. if enum is 100, decrement twice.. if 26-80 axis, and enum value is 0, then increment once. If enum is 100, decrement once if >80 axis, and enum value is 50, then increment once. If enum is 0, increment twice. I guess depending on how fast I move, it would really only ever decrement or increment once. But regardless, I could write a routine like this in C, basic, fortran, and python. But I can't for the life of me figure out how to do it in RPN script. I am missing something obvious here methinks. Anyway - if someone can point me in the right direction, I think I could figure it out. Thanks!
×
×
  • Create New...