Patrice Posted September 16, 2004 Report Posted September 16, 2004 Hi all, I've a rotary swtich and I'd like to programmed it to increment/decrement a frequence for exemple. My rotary works on buttons 4,5,6 on joystick 1. Can you give me an idea to programmed it with compound button conditions of FSUIPC? I don't arrive there. I've an other problem ;-) : How programmed an other switch for magnetos ? I've a real magneto switch and i've these possibilities : Off : buttons 25 and 26 (joystick2 ) are on Left : button 26 is on (25 is off) Right : button 25 is on (26 is off) Both : buttons 25 and 26 are off. Thanks for your help ! Bests regards, Patrice France
Pete Dowson Posted September 17, 2004 Report Posted September 17, 2004 I've a rotary swtich and I'd like to programmed it to increment/decrement a frequence for exemple. My rotary works on buttons 4,5,6 on joystick 1. Can you give me an idea to programmed it with compound button conditions of FSUIPC? I don't arrive there. I've no idea, since you don't explain how the direction of turning the rotary affects these buttons 4, 5, 6. How programmed an other switch for magnetos ? I've a real magneto switch and i've these possibilities : Off : buttons 25 and 26 (joystick2 ) are on Left : button 26 is on (25 is off) Right : button 25 is on (26 is off) Both : buttons 25 and 26 are off. You'd need to program them so that when 25 and 26 are on you set Mags OFF, and so on. You more or less defined it there already. After this message I am off-line for a week -- back 25th September. Regards, Pete
Patrice Posted September 18, 2004 Author Report Posted September 18, 2004 Hi Peter, hi all, I've no idea, since you don't explain how the direction of turning the rotary affects these buttons 4, 5, 6. When I turn my rotary to the right the buttons are affected in this order : 6,5,4,6,5,4,... I'd like to increment frequency to the right and decrement freq to the left for exemple. When I try ONLY : 82=CP(-1,6)1,5,C65637,0 83=CP(-1,5)1,4,C65637,0 84=CP(-1,4)1,6,C65637,0 It's Ok When I try ONLY : 82=CU(-1,4)1,5,C65636,0 83=CU(-1,5)1,6,C65636,0 84=CU(-1,6)1,4,C65636,0 It's Ok but if I add the both : 82=CP(-1,6)1,5,C65637,0 83=CP(-1,5)1,4,C65637,0 84=CP(-1,4)1,6,C65637,0 85=CU(-1,4)1,5,C65636,0 86=CU(-1,5)1,6,C65636,0 87=CU(-1,6)1,4,C65636,0 there is a problem ... I tried with many conditions and flags but nothing works. For the magnetos I'll see later :-)) We will cross in Spain... I go there on September 25 for 6 days : -) I hope that you passed good holidays, see you next month.
Pete Dowson Posted September 25, 2004 Report Posted September 25, 2004 When I turn my rotary to the right the buttons are affected in this order : 6,5,4,6,5,4,... Yes, but does, for instance, 6 go on-off before 5 goes on-off, or is there an overlap -- i.e. 6on, 5on, 6off and so on? It think if there's an overlap like that then it is easy to program. Otherwise it will need some careful thought. but if I add the both :82=CP(-1,6)1,5,C65637,0 83=CP(-1,5)1,4,C65637,0 84=CP(-1,4)1,6,C65637,0 85=CU(-1,4)1,5,C65636,0 86=CU(-1,5)1,6,C65636,0 87=CU(-1,6)1,4,C65636,0 there is a problem ... Yes, of course. Because the condition "(-j,b)" merely says "j,b not pressed", it is not an event, but a condition. So really all of the above amount to the same thing as: 82=P1,5,C65637,0 83=P1,4,C65637,0 84=P1,6,C65637,0 85=U1,5,C65636,0 86=U1,6,C65636,0 87=U1,4,C65636,0 which just gives you all 6 FS controls one after the other as you turn the rotary. I think that if the on's and off's are not overlapped, then you may be able to do it by latching (setting a flag) each time a button is pressed and clearing all the other flags. I'm convinced it can be done, but it is very fiddly. Check first if the on/offs are overlapping as that will be much easier. 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