Jump to content
The simFlight Network Forums

Help needed mapping rotary encoder to presets for controlling G1000 MFD FMS


Recommended Posts

Posted

I am trying to control the NXi G1000 MFD FMS knob with a rotary encoder from Desktop Aviator. (I'm testing on the Asobo C172, but want this to be generic across G1000 equipped planes.)

The Desktop Aviator unit has 6 encoders, 5 of which map successfully to OBI1, OBI2, Heading bug, AP Altitude select, and radio frequency virtual avionics control knobs.  All the virtual avionics knobs I want to control are concentric dual action with an outer ring for whole unit or faster index changes and an inner ring for decimal or slower index changes. To achieve this with single action encoders I condition (via FSUIPC.ini) the respective FSUPIC controls on a flag state maintained in a virtual joystick button, where the flag state is switched by holding down (or not) a button on my flight yoke. This works fine on the first 5 encoders mapped to the OBI1...radio avionics control knobs. The G1000 MFD FMS virtual knob also has a concentric dual action arrangement, with the addition of a push button action on the inner ring/knob.

FSUIPC 7.5.1 (paid, registered) seems to have the relevant presets for controlling the G1000 MFD FMS virtual knob (AS1000_MFD_FMS_Lower and _Upper for _DEC, _INC and _PUSH), and various forum posts indicate that these G1000 presets are also valid for the NXi version of the G1000 (if I'm reading the posts correctly). Moreover, assigning a key to the MFD_FMS_Upper_PUSH,1 preset via FSUIPC works properly in making the cursor active/inactive in the Flight Plan page of the G1000, indicating that (a) at least the _PUSH preset is correct and (b) the fsuipc-lvar-module is present (in the Community folder along the ...Limitless... path) and correct.

BUT while the key-based push of the FMS knob works, I cannot get the rotary encoder right/left inputs to actuate the MFD_FMS inner and outer knobs. The relevant commands were inserted in FSUIPC.ini via the user interface, so the syntax should be correct (?) -- see attached.  And while the log (a) shows no faults in loading up the WASM module (17585 Calculator Coder presets loaded and available for use)  (b) shows that the rotary encoder "button presses" are received (see lines 789797-795469 of the log, reporting joy 3 and button 10 and 11 changes) it also shows (c) nothing triggered.

Any ideas what I could be doing wrong?

Thanks, David

For correspondence with PeteDowson.7z

Posted
22 minutes ago, davidinbasel said:

(b) shows that the rotary encoder "button presses" are received (see lines 789797-795469 of the log, reporting joy 3 and button 10 and 11 changes)

There is an error on the first line of your FSUIPC7.ini fille: 

Quote

!1= [General]

Remove those characters - in fact, remove the whole section as the [General] section has been added again further down. Ot correct that and remove the 2nd [General] section - your choice but there should only be one.

And those log messages indicate that the button assignment panel was open when you tested, Button logging should look like the following:

Quote

   333578 Button changed: bRef=0, Joy=1 (T), Btn=0, Pressed
   333578 [Buttons] 74=PT,0,CPSix Engine Throttle,0
   333578  [DEBUG]: Calculator code sent: 0 16383 + 32767.0 / s0 (>A:GENERAL ENG THROTTLE LEVER POSITION:1, percent over 100) l0 (>A:GENERAL ENG THROTTLE LEVER POSITION:2, percent over 100) l0 (>A:GENERAL ENG THROTTLE LEVER POSITION:3, percent over 100) l0 (>A:GENERAL ENG THROTTLE LEVER POSITION:4, percent over 100) l0 (>A:GENERAL ENG THROTTLE LEVER POSITION:5, percent over 100) l0 (>A:GENERAL ENG THROTTLE LEVER POSITION:6, percent over 100)
   333750 Button changed: bRef=0, Joy=1 (T), Btn=0, Released

Button assignments are not triggered when the assignment panel is open,

So please correct your ini, set logging for Buttons & Keys and WAPI->Debug and try again, and attach the files again if you still get issues.
Also, try testing with the logging console window open (Log->Open Console) and you should see the lines logged in real-time.

John

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.