sisoffi Posted January 9, 2020 Report Posted January 9, 2020 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
spokes2112 Posted January 9, 2020 Report Posted January 9, 2020 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
sisoffi Posted January 9, 2020 Author Report Posted January 9, 2020 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,
John Dowson Posted January 9, 2020 Report Posted January 9, 2020 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=10RangeRepeatRate=100=2X,256,F,x030066D8,0,0,0,*8,-16000 -{ FSUIPC: offset dword set, offset 66D8 }- ; ASI SPEED1=2Y,256,F,x020066D0,0,0,0,*8,-16000 -{ FSUIPC: offset word set, offset 66D0 }- ;SALMON BUG2=2Z,256,F,x030066D4,0,0,0,*8,-16000 -{ FSUIPC: offset dword set, offset 66D4 }- ; BARBER POLE John
spokes2112 Posted January 9, 2020 Report Posted January 9, 2020 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
John Dowson Posted January 9, 2020 Report Posted January 9, 2020 Roman - the inputs are from the pots in range 0-4096 which need converting to the sim accepted range of -16384 to +16383. More coffee? 1
John Dowson Posted January 9, 2020 Report Posted January 9, 2020 (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 January 9, 2020 by John Dowson Further info added 1
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now