Jump to content
The simFlight Network Forums

Recommended Posts

Posted

Hi Pete,

I'm working on a real ASI instruments of maddog. The script made by the previous owner is adapted on a pot range of 0-4096 that he himself had modified in the ini file (and not from the nominal -16k to + 16k). The previous owner not remembering the change from faer in fsuipc.ini,

can you tell me how do I assign the range 0-4096 to the pot?

The Delta need to low value 32 from 256. what does this lower set value mean?

now is :


[Axes]
PollInterval=10
RangeRepeatRate=10
0=2X,256,F,x030066D8,0,0,0    -{ FSUIPC: offset dword set, offset 66D8 }-   ASI SPEED
1=2Y,256,F,x020066D0,0,0,0    -{ FSUIPC: offset word set, offset 66D0 }-     SALMON BUG
2=2Z,256,F,x030066D4,0,0,0    -{ FSUIPC: offset dword set, offset 66D4 }-   BARBER POLE

 

thank you
Simone

 

 

in attach script from sioc.

 

 

 

G_ASI.txt

Posted

Simone,

Look at ~page 46 "FSUIPC# for Advanced Users.pdf"  titled:  "Additional parameters to scale input axis values"
My doc is for FSX, if it still holds true for P3D then modify (add to, in red) your .ini as follows & reload the axis assignments (a button on the Axes page) -->

The delta (in blue) is probably to prevent jerkiness.
I am assuming the pot is the feedback loop for the motor/stepper motor. 

[Axes]
PollInterval=10
RangeRepeatRate=10
0=2X,256,F,x030066D8,0,0,0,*0.125,+2048   -{ FSUIPC: offset dword set, offset 66D8 }-  ; ASI SPEED
1=2Y,256,F,x020066D0,0,0,0,*0.125,+2048    -{ FSUIPC: offset word set, offset 66D0 }-     ;SALMON BUG
2=2Z,256,F,x030066D4,0,0,0,*0.125,+2048    -{ FSUIPC: offset dword set, offset 66D4 }-  ; BARBER POLE 

Roman

Posted

thankyou Roman,

but in the axis assignement the offset is correct word offset or not?

in sioc script is $66D0 and in the fsuipc lien is x020066D0,

 

Posted

Hi Simone, Ramon,

I think Ramon got his calculation the wrong way around, and is converting from +-16k to 0-4096., so it should be

[Axes]
PollInterval=10
RangeRepeatRate=10
0=2X,256,F,x030066D8,0,0,0,*8,-16000   -{ FSUIPC: offset dword set, offset 66D8 }-  ; ASI SPEED
1=2Y,256,F,x020066D0,0,0,0,*8,-16000    -{ FSUIPC: offset word set, offset 66D0 }-     ;SALMON BUG
2=2Z,256,F,x030066D4,0,0,0,*8,-16000    -{ FSUIPC: offset dword set, offset 66D4 }-  ; BARBER POLE 
 

John

Posted

Simone,
In the SIOC file it looks like all the var reads are DWords so change x020066D0 to x030066D0

John,
I dont know.. I am assuming Simone wants 0-4096 from inputs -16384 to 16383 so tried this using the calculator -
-16384 * 0.125 = -2048 + 2048 = 0
16383 * 0.125 = 2047.875 + 2048 = 4095.875

Unless the coffee hasn't quite kicked in yet. 😅 
Roman

Posted (edited)
4 hours ago, sisoffi said:

can you tell me how do I assign the range 0-4096 to the pot?

Then again I'm not sure - maybe you are correct and I misunderstood...maybe I need more coffee!

John

later: yes, of course, as the script is expecting the 0..4096 range. I originally read that the pot was supplying this range - sorry for the confusion!

Edited by John Dowson
Further info added
  • Haha 1

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.