washburn_it Posted November 16, 2005 Report Share Posted November 16, 2005 Hi, I'm developing an external program which permits you to assign up to 8 axis of a joystick (using its circuit for a throttle quadrant) and save the assignement profile for each aircraft, using FSUIPC (3.50) to write directly into the corresponding control in FS2004, bypassing FS2004 assignements. For example if I assign the potentiometer of the X axle to the Engine1 throttle lever then I will write at the offset $088C. All is working but the movement of the throttle lever in the panel aircraft starts moving when the potentiometer is at about 50% of his course. I try to explane: the value of the potentiometer read from the joystick varies from +32768 to -32768 while the value into $088C (according to what is reported from FS-Interrogate) varies from +16384 to -16384 (the formula I used is simply the value read from the axle * 0.5). Then I have just the 50% of the whole course available. I also tried to write into $3AE8 (which can vary from 0 to 1) but the result is the same. How can I do to exploit the whole course? I hope the problem is clear. Regards, Bob Link to comment Share on other sites More sharing options...
Pete Dowson Posted November 17, 2005 Report Share Posted November 17, 2005 using FSUIPC (3.50) to write directly into the corresponding control in FS2004, bypassing FS2004 assignements. For example if I assign the potentiometer of the X axle to the Engine1 throttle lever then I will write at the offset $088C. As you should note from the details in the current Programmer's documentation, you should be writing to 089A instead so that add-ons using Fly-by-Wire or other auto throttle control systems (eg their own autopilot/throttle coding) can intercept and handle the throttles. All is working but the movement of the throttle lever in the panel aircraft starts moving when the potentiometer is at about 50% of his course. Is this an aircraft with reverse thrust? It sounds like it isn't. I try to explane: the value of the potentiometer read from the joystick varies from +32768 to -32768 while the value into $088C (according to what is reported from FS-Interrogate) varies from +16384 to -16384 (the formula I used is simply the value read from the axle * 0.5).Then I have just the 50% of the whole course available. Values from -16384 to 0 represent REVERSE thrust, though the maximum reverse is usually around -4096 (the exact value for the current aircraft is provided at offset 0B00). Anything lower than the minimum implemented for that aircraft will be ignored, of course. Evidently you didn't actually read my documentation for the offsets? Even the one for 088C does state -4096 to +16384. Regards, Pete Link to comment Share on other sites More sharing options...
washburn_it Posted November 17, 2005 Author Report Share Posted November 17, 2005 Thank you for the answer Pete, I will read the documentation then but I already knew the value range (and its meaning) from FS Interrogate...the aircrafts with which I tried my application was the Cessna 172 and the ATR 42-500....with this last one the "problem" (if we want to consider it a problem) is less evident than in the Cessna probably because, as you said, it has the reverse. Regards, Bob Link to comment Share on other sites More sharing options...
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