Jump to content
The simFlight Network Forums

Simwork Studios Pilatus PC12 and LIGHT_POTENTIOMETER_SET


simpilot787

Recommended Posts

Good afternoon,

 I have been troubleshooting a control issue with the Simworks PC12, where the aileron and rudder axis were not being detect (at least per the aicraft). They have an aileron and rudder interlocking feature simulated. Elevator works fine...

I did notice the event LIGHT_POTENTIOMETER_SET constantly being fired (as an axes).  I have nothing assigned to fire that event.

I was trying to detect and ignore it...eventually, I disconnected FSUIPC and everything works find...

Any ideas?

Much appreciated, 

Fabio van Roon

 

********* FSUIPC7, Version 7.3.21 (9th June 2023) by John Dowson *********

      594 ---------------------- Joystick Device Scan -----------------------
      656 Product= T-Rudder
      656    Manufacturer= Thrustmaster
      656    Serial Number= 00000000001A
      656    Vendor=044F, Product=B679 (Version 1.16)
      703    GUIDs returned for product: VID_044F&PID_B679:
      703       GUID= {975DAC40-D78A-11EC-8002-444553540000}
      703       Details: Btns=0, POVs=(0, 0, 0, 0), Cal=x00000000, Max=R0,U0,V0,X1023,Y1023,Z1023
      703 Product= Alpha Flight Controls
      719    Manufacturer= Honeycomb Aeronautical
      719    Serial Number= A3BB380D16073B00
      719    Vendor=294B, Product=1900 (Version 0.16)
      734    GUIDs returned for product: VID_294B&PID_1900:
      734       GUID= {1A9183B0-CC65-11EC-8001-444553540000}
      734       Details: Btns=35, POVs=(0, 0, 0, 0), Cal=x00000000, Max=R0,U0,V0,X255,Y255,Z0
      734 Product= Saitek Pro Flight Quadrant
      750    Manufacturer= Saitek
      750    Vendor=06A3, Product=0C2D (Version 2.2)
      750    GUIDs returned for product: VID_06A3&PID_0C2D:
      750       GUID= {975D5E20-D78A-11EC-8001-444553540000}
      750       Details: Btns=9, POVs=(0, 0, 0, 0), Cal=x00000000, Max=R0,U0,V0,X255,Y255,Z255
      766 -------------------------------------------------------------------

 

  2491531 ***  AXIS: Cntrl= 67227 (0x0001069b), Param= 33 (0x00000021) LIGHT_POTENTIOMETER_SET
  2491688 ***  AXIS: Cntrl= 67227 (0x0001069b), Param= 7 (0x00000007) LIGHT_POTENTIOMETER_SET
  2491688 ***  AXIS: Cntrl= 67227 (0x0001069b), Param= 50 (0x00000032) LIGHT_POTENTIOMETER_SET
  2491688 ***  AXIS: Cntrl= 67227 (0x0001069b), Param= 51 (0x00000033) LIGHT_POTENTIOMETER_SET
  2491688 ***  AXIS: Cntrl= 67227 (0x0001069b), Param= 52 (0x00000034) LIGHT_POTENTIOMETER_SET

Link to comment
Share on other sites

42 minutes ago, simpilot787 said:

a control issue with the Simworks PC12, where the aileron and rudder axis were not being detect (at least per the aicraft).

What do you mean by "not being detected"? Do you mean the default controls/events are not working? If so, what have you tried? You can also try logging: to see what is being used (activate logging for Axes Controls and maybe Input Events).
Otherwise can you explain please?

47 minutes ago, simpilot787 said:

I did notice the event LIGHT_POTENTIOMETER_SET constantly being fired (as an axes).  I have nothing assigned to fire that event.

FSUIPC will log all events the sim emits, not just the ones that FSUIPC7 sends. Some aircraft continually emit events, especially add-ons, and these events are different for each aircraft (although this is a common one). You can ignore this event by using the DontLogThese ini parameter, best added to the profile section of your FSUIPC7.ini file (where the aircraft are listed).

52 minutes ago, simpilot787 said:

I disconnected FSUIPC and everything works find...

What changed? What wasn't working before?

53 minutes ago, simpilot787 said:

********* FSUIPC7, Version 7.3.21 (9th June 2023) by John Dowson *********

That is an old and unsupported version of FSUIPC7. Please update to the latest release, 7.4.11, before anything else.

John

Link to comment
Share on other sites

Thanks for the prompt reply John.

I attached a few screen captures.

1. Full right aileron (via my honeycom yoke) with FSUIPC "dis-abled" . Notice deflections in external view.

2. Same right full aileron, with FSUIPC enabled. Notice, yoke stays centered. I do have elevetor control.

3. DontLogThese=67227 (surpresses the logging, however, problem, persists...

Ailerons and rudder events below:

   296109 ***  AXIS: Cntrl= 67227 (0x0001069b), Param1= 33 (0x00000021), Param2= 0 (0x00000000) LIGHT_POTENTIOMETER_SET
   296125 ***  AXIS: Cntrl= 65763 (0x000100e3), Param= -580 (0xfffffdbc) AXIS_AILERONS_SET
   296203 ***  AXIS: Cntrl= 65763 (0x000100e3), Param= -4220 (0xffffef84) AXIS_AILERONS_SET
   296219 ***  AXIS: Cntrl= 67227 (0x0001069b), Param1= 7 (0x00000007), Param2= 100 (0x00000064) LIGHT_POTENTIOMETER_SET
   296219 ***  AXIS: Cntrl= 67227 (0x0001069b), Param1= 50 (0x00000032), Param2= 100 (0x00000064) LIGHT_POTENTIOMETER_SET
   296219 ***  AXIS: Cntrl= 67227 (0x0001069b), Param1= 51 (0x00000033), Param2= 100 (0x00000064) LIGHT_POTENTIOMETER_SET

  1108875 ***  AXIS: Cntrl= 65773 (0x000100ed), Param= -5591 (0xffffea29) MIXTURE_SET
  1108891 ***  AXIS: Cntrl= 65764 (0x000100e4), Param= -137 (0xffffff77) AXIS_RUDDER_SET
  1108938 ***  AXIS: Cntrl= 65764 (0x000100e4), Param= -550 (0xfffffdda) AXIS_RUDDER_SET
  1108953 ***  AXIS: Cntrl= 65773 (0x000100ed), Param= -5721 (0xffffe9a7) MIXTURE_SET
  1108984 ***  AXIS: Cntrl= 65773 (0x000100ed), Param= -5591 (0xffffea29) MIXTURE_SET

 

Thank you. Fabio

pc12_1.jpg

pc12_2.jpg

pc12_3.jpg

Link to comment
Share on other sites

15 hours ago, simpilot787 said:

1. Full right aileron (via my honeycom yoke) with FSUIPC "dis-abled" . Notice deflections in external view.

Have you assigned your yoke in MSFS then (or elsewhere)? If assigning in FSUIPC7, you have to remove the assignments in MSFS - I recommend you start with an empty profile for your device in MSFS if assigning in FSUIPC).

15 hours ago, simpilot787 said:

2. Same right full aileron, with FSUIPC enabled. Notice, yoke stays centered. I do have elevetor control.

And is this with your aileron still assigned in MSFS, assigned in FSUIPC, or in both?

15 hours ago, simpilot787 said:

3. DontLogThese=67227 (surpresses the logging, however, problem, persists...

Then you either added it to the wrong place, or if you added to the aircraft profile section (where it should be added), then the aircraft you have loaded does not match the aircraft profile name.

Can you please show me/attach both your FSUIPC7.log and FSUIPC7.ini file please - attach them, not post extracts.

Link to comment
Share on other sites

Attached please find the files. I didn't make any assignments in FSUIPC. I started looking at events with FSUIPC due to the problem I was having. 

I didn't make any changes to my MSFS yoke assignments, simply disabling (disconnecting) via the FSUIPC menu allows the aileron and rudder axis to "move."

 

DontLogThese=67227 - I added it to the general section for now for troubleshooting.

Thanks.

pc12_5.jpg

pc12_4.jpg

FSUIPC7.ini FSUIPC7_prev.log FSUIPC7.log

Link to comment
Share on other sites

Finished for the day now and just about to eat... but try the attached ini where I have made a few minor adjustments (removed calibration for aileron and rudder for PC12, adjusted aircraft names in profiles). I will look further tomorrow.

I think I know why DontLogThese isn't working as expected, but I will check further tomorrow.

John

FSUIPC7.ini

Link to comment
Share on other sites

Hello Fabio,

At first, I had a similar problem mapping my yoke and rudder controls to  SWS PC12 aileron & rudder axes.

I found out thru their Discord channel they use the Lvars: L:ARI_AileronInput and L:ARI_RudderInput to control these axes.

I use FSUIPC7: Axis > "Send to Offset"  to map each control (ie yoke and rudder pedal) and use a lua event-driven program to read the offsets and then write to the Lvars.

Please note that their Lvars range is from -100 to +100, so you may need to rescale your control values to match.

I've attached my lua file for your review, I hope this helps.

Gary

PS: To John and Pete, thanks for a great program. 

Pc12Axes.lua

  • Like 2
Link to comment
Share on other sites

14 hours ago, John Dowson said:

Finished for the day now and just about to eat... but try the attached ini where I have made a few minor adjustments (removed calibration for aileron and ruddr for PC12, adjusted aircraft names in profiles). I will look further tomorrow.

I think I know why DontLogThese isn't working as expected, but I will check further tomorrow.

John

FSUIPC7.ini 4.13 kB · 0 downloads

Confirming it is working now...let me check the changes you made. -Fabio

Link to comment
Share on other sites

1 hour ago, simpilot787 said:

Confirming it is working now...

It was probably due to the calibration - some aircraft don't play well with post calibration (i.e. calibrating the values received from the FS).
Also see @Falcon49's post above if you want to use FSUIPC7 to control the rudder/ailieron  for this aircraft.

John

  • Like 1
Link to comment
Share on other sites

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.