Achoriham Posted January 27, 2011 Report Posted January 27, 2011 Hi, Tried to find it in the 'FSUIPC4 Offsets Status' documentation, but it is not there. So may I inquire what is the actual FSUIPC offset for the Landing lights movements? I mean: LANDING_LIGHT_DOWN 65863 LANDING_LIGHT_HOME 65866 LANDING_LIGHT_LEFT 65864 LANDING_LIGHT_RIGHT 65865 LANDING_LIGHT_UP 65862 thanks in advance Achoriham
Pete Dowson Posted January 27, 2011 Report Posted January 27, 2011 So may I inquire what is the actual FSUIPC offset for the Landing lights movements? There's no offset mapped to control directional landing lights. You have to use the controls, if they work on the aircraft you are using. Send them via offset 3110. Pete
Achoriham Posted January 27, 2011 Author Report Posted January 27, 2011 There's no offset mapped to control directional landing lights. You have to use the controls, if they work on the aircraft you are using. Send them via offset 3110. Hi Pete, Many thanks for the info. Unfortunately I can't do that. I have a small Phidgets joystick connected to a Phidgets analog port and there I'm using fs2phidgets to handle the offsets. The program can handle 8 byte words but I can't separate the first 4 bytes to send the control no. and the actual parameters in the second one. So I will try to look up another solution for that. best regards Achoriham
Pete Dowson Posted January 28, 2011 Report Posted January 28, 2011 The program can handle 8 byte words but I can't separate the first 4 bytes to send the control no. and the actual parameters in the second one. So I will try to look up another solution for that. First, I don't think the controls you mention take parameters, do they? Aren't they simple inc/dec type controls? Second, if it can send a "Quadword" (an 8 byte integer) then it's merely a matter of computation on your part to compute that from the two parts. Or do you mean a floating point 64-bit value, which of course is certainly not appropriate? Third, why not send the parameter first then the control value. The action is only triggered on the latter. Regards Pete
Achoriham Posted January 28, 2011 Author Report Posted January 28, 2011 First, I don't think the controls you mention take parameters, do they? Aren't they simple inc/dec type controls? Second, if it can send a "Quadword" (an 8 byte integer) then it's merely a matter of computation on your part to compute that from the two parts. Or do you mean a floating point 64-bit value, which of course is certainly not appropriate? Hi Pete, Thanks for the advice. Unfortunately it is a program (which handles Phidgets hardware) that is able to handle the 8 bytes, but the only thing I can define there is either a boolean operation or as it names it: a 'proportional' one, which then sends values to the FSUIPC offset. As I wanted to use a mini-joystick for the purpose (with 2 axes both giving values from 0 to 1000) those numbers are the only thing I can send. Third, why not send the parameter first then the control value. The action is only triggered on the latter. Because I can't do anything else in the program but define the FSUIPC offset and the data type. No possibility is there to do anything sequential. thanks and regards Achoriham
Pete Dowson Posted January 28, 2011 Report Posted January 28, 2011 Because I can't do anything else in the program but define the FSUIPC offset and the data type. No possibility is there to do anything sequential. Okay. In that case the easiest thing to do is as follows: 1. Write the values for each parameter to your own assigned user offsets. 66C0 - 66FF are available. 2. Write a small Lua plug-in which processes changes in those offsets and sends the controls for you. 3. Save the plug-in as "ipcReady.lua" so it starts when FS is ready to fly and stays running. The Lua involved would only be something like this, repeated for each offset and control: function lightdown(off, val) -- change name for each action ipc.control(65863, val) -- change control number for each action end event.offset(0x66C0, "lightdown") -- change offset and function name for each action Regards Pete
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